Skip to content

Commit

Permalink
Refactor alpine image references
Browse files Browse the repository at this point in the history
  • Loading branch information
zcrisler committed Dec 4, 2021
1 parent 84cef66 commit d2fe100
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# (MIT License)

# Create 'base' image target
FROM artifactory.algol60.net/docker.io/alpine:3.13 as base
FROM artifactory.algol60.net/docker.io/library/alpine:3.13 as base
WORKDIR /app
RUN mkdir -p /var/ims/data /app /results && \
chown -Rv 65534:65534 /var/ims/data /app /results
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/cray-ims/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ annotations:
- name: cray-ims-sshd
image: artifactory.algol60.net/csm-docker/stable/cray-ims-sshd:3.4.5
- name: alpine
image: artifactory.algol60.net/docker.io/alpine:latest
image: alpine:latest
artifacthub.io/license: MIT
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ data:
initContainers:
# Step 1: Set ownership of volume mounts
- name: set-ownership
image: artifactory.algol60.net/docker.io/alpine:latest
image: {{ .Values.alpine.image.repository }}:{{ .Values.alpine.image.tag }}
imagePullPolicy: {{ .Values.alpine.image.pullPolicy }}
command: ["/bin/sh"]
args:
- -c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ data:
initContainers:
# Step 1: Set ownership of volume mounts
- name: set-ownership
image: artifactory.algol60.net/docker.io/alpine:latest
image: {{ .Values.alpine.image.repository }}:{{ .Values.alpine.image.tag }}
imagePullPolicy: {{ .Values.alpine.image.pullPolicy }}
command: ["/bin/sh"]
args:
- -c
Expand Down
5 changes: 3 additions & 2 deletions kubernetes/cray-ims/templates/post_upgrade_hook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
restartPolicy: Never
containers:
- name: ims-post-upgrade-hook1-container
image: "artifactory.algol60.net/docker.io/alpine:latest"
image: {{ .Values.alpine.image.repository }}:{{ .Values.alpine.image.tag }}
imagePullPolicy: {{ .Values.alpine.image.pullPolicy }}
command:
- bin/sh
- -c
Expand All @@ -24,4 +25,4 @@ spec:
volumes:
- name: cray-ims-data
persistentVolumeClaim:
claimName: cray-ims-data-claim
claimName: cray-ims-data-claim
6 changes: 6 additions & 0 deletions kubernetes/cray-ims/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ s3:
connect_timeout: "60"
read_timeout: "60"

alpine:
image:
repository: alpine
tag: latest
pullPolicy: IfNotPresent

ims_config:
cray_ims_job_namespace: "ims"
cray_ims_service_namespace: "services"
Expand Down

0 comments on commit d2fe100

Please sign in to comment.