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
dad7363f
Commit
dad7363f
authored
Apr 16, 2019
by
chahir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log to docker file
parent
37808fb0
Pipeline
#527
passed with stages
in 9 minutes 53 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 @
dad7363f
...
...
@@ -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/
...
...
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