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"
|
|
@ -10,22 +10,21 @@ RUN pip install --upgrade pip \
|
|||
pip install --upgrade pywinrm[credssp]
|
||||
|
||||
#RUN apt-get update \
|
||||
# && apt-get upgrade -y \
|
||||
# && apt-get install -y --no-install-recommends \
|
||||
# gcc \
|
||||
# libffi-devel \
|
||||
# python3 \
|
||||
# epel-release \
|
||||
# python3-pip \
|
||||
# wget
|
||||
|
||||
# && apt-get upgrade -y \
|
||||
# && apt-get install -y --no-install-recommends \
|
||||
# gcc \
|
||||
# libffi-devel \
|
||||
# python3 \
|
||||
# epel-release \
|
||||
# python3-pip \
|
||||
# wget
|
||||
|
||||
#RUN pip3 install --upgrade pip \
|
||||
# pip3 install --upgrade virtualenv \
|
||||
# pip3 install pywinrm[kerberos] \
|
||||
# pip3 install pywinrm \
|
||||
# pip3 install jmspath \
|
||||
# pip3 install request prueba
|
||||
# pip3 install --upgrade virtualenv \
|
||||
# pip3 install pywinrm[kerberos] \
|
||||
# pip3 install pywinrm \
|
||||
# pip3 install jmspath \
|
||||
# pip3 install request prueba
|
||||
|
||||
RUN ls /usr/local/bin/
|
||||
|
||||
|
|
Loading…
Reference in New Issue