Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
CIM
Pintura
Commits
fc6b3cd3
Commit
fc6b3cd3
authored
Feb 14, 2020
by
Richard Marston
Browse files
Dockerfile copy improvement & VM deploy
parent
087ffb02
Pipeline
#248682
passed with stage
in 3 minutes and 32 seconds
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fc6b3cd3
...
@@ -22,9 +22,9 @@ deploy:docker:
...
@@ -22,9 +22,9 @@ deploy:docker:
stage
:
deploy
stage
:
deploy
script
:
script
:
-
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
-
docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
-
ssh-agent -s
-
eval $(
ssh-agent -s
)
-
echo "${SSH_DEPLOY_KEY}" | perl -p -e 's/&&&&&&&&/\n/g' | ssh-add - > /dev/null
-
echo "${SSH_DEPLOY_KEY}" | perl -p -e 's/&&&&&&&&/\n/g' | ssh-add - > /dev/null
-
ssh -o "StrictHostKeyChecking=no" "${VM_IP}" "cd
P
intura && git pull && ./stop_docker.sh && make docker && make start"
-
ssh
-l ubuntu
-o "StrictHostKeyChecking=no" "${VM_IP}" "cd
p
intura && git
checkout master && git
pull && ./stop_docker.sh && make docker && make start"
dependencies
:
dependencies
:
-
build:docker
-
build:docker
tags
:
tags
:
...
...
Dockerfile
View file @
fc6b3cd3
...
@@ -25,9 +25,17 @@ RUN npm run build
...
@@ -25,9 +25,17 @@ RUN npm run build
FROM
node
AS
builder
FROM
node
AS
builder
COPY
--from=xslt-builder /generated /pintura/cimmenu/templates/generated/
COPY
--from=xslt-builder /generated /pintura/cimmenu/templates/generated/
COPY
cimmenu data_model generateIndex.js Makefile package-lock.json cimsvg Dockerfile images test css Dockerfile.dev index.js package.json /pintura
WORKDIR
pintura
# copy data approximately in order of how often they change / how big they are
RUN
rm
-rf
node_modules
COPY
data_model /pintura/data_model
COPY
images /pintura/images
COPY
css /pintura/css
COPY
test/ /pintura/test
COPY
cimmenu /pintura/cimmenu
COPY
cimsvg /pintura/cimsvg
COPY
generateIndex.js Makefile package-lock.json index.js package.json /pintura/
WORKDIR
/pintura
RUN
npm
install
RUN
npm
install
RUN
npm run build
RUN
npm run build
...
...
Dockerfile.dev
View file @
fc6b3cd3
...
@@ -25,7 +25,16 @@ RUN npm run build
...
@@ -25,7 +25,16 @@ RUN npm run build
FROM node AS builder
FROM node AS builder
COPY --from=xslt-builder /generated /pintura/cimmenu/templates/generated/
COPY --from=xslt-builder /generated /pintura/cimmenu/templates/generated/
COPY . /pintura
# copy data approximately in order of how often they change / how big they are
COPY data_model /pintura/data_model
COPY images /pintura/images
COPY css /pintura/css
COPY test/ /pintura/test
COPY cimmenu /pintura/cimmenu
COPY cimsvg /pintura/cimsvg
COPY generateIndex.js Makefile package-lock.json index.js package.json /pintura/
WORKDIR pintura
WORKDIR pintura
RUN rm -rf node_modules
RUN rm -rf node_modules
RUN npm install
RUN npm install
...
...
Write
Preview
Supports
Markdown
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