Bit is a distributed and virtualized code component repository designed to be language agnostic.
100K+
This repo is only used for legacy (not harmony) scopes. for harmony please use https://github.com/teambit/bit/blob/master/scripts/docker-teambit-bit/README.md
A dockerfile setup to run your own Bit server.
If you want to setup a bare-bone Bit remote server without Docker, please refer to this guide.
$ docker build . -t bit
$ docker run --rm --name bit -d -P --volume ~/.ssh/id_rsa.pub:/tmp/id_rsa.pub bitcli/bit-docker
$ docker port bit 22
$ bit remote add ssh://root@<hostname>:22:/tmp/scope -g
$ bit export scope
$ bit import scope.<component-name>
$ docker kill bit
$ docker ps --all | grep bit
$ docker port bit 22
$ bit remote
Bit uses SSH for networking. This setup mounts your user account SSH keys.
To manually set up authentication, or authenticate another key:
$ docker cp ~/.ssh/id_rsa bit:/root/.ssh/
$ docker exec -it bit /bin/bash
$ bit config ssh_key_file /root/.ssh/id_rsa
When you need to run any command on the Bit server, you first need to get bash on the container:
$ docker exec -it bit /bin/bash
Now each command you run, runs on the server.
To run the tail command and get the server's logs, you should first get bash on the container. Then tail Bit's log:
$ tail -f /root/Library/Caches/Bit/logs/debug.log
After building Bit from source code, run this command:
$ docker run --rm --name bit -d -P --volume <path to git-clone of bit>:/bit-bin --volume ~/.ssh/id_rsa.pub:/tmp/id_rsa.pub --env 'DEVELOPMENT=true' bitcli/bit-docker
Contributions are always welcome, no matter how large or small.
MIT License.
Content type
Image
Digest
Size
316.8 MB
Last updated
over 5 years ago
docker pull bitteam/bit-docker