Skip to content

Commit 45fa9e7

Browse files
committed
fix: use sh-enabled image
1 parent 693fe79 commit 45fa9e7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ spec:
2424
sleep 2;
2525
done;
2626
- name: data-download
27-
image: alpine/git:2.47.1
28-
command: ['/bin/sh']
27+
image: alpine:3.21.2
28+
command: ['sh', '-c']
2929
args:
30-
- -c
31-
- >-
32-
git clone --recurse-submodules https://github.com/PokeAPI/pokeapi.git &&
33-
mv /git/pokeapi/data/v2/* /tmp
30+
- apk add --update git && git clone --recurse-submodules https://github.com/PokeAPI/pokeapi.git &&
31+
mv /tmp/pokeapi/data/v2/* /tmp
32+
workingDir: /tmp
3433
volumeMounts:
3534
- mountPath: /tmp/cries
3635
name: cries-data-share

0 commit comments

Comments
 (0)