A container, based on dev-container-base, for developing Javascript applications.
The base container starts an SSH server, so you can read more about that in its README. This container assumes that your GOPATH
will be /home/dev/gopath
. You'll probably want to volume mount a directory for this, so your changes are easy to get to if you shut down the container.
I usually start it with something like (assuming $GOPATH
is ~/gopath
):
docker run -d \
-e AUTHORIZED_GH_USERS="dpetersen" \
-p 0.0.0.0:31981:22 \
-v $(pwd):/home/dev/app \
dpetersen/dev-container-js:latest
It has a couple of bootstrapping scripts in the home directory. One is for installing angular-cli, since I can't remember the command. Second starts xvfb and should be run in the background if you are running tests that require Chromedriver (which is the reason this image is so enormous).
I'd advise you to set up an SSH alias as explained here.
Helpful reminders on how to build, tag, and push this can be found in the Development section of the other image.