Commit c85ae5b8 authored by Jürgen Haas's avatar Jürgen Haas

Set default of the used node version to 12-stretch-slim

parent 32f84543
Pipeline #12147 passed with stage
in 52 seconds
......@@ -22,6 +22,15 @@ Register a runner with GitLab Runner and configure it like this:
[runners.cache.gcs]
```
# Node version
When using node from within this framework, this defaults to version `12-stretch-slim` but you can change the default version by setting the environment variable `NODE_VERSION` to one of these tags:
- 8-jessie-slim
- 10-jessie-slim
- 12-stretch-slim
- 13-stretch-slim
# Credit
- [Image from jonaskello](https://github.com/jonaskello/docker-and-compose)
......
#!/bin/bash
if [[ -z "$NODE_VERSION" ]]; then
NODE_VERSION=12-stretch-slim
fi
NAME=${COMPOSE_PROJECT_NAME}_l3d_node
ID=$(docker container ls --all -q -f name=^${NAME}$)
if [[ -n ${ID} ]]; then
......@@ -19,6 +22,6 @@ else
--env COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME} \
-v $(php /usr/local/bin/volume.php) \
-w ${PWD} \
registry.lakedrops.com/docker/node:8-jessie-slim >/dev/null
registry.lakedrops.com/docker/node:${NODE_VERSION} >/dev/null
fi
docker exec -it -w ${PWD} ${NAME} ${NODE_CMD} $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment