Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.

Latest commit

 

History

History
28 lines (18 loc) · 1.64 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.64 KB

dev-container-js

Docker Hub

A container, based on dev-container-base, for developing Javascript applications.

Usage

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.

Development

Helpful reminders on how to build, tag, and push this can be found in the Development section of the other image.