A dockerfile setup to run your own Bit server.
- Clone this repository.
- Edit
scope.json
with your name (legacy, shoudl be replaced soon) - Edit
scope.jsonc
with your description - Build image and run server.
Note - the server will take a few minutes to spin up, so localhost:3000 wont be available immediately
$ docker build . -t harmony-scope $ docker run --rm --name my-scope -d -p 3000:3000 harmony-scope
- Configure workspace to use the server.
$ bit remote add http://localhost:3000
- Add scope to
workspace.jsonc
- Export components to a Bit server.
$ bit export
- Import components from a Bit server.
$ bit import scope.<component-name>
- Stop server
$ docker kill bit
- See if container is running.
$ docker ps --all | grep bit
- Make sure the HTTP port is configured correctly.
$ docker port bit 3000
- See that your server is configured for your workspace.
$ bit remote
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
Contributions are always welcome, no matter how large or small.
MIT License.