Skip to content

Commit

Permalink
Use skopeo for multiarch
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Apr 26, 2024
1 parent b195139 commit e69f7e1
Show file tree
Hide file tree
Showing 41 changed files with 84 additions and 205 deletions.
7 changes: 2 additions & 5 deletions .github/fiware/core/cygnus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/draco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/o2kconnector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/pyspark-connector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/quantum-leap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio-at-context-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio-entity-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio-history-entity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio-history-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio-query-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio-registry-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
8 changes: 3 additions & 5 deletions .github/fiware/core/scorpio-subscription-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ function dateDiff {
echo $(((`date -jf %Y-%m-%d "$CURRENTDATE" +%s` - `date -jf %Y-%m-%d "$1" +%s`)/86400))
}
echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio-subscription-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/scorpio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/sth-comet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/core/x-ngsijs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ exit 0

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
8 changes: 3 additions & 5 deletions .github/fiware/iot-agents/iotagent-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ function dateDiff {
}
echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."


function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/iot-agents/iotagent-lightweightM2M.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/iot-agents/iotagent-sigfox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/iot-agents/iotagent-ultralight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ echo "$SOURCE - $VERSION - $(dateDiff $DATE) days old."

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/iot-agents/x-OpenMTC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ exit 0

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
7 changes: 2 additions & 5 deletions .github/fiware/iot-agents/x-iotagent-LoRaWAN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@ exit 0

function clone {
echo 'cloning from '"$1 $2"' to '"$3"
docker pull -q "$1":"$2"
docker tag "$1":"$2" "$3":"$2"
docker push -q "$3":"$2"
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":"$2"

if ! [ -z "$4" ]; then
echo 'pushing '"$1 $2"' to latest'
docker tag "$1":"$2" "$3":latest
docker push -q "$3":latest
skopeo copy --multi-arch all docker://"$1":"$2" docker://"$3":latest
fi
}

Expand Down
Loading

0 comments on commit e69f7e1

Please sign in to comment.