Commit dad7363f by chahir

add log to docker file

parent 37808fb0
Pipeline #527 passed with stages
in 9 minutes 53 seconds
......@@ -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/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment