Skip to content

Commit

Permalink
fix(controller): untar error at job container (#1294)
Browse files Browse the repository at this point in the history
fix error when untar
  • Loading branch information
goldenxinxing authored Sep 23, 2022
1 parent 01c2917 commit 7c35873
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/controller/src/main/resources/template/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ spec:
- sh
- -c
- >-
cd /opt/starwhale;
find ./ -type f \( -name \*.swmp \) -exec tar -C swmp/ -xf {} \;
find ./ -type f \( -name \*.swrt \) -exec tar -C swrt/ -xf {} \;
cd /opt/starwhale && find ./ -type f \( -name \*.swmp \) -exec tar -C swmp/ -xf {} \;
&& find ./ -type f \( -name \*.swrt \) -exec tar -C swrt/ -xf {} \;
containers:
- name: 'worker'
image: 'docker.io/library/busybox'
Expand Down

0 comments on commit 7c35873

Please sign in to comment.