From 317be52d3df2fa8ad8f02ca1e96799f09522c5c1 Mon Sep 17 00:00:00 2001 From: Ludovic Muller Date: Wed, 17 Jul 2024 17:46:45 +0200 Subject: [PATCH 1/2] chore: add .gitattributes --- .gitattributes | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..ac61b92 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +* text=auto + +*.bat eol=crlf +*.cmd eol=crlf +*.sh eol=lf From 594c4dc803320451dc1c840f1bd9a07d82b564e2 Mon Sep 17 00:00:00 2001 From: Ludovic Muller Date: Wed, 17 Jul 2024 17:59:33 +0200 Subject: [PATCH 2/2] docs(stack): no newlines on commands, so that it can work on Windows --- stack/README.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/stack/README.md b/stack/README.md index aaabd3c..4e8fc3e 100644 --- a/stack/README.md +++ b/stack/README.md @@ -3,18 +3,13 @@ You can start the stack with a full demo dataset: ```sh -docker compose \ - --profile full-demo-dataset \ - up -d --build +docker compose --profile full-demo-dataset up -d --build ``` You can also add a basic Kubernetes + OCI demo dataset, by running the following command: ```sh -docker compose \ - --profile basic-metadata \ - --profile k8s-demo-data \ - up -d --build +docker compose --profile basic-metadata --profile k8s-demo-data up -d --build ``` You will see in a next section how to build this dataset by yourself, in case you want to try with your own Kubernetes cluster. @@ -64,9 +59,7 @@ To generate triples, you can run the following command within this directory: ```sh mkdir -p ./volumes/k8s-data/ -npx @zazuko/k8s-rdf-exporter@latest \ - --base-iri=http://127.0.0.1:8080/k8s/ \ - --base-iri-oci=http://127.0.0.1:8080/oci/ > ./volumes/k8s-data/data.ttl +npx @zazuko/k8s-rdf-exporter@latest --base-iri=http://127.0.0.1:8080/k8s/ --base-iri-oci=http://127.0.0.1:8080/oci/ > ./volumes/k8s-data/data.ttl ``` The `demo-data/k8s.ttl` was generated that way, using a Kubernetes cluster created using Docker Desktop.