Skip to content

Commit 0c596e1

Browse files
Circleci project setup (#2)
build and push image with java 8, maven 3.6 and node 10
1 parent 4f0b60b commit 0c596e1

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.circleci/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
jobs:
3+
build:
4+
machine: true
5+
steps:
6+
- checkout
7+
# build the application image
8+
- run: docker build -t montmassoncircleci/java-node:$CIRCLE_BRANCH .
9+
# deploy the image
10+
11+
- run: |
12+
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
13+
docker push montmassoncircleci/java-node:$CIRCLE_BRANCH

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:10-buster
22

33
RUN curl --silent --show-error --location --fail --retry 3 --output /tmp/zulu8.50.0.21-ca-jdk8.0.272-linux_x64.tar.gz https://cdn.azul.com/zulu/bin/zulu8.50.0.21-ca-jdk8.0.272-linux_x64.tar.gz && \
4-
tar xf zulu8.50.0.21-ca-jdk8.0.272-linux_x64.tar.gz -C /opt/ && \
4+
tar xf /tmp/zulu8.50.0.21-ca-jdk8.0.272-linux_x64.tar.gz -C /opt/ && \
55
rm /tmp/zulu8.50.0.21-ca-jdk8.0.272-linux_x64.tar.gz &&\
66
ln -s /opt/zulu8* /opt/java &&\
77
/opt/java/bin/java -version

0 commit comments

Comments
 (0)