Sign inSign up

icecreammatt/codebox

By icecreammatt

•Updated almost 11 years ago

Image
3

1.9K

icecreammatt/codebox repository overview

⁠docker-codebox

⁠Forked from https://gitlab.com/arel/docker-codebox⁠

⁠What's this?

IDE in a container. Using https://github.com/FriendCode/codebox⁠.

⁠How to build the container

cd docker-codebox
docker build -t codebox .

⁠How to run codebox IDE

⁠Step 1. Create SSH credentials (optional)

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
⁠Step 2. Run Codebox

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

Tag summary

Content type

Image

Digest

sha256:e73bad32f…

Size

223.2 MB

Last updated

almost 11 years ago

docker pull icecreammatt/codebox