diff --git a/backup/pvc/Dockerfile b/backup/pvc/Dockerfile index c4efc6e4..a25b81c2 100644 --- a/backup/pvc/Dockerfile +++ b/backup/pvc/Dockerfile @@ -1,8 +1,16 @@ FROM alpine:3.9 -RUN set -x && \ - addgroup -S user -g 1000 && \ - adduser -S user -G user && \ +ENV USER=user +ENV UID=1000 +ENV GID=1000 + +RUN addgroup --gid "$GID" "$USER" && \ + adduser \ + --disabled-password \ + --gecos "" \ + --ingroup "$USER" \ + --uid "$UID" \ + "$USER" && \ apk add --no-cache bash WORKDIR /home/user/bin COPY bin . diff --git a/backup/pvc/VERSION.txt b/backup/pvc/VERSION.txt index a3dce6cd..f9cece58 100644 --- a/backup/pvc/VERSION.txt +++ b/backup/pvc/VERSION.txt @@ -1 +1 @@ -v0.0.2 +v0.0.3 diff --git a/docs/getting-started.md b/docs/getting-started.md index 022fabdb..3c3099e7 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -425,7 +425,7 @@ spec: value: /backup - name: JENKINS_HOME value: /jenkins-home - image: virtuslab/jenkins-operator-backup-pvc:v0.0.2 # look at backup/pvc directory + image: virtuslab/jenkins-operator-backup-pvc:v0.0.3 # look at backup/pvc directory imagePullPolicy: IfNotPresent volumeMounts: - mountPath: /jenkins-home # Jenkins home volume diff --git a/test/e2e/restorebackup_test.go b/test/e2e/restorebackup_test.go index 190b80b3..dbfe2493 100644 --- a/test/e2e/restorebackup_test.go +++ b/test/e2e/restorebackup_test.go @@ -100,7 +100,7 @@ func createJenkinsWithBackupAndRestoreConfigured(t *testing.T, name, namespace s }, { Name: containerName, - Image: "virtuslab/jenkins-operator-backup-pvc:v0.0.2", + Image: "virtuslab/jenkins-operator-backup-pvc:v0.0.3", ImagePullPolicy: corev1.PullIfNotPresent, Env: []corev1.EnvVar{ {