-
Notifications
You must be signed in to change notification settings - Fork 2
Build a watch_edition docker image? #5
Comments
We've tried docker before, seemed to be a reasonable amount of messing around for little gain... |
Perhaps another option here: Instead of building a docker image, we use one of the base node images, and mount the current working directory as a volume. Then we execute any node/npm commands (hidden in the I've just quickly hacked together a thing. Your #!/bin/bash -eu
NODE_VERSION=8
docker run \
-it \
--rm \
-p "8000:8000" \
-w "/app" \
-v $(pwd):/app \
"node:${NODE_VERSION}" \
"${@-bash}" And in your if [[ $1 == "install" ]]; then
./dev-environment npm install
fi
if [[ $1 == "test" ]]; then
./dev-environment npm test
exit $?
fi
# ... Or if you really want, you can put the |
That's the approach I would go with too. As a bonus, the latest Node image comes with |
There were some comments on #3 about docker, which I'm copying over here.
|
My thoughts are:
I'm personally leaning towards running everything in a docker image... |
Circle provides it's own docker images, I don't know if we can actually docker pull/run those images |
If we can run the commands inside a standard docker image (e.g. node:8), then we should be ok, but setup might look strange. From what I can tell TravisCI can run build jobs with docker |
I have a feeling last time we used Docker some of the Windows based students had issues getting it installed and working correctly. If we can be reasonably confident that Docker is easy to install on a range of Windows laptops AND is hidden behind the go script I'm okay with it. In my experience VirtualBox is easier to get working on Windows although it is more of a brute force solution. I think most students would probably find it a bit easier to resolve VirtualBox issues than ones with Docker. |
No description provided.
The text was updated successfully, but these errors were encountered: