Skip to content

Commit

Permalink
Merge pull request lambdaspace#19 from alexdor/master
Browse files Browse the repository at this point in the history
Add gulp update, use alpine node, update haproxy
  • Loading branch information
AEtherC0r3 authored Jul 4, 2017
2 parents 78e1068 + 899be58 commit 86f87be
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
30 changes: 30 additions & 0 deletions Gulp-Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
############################################################
# Dockerfile for gulp and bower
############################################################

# Use the alpine Node.js base image
FROM node:8-alpine

# File Author / Maintainer
MAINTAINER alexdor

################## BEGIN INSTALLATION ######################

# Update repositories and install git
RUN apk update && apk add git

# Clone repo
RUN git clone https://github.com/lambdaspace/new_website.git

RUN yarn global add bower gulp

# Install dependencies
WORKDIR new_website
# ADD ./node_modules node_modules/
# ADD ./src/components src/components/
RUN yarn install
RUN bower install --allow-root

################## INSTALLATION END ######################

CMD /usr/local/bin/gulp --production /new_website/
7 changes: 3 additions & 4 deletions MinisterIN-Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
# Dockerfile to build the MinisterIN service
############################################################

# Use the slim Node.js base image
FROM node:7.7-slim
# Use the alpine Node.js base image
FROM node:8-alpine

# File Author / Maintainer
MAINTAINER AEtherC0r3

################## BEGIN INSTALLATION ######################

# Update repositories and install git
RUN apt-get update
RUN apt-get install -y git
RUN apk update && apk add git

# Clone repo
RUN git clone https://github.com/lambdaspace/MinisterIN.git
Expand Down
13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ services:
volumes:
- /etc/letsencrypt/live/www.lambdaspace.gr:/etc/letsencrypt/live/www.lambdaspace.gr:ro
- /etc/letsencrypt/archive/www.lambdaspace.gr:/etc/letsencrypt/archive/www.lambdaspace.gr:ro
- /tmp/dist:/usr/share/nginx/html/dist:ro
restart: always
depends_on:
- gulp

redirector:
image: nginx:stable-alpine
Expand All @@ -28,7 +31,7 @@ services:
restart: always

proxy:
image: haproxy:1.6-alpine
image: haproxy:1.7-alpine
links:
- website
- redirector
Expand Down Expand Up @@ -60,3 +63,11 @@ services:
ports:
- "8883:8883"
restart: always

gulp:
build:
context: .
dockerfile: Gulp-Dockerfile
volumes:
- /etc/hosts:/etc/hosts:ro
- /tmp/dist:/new_website/dist

0 comments on commit 86f87be

Please sign in to comment.