Skip to content

Commit 01a775d

Browse files
committed
Adding image clone scripts
1 parent dbebf2f commit 01a775d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1748
-2
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
set -e
2+
3+
NAME="api-management/coat-rack"
4+
SOURCE="telefonicaiot/coat-rack"
5+
DOCKER_TARGET="fiware/coat-rack"
6+
QUAY_TARGET="quay.io/fiware/coat-rack"
7+
8+
9+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
10+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
11+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
12+
13+
echo "NOT DONE"
14+
exit 0
15+
16+
function clone {
17+
echo 'cloning from '"$1 $2"' to '"$3"
18+
docker pull -q "$1":"$2"
19+
docker tag "$1":"$2" "$3":"$2"
20+
21+
if ! [ -z "$4" ]; then
22+
echo 'pushing '"$1 $2"' to latest'
23+
docker tag "$1":"$2" "$3":latest
24+
docker push -q "$3":latest
25+
fi
26+
}
27+
28+
for i in "$@" ; do
29+
if [[ $i == "docker" ]]; then
30+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
31+
fi
32+
if [[ $i == "quay" ]]; then
33+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
34+
fi
35+
echo ""
36+
done
37+
38+
for i in "$@" ; do
39+
if [[ $i == "clean" ]]; then
40+
docker rmi -f $(docker images -a -q) | true
41+
fi
42+
done

.github/fiware/core/cygnus.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
set -e
2+
3+
NAME="core/cygnus"
4+
SOURCE="telefonicaiot/fiware-cygnus"
5+
DOCKER_TARGET="fiware/cygnus-ngsi"
6+
QUAY_TARGET="quay.io/fiware/cygnus-ngsi"
7+
8+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
9+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
10+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
11+
12+
function clone {
13+
echo 'cloning from '"$1 $2"' to '"$3"
14+
docker pull -q "$1":"$2"
15+
docker tag "$1":"$2" "$3":"$2"
16+
docker push -q "$3":"$2"
17+
18+
if ! [ -z "$4" ]; then
19+
echo 'pushing '"$1 $2"' to latest'
20+
docker tag "$1":"$2" "$3":latest
21+
docker push -q "$3":latest
22+
fi
23+
}
24+
25+
for i in "$@" ; do
26+
if [[ $i == "docker" ]]; then
27+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
28+
fi
29+
if [[ $i == "quay" ]]; then
30+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
31+
fi
32+
echo ""
33+
done
34+
35+
for i in "$@" ; do
36+
if [[ $i == "clean" ]]; then
37+
docker rmi -f $(docker images -a -q) | true
38+
fi
39+
done

.github/fiware/core/draco.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
set -e
2+
3+
NAME="core/draco"
4+
SOURCE="ging/fiware-draco"
5+
DOCKER_TARGET="fiware/draco"
6+
QUAY_TARGET="quay.io/fiware/draco"
7+
8+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
9+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
10+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
11+
12+
function clone {
13+
echo 'cloning from '"$1 $2"' to '"$3"
14+
docker pull -q "$1":"$2"
15+
docker tag "$1":"$2" "$3":"$2"
16+
docker push -q "$3":"$2"
17+
18+
if ! [ -z "$4" ]; then
19+
echo 'pushing '"$1 $2"' to latest'
20+
docker tag "$1":"$2" "$3":latest
21+
docker push -q "$3":latest
22+
fi
23+
}
24+
25+
for i in "$@" ; do
26+
if [[ $i == "docker" ]]; then
27+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
28+
fi
29+
if [[ $i == "quay" ]]; then
30+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
31+
fi
32+
echo ""
33+
done
34+
35+
for i in "$@" ; do
36+
if [[ $i == "clean" ]]; then
37+
docker rmi -f $(docker images -a -q) | true
38+
fi
39+
done

.github/fiware/core/ngsijs.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
set -e
2+
3+
NAME="core/ngsijs"
4+
SOURCE="telefonicaiot/ngsijs"
5+
DOCKER_TARGET="fiware/nsgijs"
6+
QUAY_TARGET="quay.io/fiware/ngsijs"
7+
8+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
9+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
10+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
11+
12+
echo "NOT DONE"
13+
exit 0
14+
15+
16+
function clone {
17+
echo 'cloning from '"$1 $2"' to '"$3"
18+
docker pull -q "$1":"$2"
19+
docker tag "$1":"$2" "$3":"$2"
20+
docker push -q "$3":"$2"
21+
22+
if ! [ -z "$4" ]; then
23+
echo 'pushing '"$1 $2"' to latest'
24+
docker tag "$1":"$2" "$3":latest
25+
docker push -q "$3":latest
26+
fi
27+
}
28+
29+
for i in "$@" ; do
30+
if [[ $i == "docker" ]]; then
31+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
32+
fi
33+
if [[ $i == "quay" ]]; then
34+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
35+
fi
36+
echo ""
37+
done
38+
39+
for i in "$@" ; do
40+
if [[ $i == "clean" ]]; then
41+
docker rmi -f $(docker images -a -q) | true
42+
fi
43+
done

.github/fiware/core/o2kconnector.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
set -e
2+
3+
NAME="core/o2kconnector"
4+
SOURCE="telefonicaiot/o2kconnector"
5+
DOCKER_TARGET="fiware/o2kconnector"
6+
QUAY_TARGET="quay.io/fiware/o2kconnector"
7+
8+
9+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
10+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
11+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
12+
13+
echo "NOT DONE"
14+
exit 0
15+
16+
function clone {
17+
echo 'cloning from '"$1 $2"' to '"$3"
18+
docker pull -q "$1":"$2"
19+
docker tag "$1":"$2" "$3":"$2"
20+
docker push -q "$3":"$2"
21+
22+
if ! [ -z "$4" ]; then
23+
echo 'pushing '"$1 $2"' to latest'
24+
docker tag "$1":"$2" "$3":latest
25+
docker push -q "$3":latest
26+
fi
27+
}
28+
29+
for i in "$@" ; do
30+
if [[ $i == "docker" ]]; then
31+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
32+
fi
33+
if [[ $i == "quay" ]]; then
34+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
35+
fi
36+
echo ""
37+
done
38+
39+
for i in "$@" ; do
40+
if [[ $i == "clean" ]]; then
41+
docker rmi -f $(docker images -a -q) | true
42+
fi
43+
done

.github/fiware/core/orion.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
set -e
2+
3+
NAME="core/orion"
4+
SOURCE="telefonicaiot/fiware-orion"
5+
DOCKER_TARGET="fiware/orion"
6+
QUAY_TARGET="quay.io/fiware/orion"
7+
8+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
9+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
10+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
11+
12+
function clone {
13+
echo 'cloning from '"$1 $2"' to '"$3"
14+
docker pull -q "$1":"$2"
15+
docker tag "$1":"$2" "$3":"$2"
16+
docker push -q "$3":"$2"
17+
18+
if ! [ -z "$4" ]; then
19+
echo 'pushing '"$1 $2"' to latest'
20+
docker tag "$1":"$2" "$3":latest
21+
docker push -q "$3":latest
22+
fi
23+
}
24+
25+
for i in "$@" ; do
26+
if [[ $i == "docker" ]]; then
27+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
28+
fi
29+
if [[ $i == "quay" ]]; then
30+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
31+
fi
32+
echo ""
33+
done
34+
35+
for i in "$@" ; do
36+
if [[ $i == "clean" ]]; then
37+
docker rmi -f $(docker images -a -q) | true
38+
fi
39+
done
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
set -e
2+
3+
NAME="core/pyspack-connector"
4+
SOURCE="telefonicaiot/pyspack-connector"
5+
DOCKER_TARGET="fiware/pyspack-connector"
6+
QUAY_TARGET="quay.io/fiware/pyspack-connector"
7+
8+
9+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
10+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
11+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
12+
13+
echo "NOT DONE"
14+
exit 0
15+
16+
function clone {
17+
echo 'cloning from '"$1 $2"' to '"$3"
18+
docker pull -q "$1":"$2"
19+
docker tag "$1":"$2" "$3":"$2"
20+
docker push -q "$3":"$2"
21+
22+
if ! [ -z "$4" ]; then
23+
echo 'pushing '"$1 $2"' to latest'
24+
docker tag "$1":"$2" "$3":latest
25+
docker push -q "$3":latest
26+
fi
27+
}
28+
29+
for i in "$@" ; do
30+
if [[ $i == "docker" ]]; then
31+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
32+
fi
33+
if [[ $i == "quay" ]]; then
34+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
35+
fi
36+
echo ""
37+
done
38+
39+
for i in "$@" ; do
40+
if [[ $i == "clean" ]]; then
41+
docker rmi -f $(docker images -a -q) | true
42+
fi
43+
done

.github/fiware/core/quantum-leap.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
set -e
2+
3+
NAME="core/quantum-leap"
4+
SOURCE="orchestracities/quantumleap"
5+
DOCKER_TARGET="fiware/quantum-leap"
6+
QUAY_TARGET="quay.io/fiware/quantumleap"
7+
8+
9+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
10+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
11+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
12+
13+
function clone {
14+
echo 'cloning from '"$1 $2"' to '"$3"
15+
docker pull -q "$1":"$2"
16+
docker tag "$1":"$2" "$3":"$2"
17+
docker push -q "$3":"$2"
18+
19+
if ! [ -z "$4" ]; then
20+
echo 'pushing '"$1 $2"' to latest'
21+
docker tag "$1":"$2" "$3":latest
22+
docker push -q "$3":latest
23+
fi
24+
}
25+
26+
for i in "$@" ; do
27+
if [[ $i == "docker" ]]; then
28+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
29+
fi
30+
if [[ $i == "quay" ]]; then
31+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
32+
fi
33+
echo ""
34+
done
35+
36+
for i in "$@" ; do
37+
if [[ $i == "clean" ]]; then
38+
docker rmi -f $(docker images -a -q) | true
39+
fi
40+
done

.github/fiware/core/scorpio.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
set -e
2+
3+
NAME="core/scorpio"
4+
SOURCE="scorpiobroker/all-in-one-runner"
5+
DOCKER_TARGET="fiware/scorpio"
6+
QUAY_TARGET="quay.io/fiware/scorpio"
7+
8+
REPOSITORY="$(git rev-parse --show-toplevel)/$NAME"
9+
TAGS="$(git -C $REPOSITORY rev-list --tags --max-count=1 )"
10+
VERSION=$(git -C $REPOSITORY describe --exclude 'FIWARE*' --tags $TAGS )
11+
12+
echo "NOT DONE"
13+
exit 0
14+
15+
function clone {
16+
echo 'cloning from '"$1 $2"' to '"$3"
17+
docker pull -q "$1":"$2"
18+
docker tag "$1":"$2" "$3":"$2"
19+
docker push -q "$3":"$2"
20+
21+
if ! [ -z "$4" ]; then
22+
echo 'pushing '"$1 $2"' to latest'
23+
docker tag "$1":"$2" "$3":latest
24+
docker push -q "$3":latest
25+
fi
26+
}
27+
28+
for i in "$@" ; do
29+
if [[ $i == "docker" ]]; then
30+
clone "$SOURCE" "$VERSION" "$DOCKER_TARGET" true
31+
fi
32+
if [[ $i == "quay" ]]; then
33+
clone "$SOURCE" "$VERSION" "$QUAY_TARGET" true
34+
fi
35+
echo ""
36+
done
37+
38+
for i in "$@" ; do
39+
if [[ $i == "clean" ]]; then
40+
docker rmi -f $(docker images -a -q) | true
41+
fi
42+
done

0 commit comments

Comments
 (0)