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
2df7b632
Commit
2df7b632
authored
6 years ago
by
chahir
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://labs.atlasvoyages.com/nabilelmahiri/atlasvoayages.com
parents
3472e4ee
dad7363f
Pipeline
#528
failed with stages
in 2 minutes 8 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
docker/Dockerfile
+13
-0
No files found.
docker/Dockerfile
View file @
2df7b632
...
...
@@ -2,6 +2,7 @@
FROM
node:6.11.1 as build-stage
# Take an SSH key build token and deploy token as a build argument.
# Defien the build-time variables.
ARG
SSH_PRIVATE_KEY
ARG
BUILD_TOKEN
ARG
DEPLOY_TOKEN
...
...
@@ -10,6 +11,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
dist-upgrade
# Installing supervisord
# Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.
# gnupg2 GNU privacy guard - a free PGP replacement
# Tree is a recursive directory listing program that produces a depth indented listing of files
# sshd (OpenSSH Daemon or server) is the daemon program for ssh client. It is a free and open source ssh server.
RUN
DEBIAN_FRONTEND
=
noninteractive apt-get install
-y
supervisor
&&
\
apt-get install
-y
gnupg2
&&
\
apt-get install
-yq
ssh
&&
\
...
...
@@ -48,6 +53,7 @@ RUN mongod --fork --syslog
# install expect form automatic npm login
# Expect is a tool for automating interactive applications according to a script.
RUN
apt-get
-yq
install expect-dev
# dump mongo db
...
...
@@ -78,6 +84,8 @@ RUN mkdir ~/.ssh && \
RUN
cat
~/.ssh/known_hosts
RUN
cat
~/.ssh/id_rsa
# If the WORKDIR doesn’t exist, it will be created even if it’s not used in any subsequent Dockerfile instruction.
WORKDIR
/atlasvoyages
# COPY ./sh /atlasvoyages/sh
...
...
@@ -95,6 +103,11 @@ RUN npm install --unsafe-perm=true
# hide deploy token
RUN
sed
-i
's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+http:\/\/gitlab-ci-token:xxxxxxxxx@labs.atlasvoyages.com\//'
./package.json
# TEST to see the package .json
RUN
cat
./package.json
RUN
pwd
COPY
./ /atlasvoyages/
...
...
This diff is collapsed.
Click to expand it.
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