-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
312 changed files
with
7,123 additions
and
2,447 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/usr/bin/env bash | ||
echo "--------------------------------------------------------------------------------" | ||
echo ".... remove git tags" | ||
export PATTERN="SNAPSHOT" | ||
echo ".... remove git tags for pattern:$PATTERN" | ||
git fetch --tags | ||
tags=$(git tag | grep SNAPSHOT) | ||
tags=$(git tag | grep $PATTERN) | ||
echo $tags | xargs -n1 echo | ||
|
||
if [[ "$1" == "-y" ]]; then | ||
|
@@ -19,10 +20,10 @@ else | |
exit 0 | ||
fi | ||
echo "--------------------------------------------------------------------------------" | ||
echo "... remove old SNAPSHOT zip and installer files?" | ||
echo "... remove old $PATTERN zip and installer files?" | ||
|
||
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.zip' | ||
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.jar' | ||
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.zip' | ||
ssh [email protected] -4 'ls /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.jar' | ||
|
||
if [[ "$1" == "-y" ]]; then | ||
CONT="y" | ||
|
@@ -32,7 +33,7 @@ else | |
fi | ||
|
||
if [ "$CONT" = "y" ]; then | ||
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.zip' || echo "do not fail if nothing have changed" | ||
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-SNAPSHOT*.jar' || echo "do not fail if nothing have changed" | ||
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.zip' || echo "do not fail if nothing have changed" | ||
ssh [email protected] -4 'rm /home/sakuli/htdocs/install/sakuli-v*-'"$PATTERN"'*.jar' || echo "do not fail if nothing have changed" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,7 @@ | |
*.png binary | ||
*.jpg binary | ||
*.pdf binary | ||
|
||
# files with LF | ||
*.twig text eol=lf | ||
TestCase_*.txt eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ key3.db | |
.gearman-cache | ||
.sakuli-steps-cache | ||
Dockerfile.local | ||
**/test-output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e -o pipefail | ||
|
||
IMAGES=( | ||
"consol/sakuli-ubuntu-xfce" | ||
"consol/sakuli-ubuntu-xfce-java" | ||
"consol/sakuli-ubuntu-icewm" | ||
"consol/sakuli-ubuntu-icewm-java" | ||
"consol/sakuli-centos-xfce" | ||
"consol/sakuli-centos-xfce-java" | ||
"consol/sakuli-centos-icewm" | ||
"consol/sakuli-centos-icewm-java" | ||
"consol/sakuli-ui" | ||
"consol/omd-labs-ubuntu-sakuli" | ||
"consol/omd-labs-centos-sakuli" | ||
"consol/omd-labs-debian-sakuli" | ||
) | ||
PATTERN="SNAPSHOT" | ||
#PATTERN="v1.1.0-SNAPSHOT" | ||
|
||
logfile="docker.delete.images.log" | ||
SAVEMODE=$1 | ||
|
||
echo "" > $logfile | ||
token="" | ||
function loginToDocker() { | ||
if [[ $HUB_USERNAME == "" ]] || [[ $HUB_PASSWORD == "" ]] ; then | ||
echo "please set dockerhub login credentials via env vars: 'HUB_USERNAME' and 'HUB_PASSWORD'" | ||
exit -1 | ||
fi | ||
json=$(curl -s --fail -i -X POST \ | ||
-H "Content-Type: application/json" \ | ||
-H "Accept: application/json" \ | ||
-d '{"username":"'${HUB_USERNAME}'","password":"'${HUB_PASSWORD}'"}' \ | ||
https://hub.docker.com/v2/users/login/ | grep "{" ) | ||
# echo $json | ||
# echo "--------------------" | ||
token=$(echo $json | jq --raw-output '.token' ) | ||
|
||
echo TOKEN: $token | ||
echo "logged in user: $HUB_USERNAME" | ||
echo "--------------------" | ||
} | ||
|
||
function deleteTags () { | ||
if [[ $1 == "" ]] ; then | ||
echo "use function: deleteTag <user/repo>" | ||
exit -1 | ||
fi | ||
|
||
echo "getTags: ${1}" | ||
json=$(curl --fail -i -X GET \ | ||
https://hub.docker.com/v2/repositories/${1}/tags/ | grep "{") | ||
# echo "$json" | ||
# echo "-------------------------" | ||
|
||
### ensure continue if no tags are matching | ||
set +e +o pipefail | ||
tags=$( echo "$json" | jq --raw-output '.results[].name' | grep $PATTERN ) | ||
set -e -o pipefail | ||
|
||
echo "-------------------------" | ||
echo "TAGS:" | ||
echo "$tags" | ||
echo "-------------------------" | ||
|
||
if [[ $tags == "" ]] ; then echo "no tags" && return ; fi | ||
|
||
for tag in $tags ; do | ||
echo "delete ${1}:${tag}" | ||
echo "${1}:${tag}" >> $logfile | ||
|
||
if [[ "$SAVEMODE" != "--save" ]] ; then | ||
curl --fail -i -X DELETE \ | ||
-H "Accept: application/json" \ | ||
-H "Authorization: JWT $token" \ | ||
"https://hub.docker.com/v2/repositories/${1}/tags/${tag}/" | ||
fi | ||
echo "........................." | ||
done | ||
} | ||
|
||
function logout() { | ||
echo "logout user: $HUB_USERNAME" | ||
curl -s -i --fail -X POST \ | ||
-H "Accept: application/json" \ | ||
-H "Authorization: JWT $token" \ | ||
https://hub.docker.com/v2/logout/ | ||
} | ||
|
||
loginToDocker | ||
#deleteTags "consol/sakuli-ubuntu-xfce" | ||
#Loop | ||
for IMAGE in "${IMAGES[@]}" ; do | ||
deleteTags $IMAGE | ||
done | ||
logout | ||
echo "-----------> DONE!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# This Dockerfile is used to build a sakuli image based on CentOS | ||
|
||
FROM consol/centos-icewm-vnc:1.2.3 | ||
FROM consol/centos-icewm-vnc:1.3.0 | ||
|
||
MAINTAINER Tobias Schneck "[email protected]" | ||
ENV REFRESHED_AT 2017-12-18 | ||
ENV REFRESHED_AT 2018-06-27 | ||
|
||
LABEL io.k8s.description="Sakuli headless testing container with Xfce window manager, firefox and chromium" \ | ||
io.k8s.display-name="Sakuli testing container based on Centos and Xfce" \ | ||
|
@@ -20,7 +20,7 @@ ENV VNC_PORT=5901 \ | |
|
||
## Connection ports for controlling the UI: | ||
# VNC port:5901 | ||
# noVNC webport, connect via http://IP:6901/vnc_auto.html?password=vncpassword | ||
# noVNC webport, connect via http://IP:6901/?password=sakuli | ||
EXPOSE $VNC_PORT $NO_VNC_PORT | ||
|
||
# use root user for installation | ||
|
@@ -38,7 +38,7 @@ RUN $INST_SCRIPTS/java_jre.sh | |
RUN $INST_SCRIPTS/java_jce_test/jce_test.sh | ||
|
||
### Install Sakuli | ||
ARG SAKULI_VERSION=1.1.0 | ||
ARG SAKULI_VERSION=1.2.0 | ||
# SAKULI_UMASK: Testsuite folder default permissions after text execution | ||
# SAKULI_EXAMPLE_TEST_SUITE: Define the example which will be used as default test | ||
# SAKULI_TEST_SUITE: Define Sakuli default startup testsuite | ||
|
@@ -53,9 +53,9 @@ RUN $INST_SCRIPTS/sakuli.sh | |
|
||
### configure startup | ||
ADD ./sakuli-client/src/common/scripts $STARTUPDIR | ||
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR $HOME | ||
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR | ||
# use headless user for startup | ||
USER 1984 | ||
USER 1000 | ||
|
||
### Sakuli startup script | ||
# no parameters: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# This Dockerfile is used to build a sakuli image based on CentOS | ||
|
||
FROM consol/centos-icewm-vnc:1.2.3 | ||
FROM consol/centos-icewm-vnc:1.3.0 | ||
|
||
MAINTAINER Tobias Schneck "[email protected]" | ||
ENV REFRESHED_AT 2017-12-18 | ||
ENV REFRESHED_AT 2018-06-27 | ||
|
||
LABEL io.k8s.description="Sakuli headless testing container (maven java tests) with IceWM window manager, firefox and chromium" \ | ||
io.k8s.display-name="Sakuli testing container (maven java tests) based on Centos and IceWM" \ | ||
|
@@ -20,7 +20,7 @@ | |
|
||
## Connection ports for controlling the UI: | ||
# VNC port:5901 | ||
# noVNC webport, connect via http://IP:6901/vnc_auto.html?password=vncpassword | ||
# noVNC webport, connect via http://IP:6901/?password=sakuli | ||
EXPOSE $VNC_PORT $NO_VNC_PORT | ||
|
||
# use root user for installation | ||
|
@@ -45,7 +45,7 @@ | |
RUN $INST_SCRIPTS/maven.sh | ||
|
||
### Install Sakuli | ||
ARG SAKULI_VERSION=1.1.0 | ||
ARG SAKULI_VERSION=1.2.0 | ||
# SAKULI_UMASK: Testsuite folder default permissions after text execution | ||
# SAKULI_TEST_SUITE Define Sakuli default startup testsuite | ||
ENV SAKULI_UMASK=0000 SAKULI_TEST_SUITE=/opt/maven | ||
|
@@ -58,9 +58,9 @@ | |
### configure startup | ||
ADD ./sakuli-client/src/common/scripts/ $STARTUPDIR | ||
ADD ./sakuli-client/src_java/common/scripts/ $STARTUPDIR | ||
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR $HOME $SAKULI_TEST_SUITE | ||
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR | ||
# use headless user for startup | ||
USER 1984 | ||
USER 1000 | ||
|
||
### Sakuli startup script | ||
# no parameters: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# This Dockerfile is used to build a sakuli image based on CentOS | ||
|
||
FROM consol/centos-xfce-vnc:1.2.3 | ||
FROM consol/centos-xfce-vnc:1.3.0 | ||
|
||
MAINTAINER Tobias Schneck "[email protected]" | ||
ENV REFRESHED_AT 2017-12-18 | ||
ENV REFRESHED_AT 2018-06-27 | ||
|
||
LABEL io.k8s.description="Sakuli headless testing container with IceWM window manager, firefox and chromium" \ | ||
io.k8s.display-name="Sakuli testing container based on Centos and IceWM" \ | ||
|
@@ -20,7 +20,7 @@ ENV VNC_PORT=5901 \ | |
|
||
## Connection ports for controlling the UI: | ||
# VNC port:5901 | ||
# noVNC webport, connect via http://IP:6901/vnc_auto.html?password=vncpassword | ||
# noVNC webport, connect via http://IP:6901/?password=sakuli | ||
EXPOSE $VNC_PORT $NO_VNC_PORT | ||
|
||
# use root user for installation | ||
|
@@ -38,7 +38,7 @@ RUN $INST_SCRIPTS/java_jre.sh | |
RUN $INST_SCRIPTS/java_jce_test/jce_test.sh | ||
|
||
### Install Sakuli | ||
ARG SAKULI_VERSION=1.1.0 | ||
ARG SAKULI_VERSION=1.2.0 | ||
# SAKULI_UMASK: Testsuite folder default permissions after text execution | ||
# SAKULI_EXAMPLE_TEST_SUITE: Define the example which will be used as default test | ||
# SAKULI_TEST_SUITE: Define Sakuli default startup testsuite | ||
|
@@ -53,9 +53,9 @@ RUN $INST_SCRIPTS/sakuli.sh | |
|
||
### configure startup | ||
ADD ./sakuli-client/src/common/scripts $STARTUPDIR | ||
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR $HOME | ||
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR | ||
# use headless user for startup | ||
USER 1984 | ||
USER 1000 | ||
|
||
### Sakuli startup script | ||
# no parameters: | ||
|
Oops, something went wrong.