You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both tools (Windows, Linux) take the parameters described in the [Dockerfile Usage](#dockerfile-usage) section. **Currently, only Turtle (.ttl) files are supported.**
82
-
83
-
The tools print the validation report or the inferences graph to the output screen.
55
+
## Docker Usage
84
56
85
-
## Dockerfile Usage
57
+
You can use the tool as Docker image. Prebuild Docker images are available at the [GitHub Container Registry](https://github.com/ashleycaselli/shacl/pkgs/container/shacl). The SHACL API runs inside the Docker image, with two possible commands available. To run the validator:
86
58
87
-
The `Dockerfile` in the `.docker` folder includes a minimal Java Runtime Environment for the SHACL API that clocks in at ~85Mb. To get the latest release of the image use:
> :warning: It is generally better to use a fixed version of the docker image, rather than the `latest` tag. Consult the package page to find what versions are available.
93
60
94
-
To use the Docker image, there are two possible commands. To run the validator:
Any other command after `ghcr.io/topquadrant/shacl:1.4.3` will print the following help page:
71
+
Any other command after `ghcr.io/ashleycaselli/shacl:latest` will print the following help page:
107
72
108
73
```
109
74
Please use this docker image as follows:
110
-
docker run -v /path/to/data:/data ghcr.io/topquadrant/shacl:1.4.3 [COMMAND] [PARAMETERS]
75
+
docker run -v /path/to/data:/data ghcr.io/ashleycaselli/shacl:latest [COMMAND] [PARAMETERS]
111
76
COMMAND:
112
77
validate
113
78
to run validation
@@ -128,14 +93,74 @@ PARAMETERS:
128
93
disables the import of external ontologies
129
94
```
130
95
96
+
### Build image locally
97
+
98
+
You can build your own Docker image locally by using the `Dockerfile` provided in the `.docker` folder. It includes a minimal Java Runtime Environment for the SHACL API that clocks in at ~85Mb. To build it locally use:
99
+
100
+
> :warning: If no value for the `ARCH_BASE` variable is provided, the image will be built using the default architecture value (**eclipse-temurin:21-alpine**)
101
+
102
+
```
103
+
docker build \
104
+
-f .docker/Dockerfile \
105
+
-t ghcr.io/topquadrant/shacl:VER \
106
+
--build-arg VERSION=VER .
107
+
```
108
+
131
109
If you'd like to build the image locally in an `x86` architecture, use:
Both tools (Windows, Linux) take the parameters described in the [Docker Usage](#docker-usage) section. **Currently, only Turtle (.ttl) files are supported.**
165
+
166
+
The tool print the validation report or the inferences graph to the output screen.
0 commit comments