Skip to content

Commit

Permalink
Added possibility to test with docker in different versions of node
Browse files Browse the repository at this point in the history
  • Loading branch information
emilfolino committed Jan 25, 2019
1 parent fec4616 commit b3d3d8b
Show file tree
Hide file tree
Showing 11 changed files with 1,533 additions and 2 deletions.
65 changes: 65 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,65 @@
version: "3"
services:
node_latest:
build:
context: .
dockerfile: docker/Dockerfile-node-latest
volumes:
- ./:/app/
- /app/node_modules/

node_10:
build:
context: .
dockerfile: docker/Dockerfile-node-10
volumes:
- ./:/app/
- /app/node_modules/

node_8:
build:
context: .
dockerfile: docker/Dockerfile-node-8
volumes:
- ./:/app/
- /app/node_modules/

node_6:
build:
context: .
dockerfile: docker/Dockerfile-node-6
volumes:
- ./:/app/
- /app/node_modules/

node_alpine:
build:
context: .
dockerfile: docker/Dockerfile-node-alpine
volumes:
- ./:/app/
- /app/node_modules/

node_10_alpine:
build:
context: .
dockerfile: docker/Dockerfile-node-10-alpine
volumes:
- ./:/app/
- /app/node_modules/

node_8_alpine:
build:
context: .
dockerfile: docker/Dockerfile-node-8-alpine
volumes:
- ./:/app/
- /app/node_modules/

node_6_alpine:
build:
context: .
dockerfile: docker/Dockerfile-node-6-alpine
volumes:
- ./:/app/
- /app/node_modules/
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-10
@@ -0,0 +1,10 @@
# Use a base image
FROM node:10

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-10-alpine
@@ -0,0 +1,10 @@
# Use a base image
FROM node:10-alpine

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-6
@@ -0,0 +1,10 @@
# Use a base image
FROM node:6

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-6-alpine
@@ -0,0 +1,10 @@
# Use a base image
FROM node:6-alpine

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-8
@@ -0,0 +1,10 @@
# Use a base image
FROM node:8

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-8-alpine
@@ -0,0 +1,10 @@
# Use a base image
FROM node:8-alpine

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-alpine
@@ -0,0 +1,10 @@
# Use a base image
FROM node:alpine

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install
10 changes: 10 additions & 0 deletions docker/Dockerfile-node-latest
@@ -0,0 +1,10 @@
# Use a base image
FROM node:latest

# Create a workdir
RUN mkdir -p /app
WORKDIR /app

# Install npm packages
COPY package.json /app
RUN npm install

0 comments on commit b3d3d8b

Please sign in to comment.