refs #7442 Cache script
This commit is contained in:
parent
94eb3d25ef
commit
03af1e775e
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
MY_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$MY_DIR/image.conf"
|
||||
|
||||
image=$1
|
||||
|
||||
if [[ -z "$image" ]]; then
|
||||
echo "Usage: $0 <image>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
taggedImage="$registry/$image"
|
||||
|
||||
docker image pull "$image"
|
||||
docker image tag "$image" "$taggedImage"
|
||||
docker image push "$taggedImage"
|
|
@ -2,7 +2,7 @@
|
|||
set -e
|
||||
|
||||
MY_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
source "$MY_DIR/push.conf"
|
||||
source "$MY_DIR/image.conf"
|
||||
|
||||
# Prepare the environment
|
||||
|
||||
|
@ -20,7 +20,7 @@ if [ ! -z "$revision" ]; then
|
|||
tag="$tag-$revisionPrefix$revision"
|
||||
fi
|
||||
|
||||
fullImage="$registry/$image"
|
||||
fullImage="$registry/$repository/$image"
|
||||
latestImage="$fullImage:latest"
|
||||
taggedImage="$fullImage:$tag"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
registry="registry.verdnatura.es"
|
||||
repository="verdnatura"
|
||||
revisionPrefix="vn"
|
|
@ -1,2 +0,0 @@
|
|||
registry="registry.verdnatura.es/verdnatura"
|
||||
revisionPrefix="vn"
|
|
@ -19,7 +19,6 @@ RUN pip install --upgrade pip \
|
|||
# python3-pip \
|
||||
# wget
|
||||
|
||||
|
||||
#RUN pip3 install --upgrade pip \
|
||||
# pip3 install --upgrade virtualenv \
|
||||
# pip3 install pywinrm[kerberos] \
|
||||
|
|
Loading…
Reference in New Issue