Commit 211438f7 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Include curl tests in testing docker image

Dockerfile version is now 0.3
parent d1a27574
# Dockerfile for snf-occi-manual-ci # Dockerfile for snf-occi-manual-ci
# contains functional testing scripts # contains functional testing scripts
# #
# VERSION 0.2 # VERSION 0.3
FROM egifedcloud/fedcloud-userinterface:latest FROM egifedcloud/fedcloud-userinterface:latest
MAINTAINER Stavros Sachtouris <saxtouri@grnet.gr> MAINTAINER Stavros Sachtouris <saxtouri@grnet.gr>
RUN apt update && apt install ca-policy-egi-core -y RUN apt update && apt install ca-policy-egi-core curl -y
COPY run_functional_tests.sh /data/ COPY run_functional_tests.sh /data/
COPY run_curl_tests.sh /data/
COPY run.sh /data/ COPY run.sh /data/
CMD ["/bin/bash", "/data/run.sh"] CMD ["/bin/bash", "/data/run.sh"]
...@@ -35,10 +35,10 @@ If you already have a valid proxy, load it somewhere on the machine ...@@ -35,10 +35,10 @@ If you already have a valid proxy, load it somewhere on the machine
What is in the container What is in the container
------------------------ ------------------------
You will find all the tools from egifedcloud/fedcloud-userinterface:latest plus You will find all the tools from egifedcloud/fedcloud-userinterface:latest plus
a shell script to test the snf-occi application. two shell script to test the snf-occi application.
To run the script, you must set some variables, either when you RUN the To run the "run_functional_tests.sh" script, you must set some variables,
container or while you are inside the container. either when you RUN the container or while you are inside the container.
:: ::
...@@ -47,12 +47,22 @@ container or while you are inside the container. ...@@ -47,12 +47,22 @@ container or while you are inside the container.
OS_TPL OS_TPL
RESOURCE_TPL RESOURCE_TPL
For the "run_curl_tests.sh" you need a similar set of enviroment variables.
::
OCCI_ENDPOINT
TOKEN
OS_TPL
RESOURCE_TPL
For instance, if you have a proxy, you may want to run something like: For instance, if you have a proxy, you may want to run something like:
:: ::
$ docker run -v my_proxy:/data/my_proxy \ $ docker run -v my_proxy:/data/my_proxy \
-e OCCI_ENDPOINT="https://okeanos-occi2.hellasgrid.gr:9000" \ -e OCCI_ENDPOINT="https://okeanos-occi2.hellasgrid.gr:9000" \
-e TOKEN="My-Okeanos-Token"
-e USER_PROXY="/data/my_proxy" \ -e USER_PROXY="/data/my_proxy" \
-e OS_TPL="6f1f7205-cf4c-4b8c-ae77-7c419747bcbd"\ -e OS_TPL="6f1f7205-cf4c-4b8c-ae77-7c419747bcbd"\
-e RESOURCE_TPL="13"\ -e RESOURCE_TPL="13"\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment