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
d384a277
Commit
d384a277
authored
Apr 26, 2019
by
chahir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show location
parent
2df7b632
Pipeline
#529
failed with stages
in 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
docker/Dockerfile
+2
-15
No files found.
docker/Dockerfile
View file @
d384a277
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
FROM
node:6.11.1 as build-stage
FROM
node:6.11.1 as build-stage
# Take an SSH key build token and deploy token as a build argument.
# Take an SSH key build token and deploy token as a build argument.
# Defien the build-time variables.
ARG
SSH_PRIVATE_KEY
ARG
SSH_PRIVATE_KEY
ARG
BUILD_TOKEN
ARG
BUILD_TOKEN
ARG
DEPLOY_TOKEN
ARG
DEPLOY_TOKEN
...
@@ -11,10 +10,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
...
@@ -11,10 +10,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
dist-upgrade
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
dist-upgrade
# Installing supervisord
# 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
&&
\
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
&&
\
...
@@ -53,7 +48,6 @@ RUN mongod --fork --syslog
...
@@ -53,7 +48,6 @@ RUN mongod --fork --syslog
# install expect form automatic npm login
# 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
RUN
apt-get
-yq
install expect-dev
# dump mongo db
# dump mongo db
...
@@ -84,8 +78,6 @@ RUN mkdir ~/.ssh && \
...
@@ -84,8 +78,6 @@ RUN mkdir ~/.ssh && \
RUN
cat
~/.ssh/known_hosts
RUN
cat
~/.ssh/known_hosts
RUN
cat
~/.ssh/id_rsa
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
WORKDIR
/atlasvoyages
# COPY ./sh /atlasvoyages/sh
# COPY ./sh /atlasvoyages/sh
...
@@ -103,11 +95,6 @@ RUN npm install --unsafe-perm=true
...
@@ -103,11 +95,6 @@ RUN npm install --unsafe-perm=true
# hide deploy token
# hide deploy token
RUN
sed
-i
's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+http:\/\/gitlab-ci-token:xxxxxxxxx@labs.atlasvoyages.com\//'
./package.json
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/
COPY
./ /atlasvoyages/
...
@@ -121,8 +108,8 @@ RUN find ./node_modules -maxdepth 1 -name "pine*" -type d \( ! -name . \) -exec
...
@@ -121,8 +108,8 @@ RUN find ./node_modules -maxdepth 1 -name "pine*" -type d \( ! -name . \) -exec
find ./node_modules
-maxdepth
1
-name
"hermes*"
-type
d
\(
!
-name
.
\)
-exec
bash
-c
"cd '{}' && npm i --unsafe-perm=true && grunt build:dist --force"
\;
&&
\
find ./node_modules
-maxdepth
1
-name
"hermes*"
-type
d
\(
!
-name
.
\)
-exec
bash
-c
"cd '{}' && npm i --unsafe-perm=true && grunt build:dist --force"
\;
&&
\
find ./node_modules
-maxdepth
1
-name
"theme-atlasvoyages*"
-type
d
\(
!
-name
.
\)
-exec
bash
-c
"cd '{}' && npm i --unsafe-perm=true && grunt build:dist --force"
\;
find ./node_modules
-maxdepth
1
-name
"theme-atlasvoyages*"
-type
d
\(
!
-name
.
\)
-exec
bash
-c
"cd '{}' && npm i --unsafe-perm=true && grunt build:dist --force"
\;
#RUN find ./apps/atlasvoyages -maxdepth 1 -exec bash -c "git clone http://labs.atlasvoyages.com/webapps/atlas-voyages.git && rm -rf ./public && cp " \;
RUN
echo
'\n
location
------'
|
pwd
RUN
echo
'\n
----------------location -
------'
|
pwd
RUN
echo
'\n'
| grunt pine:setup
RUN
echo
'\n'
| grunt pine:setup
# RUN tree /atlasvoyages/apps/atlas-voyages/
# RUN tree /atlasvoyages/apps/atlas-voyages/
...
...
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