Skip to content

Commit

Permalink
fix: bug #26
Browse files Browse the repository at this point in the history
fix: generated linux/arm/v8 image
  • Loading branch information
ecow committed Apr 10, 2024
1 parent 1f33470 commit 9fd0ee9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,12 @@ docker network rm myvpn
## Push to docker hub

To push a new docker image to docker hub:

```
# docker login
# docker buildx create --name multi-arch-builder
NAME="linkeddatacenter/sdaas-ce" MAJOR="4" MINOR="1" PATCH="1"
docker buildx build --builder multi-arch-builder --platform linux/arm,linux/amd64 --build-arg MODE=prod --push -t $NAME:$MAJOR.$MINOR.$PATCH .
NAME="linkeddatacenter/sdaas-ce" MAJOR="4" MINOR="1" PATCH="2"
docker buildx build --builder multi-arch-builder --platform linux/arm/v8,linux/amd64 --build-arg MODE=prod --push -t $NAME:$MAJOR.$MINOR.$PATCH .
```


Expand Down
4 changes: 2 additions & 2 deletions modules/w3c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sd_w3c_update() {
local last_sparql_update_result
last_sparql_update_result="$(sd_curl -s --fail-with-body \
-X POST \
--data @- \
--data-binary @- \
--header "Transfer-Encoding: chunked" \
--header "Content-Type: application/sparql-update; charset=utf-8" \
"${!sid}" )"
Expand All @@ -37,7 +37,7 @@ sd_w3c_query() {

sd_curl -s --fail-with-body --compressed \
-X POST \
--data @- \
--data-binary @- \
--header "Content-Type: application/sparql-query; charset=utf-8" \
--header "Accept: $mime_type; charset=utf-8" \
"${!sid}"
Expand Down
5 changes: 4 additions & 1 deletion tests/functional/sparqlTest.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ function on_script_startup {
source "$SDAAS_INSTALL_DIR/core" NO_SPLASH
STORE="http://kb:8080/sdaas/sparql"
STORE_TYPE=w3c
INSERT_TEST_STATEMENT='INSERT DATA { GRAPH <urn:graph:g> { <urn:uri:s> <urn:uri:p> <urn:uri:o>} }'
INSERT_TEST_STATEMENT="
# This is a comment to ensure new lines are evaluated
INSERT DATA { GRAPH <urn:graph:g> { <urn:uri:s> <urn:uri:p> <urn:uri:o>} }
"
sd_include sparql
}

Expand Down
5 changes: 4 additions & 1 deletion tests/functional/w3cTest.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ function on_script_startup {
source "$SDAAS_INSTALL_DIR/core" NO_SPLASH
TESTSTORE="http://kb:8080/sdaas/sparql"
TESTSTORE_TYPE="w3c"
INSERT_TEST_STATEMENT='INSERT DATA { GRAPH <urn:graph:g> { <urn:uri:s> <urn:uri:p> <urn:uri:o>} }'
INSERT_TEST_STATEMENT="
# This is a comment to ensure new lines are evaluated
INSERT DATA { GRAPH <urn:graph:g> { <urn:uri:s> <urn:uri:p> <urn:uri:o>} }
"
sd_include w3c
}

Expand Down

0 comments on commit 9fd0ee9

Please sign in to comment.