Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22546ca6c5 | ||
|
|
4f1d64850e | ||
|
|
f1b1445b7f | ||
|
|
e4872df2a3 | ||
|
|
9b08a8ddca | ||
|
|
1aa9a3a067 | ||
|
|
eb1f4fe0ef | ||
|
|
41e913a3c2 | ||
|
|
f50565c0f8 | ||
|
|
08832576cb | ||
|
|
9830b20587 |
@ -1,6 +1,6 @@
|
|||||||
# Base on latest (edge) alpine image
|
# Base on latest (edge) alpine image
|
||||||
FROM harbor.ervine.dev/library/x86_64/alpine:v3.12
|
FROM harbor.ervine.dev/public/x86_64/alpine:v3.13
|
||||||
LABEL "Maintainer Jonathan Ervine <docker@ervine.org>"
|
LABEL Maintainer="Jonathan Ervine <docker@ervine.org>"
|
||||||
|
|
||||||
# Install updates
|
# Install updates
|
||||||
ENV LANG='en_US.UTF-8' \
|
ENV LANG='en_US.UTF-8' \
|
||||||
@ -8,11 +8,11 @@ ENV LANG='en_US.UTF-8' \
|
|||||||
FLASK_APP=/data/app-dev/app.py
|
FLASK_APP=/data/app-dev/app.py
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk -U upgrade --ignore aline-baselayout && \
|
apk -U upgrade --ignore alpine-baselayout && \
|
||||||
apk -U add python3 gcc py3-pip python3-dev musl-dev libffi-dev git && \
|
apk -U add python3 gcc py3-pip python3-dev musl-dev libffi-dev git && \
|
||||||
adduser -D python
|
adduser -D python
|
||||||
|
|
||||||
RUN mkdir /data && cd /data && git clone --single-branch --branch dev https://git.ervine.org/jonny/gcp-hockey-results /data
|
RUN mkdir /data && cd /data && git clone --single-branch --branch master https://git.ervine.org/jonny/gcp-hockey-results /data
|
||||||
|
|
||||||
RUN pip3 install -r /data/requirements.txt && \
|
RUN pip3 install -r /data/requirements.txt && \
|
||||||
rm -rf /tmp/src && rm -rf /var/cache/apk/*
|
rm -rf /tmp/src && rm -rf /var/cache/apk/*
|
||||||
|
|||||||
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -25,14 +25,14 @@ spec:
|
|||||||
|
|
||||||
node(POD_LABEL) {
|
node(POD_LABEL) {
|
||||||
stage('Build with Kaniko') {
|
stage('Build with Kaniko') {
|
||||||
git url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-hockey.git', credentialsId: 'jenkins-to-git'
|
git branch: "master", url: 'ssh://git@git.ervine.org/jonny/x86_64-alpine-hockey.git', credentialsId: 'jenkins-to-git'
|
||||||
container('kaniko') {
|
container('kaniko') {
|
||||||
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=true --destination=harbor.ervine.dev/public/x86_64/alpine/hockey:v3.12.0 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey:v3.12'
|
sh '/kaniko/executor -f `pwd`/Dockerfile -c `pwd` --cache=false --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.13.0 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:v3.13 --destination=harbor.ervine.dev/public/x86_64/alpine/hockey-dev:0.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Notify gchat') {
|
||||||
|
hangoutsNotify message: "Hockey (dev) Application on Alpine Linux 3.13.0 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Notify gchat') {
|
|
||||||
hangoutsNotify message: "Hockey Application on Alpine Linux 3.12.0 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user