{"id":19427804,"url":"https://github.com/starrocks/docker","last_synced_at":"2025-04-24T17:31:49.008Z","repository":{"id":91459888,"uuid":"405865590","full_name":"StarRocks/docker","owner":"StarRocks","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-10T08:26:34.000Z","size":42,"stargazers_count":6,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T09:03:02.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StarRocks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-13T06:57:00.000Z","updated_at":"2023-12-20T07:34:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"2081211e-1e93-4063-8d9f-e1150836616b","html_url":"https://github.com/StarRocks/docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarRocks%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarRocks%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarRocks%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarRocks%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarRocks","download_url":"https://codeload.github.com/StarRocks/docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250674381,"owners_count":21469214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T14:12:57.421Z","updated_at":"2025-04-24T17:31:48.996Z","avatar_url":"https://github.com/StarRocks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker \n\nThis project is used to compile the StarRocks-dev-env image, which you can use to compile the StarRocks source code. The project will automatically compile the x86_64 or aarch64 image based on your system.If you don't want to compile it yourself, you can use the compiled image we provide [here](https://registry.hub.docker.com/r/starrocks/dev-env/tags).  \nTo use this project, you need to have root privileges or use a user in the docker group of the machine, and also need a running docker service.\n\n## How to use\n### Compile StarRocks-dev-env image\nThis project supports compiling image from StarRocks branch or PR, which is controlled by passing in parameters to build.sh. We can pass in three parameters, which have the following meaning.\n```\nsudo sh build.sh $1 $2 $3\n# $1: Choose to use branch/tag/pr option\n# $2: Branch name/tag name/pr id\n# $3: The image name of the final successful compilation, which defaults is rc\n# $4: The http proxy path, which defaults is \"\"\n```\nFor example, if you want to use branch-2.4 latest code to compile the image, you can write like this\n```\nsudo sh build.sh branch branch-2.4\n```\nIf you want to compile the image using the code from https://github.com/StarRocks/starrocks/pull/9436 and you have an http proxy address, you can write like this\n```\nsudo sh build.sh pr 9436 rc \"http://x.x.x.x:port\"\n```\n### Compile StarRocks using the image compiled in the previouse step\nFor specific steps, please refer to the [documentation](https://docs.starrocks.com/en-us/main/administration/Build_in_docker). For example, if we choose to use the `branch-2.2` to compile, `{version}` in the documentation will be `branch-2.2-rc`.\n\n## Build Process Introduction\nDescription of the file structure\n```\n.\n├── build.sh            # main script\n├── sr-thirdparty       # thirdparty image build folder\n└── sr-toolchain        # toolchain image build folder\n```\n1. Build the `starrocks/toolchain` image\n2. Use the `starrocks/toolchain` image to start a container, execute the `starrocks/thirdparty` related scripts in the container, and copy the built folder to the host\n3. Build the StarRocks-dev-env image based on the thirdparty build file generated in the previous step\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarrocks%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarrocks%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarrocks%2Fdocker/lists"}