apt-get install docker-compose
usermod -aG docker
- Log out and log back into shell
- Copy the deploy/ folder to the server
- Rename
docker-compose.yaml.example
todocker-compose.yaml
and update with your envvars - Update 0_scripts/start.sh with your envvars
chmod +x 0_scripts/*
- Copy the scripts in the root directory to 0_scripts/ on the production box
docker build --no-cache -t keybase_croupier .
docker-compose up -d croupier
NOTE:
The first time you launch the docker file, you are going to need to:
- Replace
keybase service &
in start.sh withwhile true; do echo 'while'; sleep 2s; done
- Build the dockerfile,
docker build -t keybase_croupier .
- Start the container,
docker-compose up -d croupier
- Attach to a bash process,
docker-compose exec croupier bash
- And provision the container device for Keybase:
keybase login
Once you have authorized the device:
- Replace
while true; do echo 'while'; sleep 2s; done
withkeybase service &
- Rebuild the Dockerfile,
docker build -t keybase_croupier .
- You're good to go, with
docker-compose up -d croupier
docker-compose exec croupier bash
to start a bash prompt within containertail /home/keybase/node_log
- Use
docker ps
to find container id docker cp CONTAINER_ID:/home/keybase/node_log .
- scp it to your local machine or just check on the server