Skip to content

v2020.3 16/09/2020

Compare
Choose a tag to compare
@juanpelegrina juanpelegrina released this 15 Sep 14:33
· 84 commits to master since this release
6aa99e2

This version only includes non-breaking changes, so that any INSPIRE resource passing the test in the previous release automatically passes the same test in this release. This release is the one used for the end-of-year Monitoring process.

🐛 Bugfixes

  • #207 Tooltip updated for datasets services
  • #214 Pre-defined WFS - check on optional element wfs:boundedBy - #503
  • #295 Test "Request and check externalServiceMetadata" in Conformance Class: Download Service - Pre-defined WFS - #511
  • #307 EPSG codes in Azores - #504
  • #322 Increase Upload size limit to 200MB (Staging instance) and 50MB (Production instance)
  • #343 Test C.18 - New corner case - #505
  • #348 Priority Datasets Keyword: error for Citation Title - #506
  • #350 Updated RegEx for ISO:8601 on MD 2.0 - #507
  • #367 Possible invalid test in MD 2.0 CC 7: 'INSPIRE Harmonised Spatial Data Services metadata - #508
  • #373 Fixed different system errors on MD 2.0 - #509
  • #385 Updated error message for MD 2.0 - SDS 3.4 - #510

Deployment instructions

Section containing deployment process using Docker image and troubleshooting section. You can also find these in the trainig materal

docker login docker.pkg.github.com 
#Provide Github credentials
docker run --name inspire-validator -d -p 8080:8080 -v ~/etf:/etf docker.pkg.github.com/inspire-eu-validation/community/inspire-validator:2020.3
#Launches a container with the image, exposing it port 8080 through the same port in the host machine, and uses a volume in the local file system, on the directory ~/etf
Modifying the Docker image

In the inspire-validator ZIP file you can find all the resources needed to generate the Docker image from this release. If you would like to tweak anything from it, you can modify any of its contents (Dockerfile, entrypoint file, configuration files... ), then execute the command

docker build -t [IMAGE_NAME]:[VERSION]

You can run this again using the run command

docker run --name inspire-validator -d -p 8080:8080 -v ~/etf:/etf [IMAGE_NAME]:[VERSION]
Deployment on production host

The Docker image is set up to run at localhost to be deployed on any machine. However, users may need to acces their validator on a dedicated host, usually with a domain name. For proper functioning of the validator, their UI and correct rendering of Test Reports, validator needs to be configured to run on a domain.

If you want to run the webapp in another host, you can change the configuration file, inside the .war file inside the inspire-validator zip file accompanying this release, at WEB-INF/classes/etf-config.properties, and modify the etf.webapp.base.url property. Then you can proceed to the build process described in the previous point.

Exposing the validator through a proxy

Usually host machines are connected in a private network that access to the Internet through a proxy. The Docker client needs to be configured to make use of this proxy, in order to be able to build the image and set up running the container.

For the build process, you need to add the following arguments to the command

--build-arg http_proxy=[HTTP_PROXY_URL:PORT]  --build-arg https_proxy=[HTTPS_PROXY_URL:PORT]  --build-arg no_proxy=127.0.0.1,localhost,*.<my-domain>

For the run command, you need to add the environment variables to it

--env http_proxy=[HTTP_PROXY_URL:PORT]  --env https_proxy=[HTTPS_PROXY_URL:PORT]  --env no_proxy=127.0.0.1,localhost,*.<mydomain>

These can also be set up in the Dockerfile, using the keyword ENV

For more information please check out https://docs.docker.com/network/proxy

For further configuration, please download the file inspire-validator-2020.3.zip and follow the instructions in the README.md file inside the .zip file.