forked from umbernhard/ray-docker-arm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fix-docker-latest.sh
executable file
·72 lines (64 loc) · 2.53 KB
/
fix-docker-latest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# This script is not for normal use and is used in the event that CI (or a user) overwrites the latest tag.
set -x
IMAGE="1.0.0"
DEST="latest"
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
--source-tag)
shift
IMAGE=$1
;;
--dest-tag)
shift
DEST=$1
;;
*)
echo "Usage: fix-docker-latest.sh --source-tag <TAG> --dest-tag <LATEST>"
exit 1
esac
shift
done
echo "You must be logged into a user with push priviledges to do this."
docker pull rayproject/ray:"$IMAGE"
docker tag rayproject/ray:"$IMAGE" rayproject/ray:"$DEST"
docker tag rayproject/ray:"$IMAGE" rayproject/ray:"$DEST"-cpu
docker pull rayproject/ray:"$IMAGE"-gpu
docker tag rayproject/ray:"$IMAGE"-gpu rayproject/ray:"$DEST"-gpu
docker push rayproject/ray:"$DEST"
docker push rayproject/ray:"$DEST"-cpu
docker push rayproject/ray:"$DEST"-gpu
docker pull rayproject/ray-deps:"$IMAGE"
docker tag rayproject/ray-deps:"$IMAGE" rayproject/ray-deps:"$DEST"
docker tag rayproject/ray-deps:"$IMAGE" rayproject/ray-deps:"$DEST"-cpu
docker pull rayproject/ray-deps:"$IMAGE"-gpu
docker tag rayproject/ray-deps:"$IMAGE"-gpu rayproject/ray-deps:"$DEST"-gpu
docker push rayproject/ray-deps:"$DEST"
docker push rayproject/ray-deps:"$DEST"-cpu
docker push rayproject/ray-deps:"$DEST"-gpu
docker pull rayproject/base-deps:"$IMAGE"
docker tag rayproject/base-deps:"$IMAGE" rayproject/base-deps:"$DEST"
docker tag rayproject/base-deps:"$IMAGE" rayproject/base-deps:"$DEST"-cpu
docker pull rayproject/base-deps:"$IMAGE"-gpu
docker tag rayproject/base-deps:"$IMAGE"-gpu rayproject/base-deps:"$DEST"-gpu
docker push rayproject/base-deps:"$DEST"
docker push rayproject/base-deps:"$DEST"-cpu
docker push rayproject/base-deps:"$DEST"-gpu
docker pull rayproject/ray-ml:"$IMAGE"
docker tag rayproject/ray-ml:"$IMAGE" rayproject/ray-ml:"$DEST"
docker tag rayproject/ray-ml:"$IMAGE" rayproject/ray-ml:"$DEST"-cpu
docker pull rayproject/ray-ml:"$IMAGE"-gpu
docker tag rayproject/ray-ml:"$IMAGE"-gpu rayproject/ray-ml:"$DEST"-gpu
docker push rayproject/ray-ml:"$DEST"
docker push rayproject/ray-ml:"$DEST"-cpu
docker push rayproject/ray-ml:"$DEST"-gpu
docker pull rayproject/autoscaler:"$IMAGE"
docker tag rayproject/autoscaler:"$IMAGE" rayproject/autoscaler:"$DEST"
docker tag rayproject/autoscaler:"$IMAGE" rayproject/autoscaler:"$DEST"-cpu
docker pull rayproject/autoscaler:"$IMAGE"-gpu
docker tag rayproject/autoscaler:"$IMAGE"-gpu rayproject/autoscaler:"$DEST"-gpu
docker push rayproject/autoscaler:"$DEST"
docker push rayproject/autoscaler:"$DEST"-cpu
docker push rayproject/autoscaler:"$DEST"-gpu