Compare commits
6 Commits
0326ba32ff
...
master
Author | SHA1 | Date | |
---|---|---|---|
0dc0b5c6ad | |||
356098d858 | |||
28bb81287e | |||
7b99ead0eb | |||
53f5aec90c | |||
b803e3f70e |
@ -3,12 +3,13 @@ FROM harbor.dragse.it/base/alpine:3.15
|
|||||||
LABEL maintainer="Lennard Brinkhaus <lennard.brinkhaus@dragse.de>"
|
LABEL maintainer="Lennard Brinkhaus <lennard.brinkhaus@dragse.de>"
|
||||||
|
|
||||||
RUN echo $'http://nexus.dragse.it/repository/apk-main/\nhttp://nexus.dragse.it/repository/apk-community/' > /etc/apk/repositories
|
RUN echo $'http://nexus.dragse.it/repository/apk-main/\nhttp://nexus.dragse.it/repository/apk-community/' > /etc/apk/repositories
|
||||||
|
|
||||||
RUN apk --no-cache upgrade \
|
RUN apk --no-cache upgrade \
|
||||||
&& apk --no-cache add ca-certificates wget openssl \
|
&& apk --no-cache add ca-certificates wget openssl \
|
||||||
&& update-ca-certificates \
|
&& update-ca-certificates
|
||||||
|
|
||||||
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
|
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
|
||||||
RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 999 redis
|
RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis
|
||||||
# alpine already has a gid 999, so we'll use the next id
|
# alpine already has a gid 999, so we'll use the next id
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
|
35
Jenkinsfile
vendored
Normal file
35
Jenkinsfile
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
node {
|
||||||
|
def app
|
||||||
|
|
||||||
|
stage('Initialize'){
|
||||||
|
def dockerHome = tool 'docker'
|
||||||
|
env.PATH = "${dockerHome}/bin:${env.PATH}"
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Clone repository') {
|
||||||
|
/* Let's make sure we have the repository cloned to our workspace */
|
||||||
|
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Build 6.2.6 image') {
|
||||||
|
/* This builds the actual image; synonymous to
|
||||||
|
* docker build on the command line */
|
||||||
|
def dockerfile = "6.2/Dockerfile"
|
||||||
|
app = docker.build("harbor.dragse.it/base/redis", "-f ${dockerfile} ./6.2 ")
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Push image') {
|
||||||
|
/* Finally, we'll push the image with two tags:
|
||||||
|
* First, the incremental build number from Jenkins
|
||||||
|
* Second, the 'latest' tag.
|
||||||
|
* Pushing multiple tags is cheap, as all the layers are reused. */
|
||||||
|
docker.withRegistry('https://harbor.dragse.it', 'harbor-repo') {
|
||||||
|
app.push("${env.BUILD_NUMBER}")
|
||||||
|
app.push("6")
|
||||||
|
app.push("6.2")
|
||||||
|
app.push("6.2.6")
|
||||||
|
app.push("latest")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user