Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5d2d10e34d | |||
| fcaed0c346 | |||
| ef08a26472 | |||
| 874fb9a40f | |||
| 6faef3f4a3 | |||
| 268b75de8b | |||
| 70be9421e0 | |||
| bc0968b3bb | |||
| 4e1f723167 | |||
| 53a8f8428e | |||
| 1f7bc84f67 | |||
| e799275596 | |||
| 836fba91c8 | |||
|
|
952bf7d6e3 | ||
| ffcb1a2233 | |||
| 542ed54410 | |||
|
|
9ab54c69cb | ||
|
|
ff85054569 | ||
|
|
db136a098c | ||
|
|
6d372e6eae | ||
|
|
6a76d53ee8 | ||
|
|
8d1a740574 | ||
|
|
7011796419 | ||
|
|
777a9d8c00 | ||
|
|
1a136893cc |
12
Dockerfile
12
Dockerfile
@ -1,6 +1,6 @@
|
||||
# Base on latest (edge) alpine image
|
||||
FROM harbor.ervine.dev/library/x86_64/alpine:v3.12
|
||||
LABEL "Maintainer Jonathan Ervine <docker@ervine.org>"
|
||||
FROM harbor.ervine.dev/public/x86_64/alpine:v3.15.0
|
||||
LABEL Maintainer="Jonathan Ervine docker@ervine.org"
|
||||
|
||||
# Install updates
|
||||
ENV LANG='en_US.UTF-8' \
|
||||
@ -8,17 +8,17 @@ ENV LANG='en_US.UTF-8' \
|
||||
FLASK_APP=/data/app-dev/app.py
|
||||
|
||||
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 && \
|
||||
adduser -D python
|
||||
adduser -D hockey
|
||||
|
||||
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.git /data
|
||||
|
||||
RUN pip3 install -r /data/requirements.txt && \
|
||||
rm -rf /tmp/src && rm -rf /var/cache/apk/*
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
#USER python
|
||||
#USER hockey
|
||||
|
||||
CMD [ "/usr/bin/python3", "/data/main.py" ]
|
||||
|
||||
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -3,7 +3,7 @@ kind: Pod
|
||||
spec:
|
||||
containers:
|
||||
- name: kaniko
|
||||
image: gcr.io/kaniko-project/executor:debug-539ddefcae3fd6b411a95982a830d987f4214251
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- /busybox/cat
|
||||
@ -25,14 +25,13 @@ spec:
|
||||
|
||||
node(POD_LABEL) {
|
||||
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') {
|
||||
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:v1.0.6'
|
||||
}
|
||||
}
|
||||
stage('Notify gchat') {
|
||||
hangoutsNotify message: "Hockey Application on Alpine Linux 3.15.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