Compare commits

..

No commits in common. "master" and "0326ba32ff2a2c61f79316ba4420891aaaa08d9e" have entirely different histories.

2 changed files with 2 additions and 38 deletions

View File

@ -3,13 +3,12 @@ FROM harbor.dragse.it/base/alpine:3.15
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 apk --no-cache upgrade \
&& 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
RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 1000 redis
RUN addgroup -S -g 1000 redis && adduser -S -G redis -u 999 redis
# alpine already has a gid 999, so we'll use the next id
RUN apk add --no-cache \

35
Jenkinsfile vendored
View File

@ -1,35 +0,0 @@
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")
}
}
}