Jenkins - docker nginx

This commit is contained in:
Vicente Falco 2017-05-15 07:53:06 +02:00
parent af49f03e19
commit d5da337d52
2 changed files with 5 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -7,7 +7,7 @@ def branchName = "${env.BRANCH_NAME}";
def branchNameTest = "preprod";
def branchNameProd = "master";
def prefixDocker = "test";
def dockerNginxName = ["nginx", "-p 80:8080 --link test-auth:auth --link test-salix:salix --link test-client:client"]
def dockerNginxName = ["nginx", "-p 80:8080 --cap-add NET_ADMIN --link test-auth:auth --link test-salix:salix --link test-client:client"]
def dockerAuthName = ["auth", "-p 3000:3000"]
def dockerSalixName = ["salix", "-p 3001:3001"]
def dockerClientName = ["client", "-p 3002:3002"]

View File

@ -8,4 +8,8 @@ COPY conf-prod.conf /etc/nginx/nginx.conf
COPY static /usr/share/nginx/html
RUN apt-get update && apt-get -y install vim dnsmasq
RUN echo listen-address=127.0.0.1 > /etc/dnsmasq.d
EXPOSE 8080