Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlasvoayages.com
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nabil el mahiri
atlasvoayages.com
Commits
fb0beac4
Commit
fb0beac4
authored
Mar 07, 2019
by
nabil el mahiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new clean docker file
parent
167991dc
Pipeline
#484
failed with stages
in 5 minutes 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
docker/Dockerfile
+6
-8
No files found.
docker/Dockerfile
View file @
fb0beac4
...
@@ -6,14 +6,13 @@ ARG SSH_PRIVATE_KEY
...
@@ -6,14 +6,13 @@ ARG SSH_PRIVATE_KEY
ARG
BUILD_TOKEN
ARG
BUILD_TOKEN
ARG
DEPLOY_TOKEN
ARG
DEPLOY_TOKEN
RUN
apt-get update
&&
\
RUN
DEBIAN_FRONTEND
=
noninteractive
apt-get update
&&
\
apt-get
-y
dist-upgrade
DEBIAN_FRONTEND
=
noninteractive
apt-get
-y
dist-upgrade
# Installing supervisord
# Installing supervisord
RUN
apt-get install
-y
supervisor
&&
\
RUN
DEBIAN_FRONTEND
=
noninteractive
apt-get install
-y
supervisor
&&
\
apt-get install
-y
gnupg2
&&
\
apt-get install
-y
gnupg2
&&
\
apt-get install
-yq
ssh
&&
\
apt-get install
-yq
ssh
&&
\
apt-get install
-yq
tree
&&
\
apt-get install
-y
openssh-server
&&
\
apt-get install
-y
openssh-server
&&
\
apt-get install
-yq
redis-server
apt-get install
-yq
redis-server
...
@@ -21,7 +20,7 @@ apt-get install -yq redis-server
...
@@ -21,7 +20,7 @@ apt-get install -yq redis-server
ADD
./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD
./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# install nginx
# install nginx
RUN
apt-get
-yq
install net-tools nginx lsb-release
RUN
DEBIAN_FRONTEND
=
noninteractive
apt-get
-yq
install net-tools nginx lsb-release
RUN
rm
-f
/etc/nginx/fastcgi.conf /etc/nginx/fastcgi_params
&&
\
RUN
rm
-f
/etc/nginx/fastcgi.conf /etc/nginx/fastcgi_params
&&
\
rm
-f
/etc/nginx/snippets/fastcgi-php.conf /etc/nginx/snippets/snakeoil.conf
&&
\
rm
-f
/etc/nginx/snippets/fastcgi-php.conf /etc/nginx/snippets/snakeoil.conf
&&
\
...
@@ -81,7 +80,6 @@ WORKDIR /atlasvoyages
...
@@ -81,7 +80,6 @@ WORKDIR /atlasvoyages
COPY
./sh /atlasvoyages/sh
COPY
./sh /atlasvoyages/sh
RUN
tree ./
# RUN login automatiquely to npm
# RUN login automatiquely to npm
RUN
expect
-f
./sh/npm_login_expect nabilelmahiri arigatou@65
"nabil.elmahiri@fractalite.com"
RUN
expect
-f
./sh/npm_login_expect nabilelmahiri arigatou@65
"nabil.elmahiri@fractalite.com"
...
@@ -89,9 +87,9 @@ COPY package*.json /atlasvoyages/
...
@@ -89,9 +87,9 @@ COPY package*.json /atlasvoyages/
# RUN include deploy token in gitlab urls in each of the modules
# RUN include deploy token in gitlab urls in each of the modules
RUN
sed
-i
's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+http:\/\/gitlab-ci-token:'
$DEPLOY_TOKEN
'@labs.atlasvoyages.com\//'
./package.json
#
RUN sed -i 's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+http:\/\/gitlab-ci-token:'$DEPLOY_TOKEN'@labs.atlasvoyages.com\//' ./package.json
#
RUN npm install --unsafe-perm=true
RUN
npm install
--unsafe-perm
=
true
COPY
./ /atlasvoyages/
COPY
./ /atlasvoyages/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment