IDE in a container. Using https://github.com/FriendCode/codebox.
cd docker-codebox
docker build -t codebox .
Create an .ssh directory for your codebox instance. This can go anywhere
but let's put it in a convenient place for this example. The codebox
server will run as root, so we must set the permissions on the
directory to be owned by root.
mkdir $HOME/codebox-ssh
chmod 700 $HOME/codebox-ssh
ssh-keygen -f $HOME/codebox-ssh/id_rsa
sudo chown -R root:root $HOME/codebox-ssh
Assuming the ssh credentials are in the directory above, you can pass it to codebox when you run it.
docker run -p 8000:8000 -v $HOME/codebox-ssh:/root/.ssh:ro codebox run project
You should now be able to
If you skipped Step 1, you can run it without passing .ssh credentials
without the -v flag.
docker run -p 8000:8000 codebox run project
To run with basic user:password authentication use the -u flag:
docker run -p 8000:8000 -v $HOME/codebox-ssh:/root/.ssh:ro codebox -u [email protected]:abc123 run project
For all other options see the help screen:
docker run codebox --help
Content type
Image
Digest
sha256:e73bad32f…
Size
223.2 MB
Last updated
almost 11 years ago
docker pull icecreammatt/codebox