- Install Docker - Get Docker
- Run Docker
- Download SUV for docker and extract to place of your choosing - Dockerized SUV
- Run install.bat for windows or install.sh for linux and mac
- Place your files in input folder (replace the Svedala model, but keep the boundary files)
- Run validate.bat for windows or validate.sh for linux nad mac
This repository contains Dockerized environment for the QoCDC Standalone Valtion Tool. We aim to publish it to the private Docker Hub via automated build mechanism.
Section 0: Quick Guide
Section 1: Introduces this document
Section 2: Explains the Requirements for host environment
Section 3: Describes the Configuration
Section 4: Details the usage
Section 5: How to run the project
Section 6: The VOLUMES directory tree
Section 7: how to Execute commands inside the container
Section 8: License
3.1 Install Docker.
3.2 Install Docker-compose .
This docker image contains the following software stack:
-
Base image: Centos:8
-
JDK 14: Java Development Kit 14
5.1-Place the artifact
You need to place the desired version of the standalone-validation-tool-${Version}.tar.gz
in the remote folder .
The repository
is as follows:
.
└── Docker-repo
└── remote
├── standalone-validation-tool-${Version}.tar.gz
├── dockerfile
├── docker-compose.yml
├── .env
5.2-Set the version
You will need to set the version of the standalone-validation-tool in :
- .env file - StandaloneValidationTool variable
StandaloneValidationTool=standalone-validation-tool-${version}
Example: StandaloneValidationTool=standalone-validation-tool-1.2.175
Make sure that docker service is up and running:
6.1 Build the image
When you want to build the program :
$ docker-compose build
Then you can see the output as follows:
.
.
=> CACHED [19/19] RUN tar xvzf /home/tmp/standalone-validation-tool-1.2. 0.0s
=> exporting to image 0.1s
=> => exporting layers 0.0s
=> => writing image sha256:e1002496366653a0bcc8bf150cfc20cb3b917c9811fac 0.0s
=> => naming to docker.io/library/qocdc:v1.5 0.0s
Successfully built e1002496366653a0bcc8bf150cfc20cb3b917c9811facd8a944d9a4e83df5f0a
6.2 Run the container
When you want to run the container :
$ docker-compose up -d
Then you can see the output as follows:
Recreating dockerizedtests_QoCDC_1 ... done
After running the container directory
is as follows:
.
└── Docker-repo
├── input
├── output
├── rule-set-library
└── remote
├── standalone-validation-tool-${Version}.tar.gz
├── dockerfile
├── docker-compose.yml
├── .env
The folders input ,output & rule-set-library are mapped with the folders in the workspace of the standalone validation tool. Therefore any uploaded file in these folders will be copied in the according directory of the container and versi-versa.
For more infos about docker-volumes check: https://docs.docker.com/storage/volumes/
To run any command inside the container you should either :
8.1 Execute command through the cli
docker exec -it <container_id_or_name> "COMMAND"
Example: docker exec -it dockerizedtests_QoCDC_1 sh validate.sh -vg file
In order to get the container name/id, you should type the following cammand
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
666d065d188b qocdc:v1.5 "/usr/sbin/init" 17 minutes ago Up 17 minutes dockerizedtests_QoCDC_1
which will list all the running containers.
8.2 Run the container from the Docker-desktop
Check the following links:
"https://docs.docker.com/engine"
"https://docs.docker.com/docker-for-windows/"
Author: QoCDC Team