From 857aafda86a134f7b7d48b9eb4f0c8b0f89a7151 Mon Sep 17 00:00:00 2001 From: Fabian Derschatta Date: Thu, 22 Aug 2019 14:18:42 +1200 Subject: [PATCH] Downgrade npm version to 5.6.0 to be compatible with CI system --- compose/build.yml | 3 +++ docker-compose.yml | 2 +- nodejs/Dockerfile | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 nodejs/Dockerfile diff --git a/compose/build.yml b/compose/build.yml index bc7e211f..e4fd1c91 100644 --- a/compose/build.yml +++ b/compose/build.yml @@ -1,6 +1,9 @@ version: "2" services: + nodejs: + build: ./nodejs + nginx: build: ./nginx diff --git a/docker-compose.yml b/docker-compose.yml index 1645a2ef..b8a04b8e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: # docker-compose -f docker-compose.yml -f compose/nginx.yml -f compose/pgsql.yml -f compose/php.yml up -d pgsql php-7.3 nodejs: - image: node:8 + image: totara/docker-dev-nodejs container_name: totara_nodejs volumes: - ${LOCAL_SRC}:${REMOTE_SRC} diff --git a/nodejs/Dockerfile b/nodejs/Dockerfile new file mode 100644 index 00000000..7f97321c --- /dev/null +++ b/nodejs/Dockerfile @@ -0,0 +1,6 @@ +FROM node:8 + +RUN npm install -g npm@5.6.0 + +CMD [ "node" ] +