{"id":46329183,"url":"https://github.com/bit-tasks/bit-docker-image","last_synced_at":"2026-03-04T17:05:39.320Z","repository":{"id":167250337,"uuid":"642825621","full_name":"bit-tasks/bit-docker-image","owner":"bit-tasks","description":"Docker Image for Bit CI/CD","archived":false,"fork":false,"pushed_at":"2026-03-01T02:51:48.000Z","size":562,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-01T06:02:17.250Z","etag":null,"topics":["bit","cd","ci","container","docker"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/u/bitsrc","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bit-tasks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-05-19T12:36:58.000Z","updated_at":"2026-03-01T02:51:51.000Z","dependencies_parsed_at":"2023-11-17T23:07:46.514Z","dependency_job_id":"0cda37ff-9493-45b8-bb9c-08b0a934068f","html_url":"https://github.com/bit-tasks/bit-docker-image","commit_stats":null,"previous_names":["bitdev-community/bit-docker-image","bit-tasks/bit-docker-image"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bit-tasks/bit-docker-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-tasks%2Fbit-docker-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-tasks%2Fbit-docker-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-tasks%2Fbit-docker-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-tasks%2Fbit-docker-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bit-tasks","download_url":"https://codeload.github.com/bit-tasks/bit-docker-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bit-tasks%2Fbit-docker-image/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30086527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bit","cd","ci","container","docker"],"created_at":"2026-03-04T17:05:38.578Z","updated_at":"2026-03-04T17:05:39.313Z","avatar_url":"https://github.com/bit-tasks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Bit Docker](https://img.shields.io/badge/Bit-Docker-086dd7)](https://hub.docker.com/u/bitsrc) [![version](https://img.shields.io/badge/Image-bitsrc/stable:latest-brightgreen)](https://hub.docker.com/layers/bitsrc/stable/latest/images/sha256-e0f1fe5332e633b382185b08c17d0e3a7db898ec648f79eaa9bfa40caa663ce0?context=explore) [![version](https://img.shields.io/badge/Image-bitsrc/nightly:latest-brightgreen)](https://hub.docker.com/layers/bitsrc/nightly/latest/images/sha256-e0f1fe5332e633b382185b08c17d0e3a7db898ec648f79eaa9bfa40caa663ce0?context=explore)\n# Docker Images for Bit DevOps\n\n## Getting Started\n\n1. Install [Docker Desktop](https://www.docker.com/products/docker-desktop/).\n\n2. Install [VSCode Docker Extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker).\n\n3. Install [VSCode Dev Containers Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).\n\n## Using the Docker Image\n\nPull the Docker Image.\n\n\u003e `docker pull bitsrc/stable:latest`\n\n\u003e `docker pull bitsrc/nightly:latest`\n\n\nStart the container and attach to it from VSCode (via Docker extension).\n\n![VSCode Docker Attach](pics/vscode-docker-attach.png)\n\nFor more information on best practices:\n\n- [Developing inside a Container](https://code.visualstudio.com/docs/devcontainers/containers)\n\nFor more information on best practices:\n\n- [Developing inside a Container](https://code.visualstudio.com/docs/devcontainers/containers)\n\n## Using with CI/CD\n\n### Github Actions\n\n```\n# @file github-action.yml\n\nname: Build\n\non:\n  workflow_dispatch:\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    container:\n      image: bitsrc/stable:latest\n    env:\n      HOME: /home/bituser\n    steps:\n      - name: Initialize a workspace\n        run: |\n          bit -v\n        displayName: 'Initialize a workspace'\n```\n\n### Azure DevOps Pipelines\n\n```\n# @file azure-pipelines.yml\n\ntrigger: none\n\npr: none\n\njobs:\n- job: build\n  displayName: Build\n  pool:\n    vmImage: 'ubuntu-latest'\n  container:\n    image: bitsrc/stable:latest\n  steps:\n  - script: |\n      bit -v\n    displayName: 'Check bit version'\n```\n\n### GitLab CI/CD\n\n```\nGitLab CI/CD\n\n# @file .gitlab-ci.yml\n\nimage: bitsrc/stable:latest\n  \nbuild-job:\n  stage: build\n  script: \n    - |\n      echo \"bit version: $(bit -v)\"\n```\n\nAn addition to the pre-installed latest docker version, there are dedicated scripts supporting GitLab in the docker image.\n- `gitlab.bit.init`\n- `gitlab.bit.verify`\n- `gitlab.bit.commit-bitmap`\n- `gitlab.bit.merge-request`\n- `gitlab.bit.tag-export`\n- `gitlab.bit.branch-lane`\n- `gitlab.bit.dependency-update`\n\nYou can use them as follows in your GitLab pipeline e.g:\n\n```\nGitLab CI/CD Using Scripts\n\n# @file .gitlab-ci.yml\n\nimage: bitsrc/nightly:latest\n\nvariables:\n  BIT_CONFIG_ACCESS_TOKEN: \"bit_config_access_token\"\n  GIT_USER_NAME: “git_user_name”\n  GIT_USER_EMAIL: “git”_user_email\n\nbuild-job:\n  stage: build\n  script: \n    - |      \n      gitlab.bit.init\n      gitlab.bit.verify\n  rules:\n     - if: '$CI_PIPELINE_SOURCE == \"push\" \u0026\u0026 $CI_COMMIT_BRANCH == \"main\"'\n```\n\n## Utility Scripts\nThere is a collection of bit utility scripts available in the container.\n\n### CheckServer\n`checkserver` command, let's you test `bit start` and `bit run \u003capp-name\u003e` commands\n\n```\ncheckserver \u003cyour-server-url\u003e \n```\n\nYou can optionally specifiy the **maximum timeout** and **check frequency**. e.g:\n\n```\ncd my-workspace\nbit start \u0026\ncheckserver http://localhost:3000 600 5 # maximum timeout: 600 seconds, check frequency: 5 seconds\n```\n\n**Note:** You have to use '\u0026' to run the dev server in the background, before executing `checkserver` command.\n\n### BareScope\n`barescope` command let's you create Bare Scope in your CI environment.\n\n```\nbarescope \u003cscope-name\u003e \u003cworkspace-directory\u003e\n```\n\nHere, it will create the barescope and update the remote in the given workspace directory. e.g:\n\n```\nbarescope my-scope my-workspace\ncd my-workspace\nbit scope rename org.scope-name my-scope --refactor\nbit link\nbit compile\nbit tag --message \"CI tag\"\nbit export\n```\n\n### EngineStrict\n`enginestrict` command let's you to install the bit engine version defined in the workspace.jsonc\n\n```\n\"teambit.harmony/bit\": {\n  \"engine\": \"0.2.3\",\n  \"engineStrict\": false // warning or error if the version of the engine is not the same as the workspace\n},\n```\n\n**Note:** Use `bvm list --remote` to list available bit versions.\n\n# Contributor Guide\nIf you plan to push a new image to Docker Hub, you can follow the below steps.\n\nBuild the docker image locally and publish\n\n```sh\ndocker buildx build --platform linux/amd64,linux/arm64 -t bitsrc/stable:latest . --push\n```\n\n**Note:** To run the build image locally, use a single platform (either `linuxamd64, linux/arm64`) and use `--load` parameter replacing `--push`\n\n## NODE_HEAP_SIZE (Optional, Default 4096)\n\nSpecify a custom heap size for the image.\n\n- 4096 (default)\n- 8192\n\n```\ndocker buildx build --platform linux/amd64,linux/arm64 --build-arg NIGHTLY=true --build-arg NODE_HEAP_SIZE=8192 -t bitsrc/stable:latest . --push\n```\n\n## Using GitHub Action\n\nYou can use the GitHub Action specified in this repository to release never versions of the image.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-tasks%2Fbit-docker-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbit-tasks%2Fbit-docker-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbit-tasks%2Fbit-docker-image/lists"}