Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22546ca6c5 | ||
|
|
4f1d64850e | ||
|
|
f1b1445b7f | ||
|
|
e4872df2a3 | ||
|
|
9b08a8ddca | ||
|
|
1aa9a3a067 | ||
|
|
eb1f4fe0ef | ||
|
|
41e913a3c2 | ||
|
|
f50565c0f8 | ||
|
|
08832576cb | ||
|
|
9830b20587 |
10
Dockerfile
10
Dockerfile
@ -1,6 +1,6 @@
|
|||||||
# Base on latest (edge) alpine image
|
# Base on latest (edge) alpine image
|
||||||
FROM harbor.ervine.dev/public/x86_64/alpine:v3.15.0
|
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' \
|
||||||
@ -10,15 +10,15 @@ ENV LANG='en_US.UTF-8' \
|
|||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk -U upgrade --ignore alpine-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 hockey
|
adduser -D python
|
||||||
|
|
||||||
RUN mkdir /data && cd /data && git clone --single-branch --branch master https://git.ervine.org/jonny/gcp-hockey-results.git /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/*
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
#USER hockey
|
#USER python
|
||||||
|
|
||||||
CMD [ "/usr/bin/python3", "/data/main.py" ]
|
CMD [ "/usr/bin/python3", "/data/main.py" ]
|
||||||
|
|||||||
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -3,7 +3,7 @@ kind: Pod
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: kaniko
|
- name: kaniko
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug-539ddefcae3fd6b411a95982a830d987f4214251
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command:
|
command:
|
||||||
- /busybox/cat
|
- /busybox/cat
|
||||||
@ -25,13 +25,14 @@ spec:
|
|||||||
|
|
||||||
node(POD_LABEL) {
|
node(POD_LABEL) {
|
||||||
stage('Build with Kaniko') {
|
stage('Build with Kaniko') {
|
||||||
git branch: 'master', 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=false --destination=harbor.ervine.dev/public/x86_64/alpine/hockey:v1.0.6'
|
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') {
|
stage('Notify gchat') {
|
||||||
hangoutsNotify message: "Hockey Application on Alpine Linux 3.15.0 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
hangoutsNotify message: "Hockey (dev) Application on Alpine Linux 3.13.0 has built",token: "A2ET831pVslqXTqAx6ycu573r",threadByJob: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user