-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,23 +66,18 @@ jobs: | |
|
||
smoke-test-example: | ||
runs-on: ubuntu-latest | ||
working-directory: example | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
|
||
- uses: lando/setup-lando@v3 | ||
with: | ||
node-version: lts/* | ||
- run: npm ci | ||
- run: docker compose up -d | ||
working-directory: example | ||
- run: npm run start:prod > api.log & | ||
env: | ||
log: trace | ||
working-directory: example | ||
- name: Wait for server to start | ||
run: npx wait-on http://localhost:1429/plaque/newton-s-apple-tree-monash-university -t 30s | ||
- run: npx wait-on http://localhost:1429/plaque/newton-s-apple-tree-monash-university.html -t 1s | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
lando-version: 3.21.2 | ||
- uses: tpluscode/[email protected] | ||
with: | ||
name: api log | ||
path: example/api.log | ||
healthcheck: http://db.read-the-plaque.lndo.site/ | ||
timeout: 30000 | ||
ignore-errors: true | ||
|
||
- run: curl https://read-the-plaque.lndo.site/plaque/newton-s-apple-tree-monash-university -If | ||
- run: curl https://read-the-plaque.lndo.site/plaque/newton-s-apple-tree-monash-university.html -If |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: read-the-plaque | ||
services: | ||
oxigraph: | ||
api: 3 | ||
type: lando | ||
entrypoint: /usr/local/bin/oxigraph | ||
app_mount: false | ||
scanner: false | ||
ssl: true | ||
services: | ||
image: ghcr.io/oxigraph/oxigraph:0.4.6 | ||
user: root | ||
command: serve --location /data --bind 0.0.0.0:7878 | ||
ports: | ||
- 7878 | ||
volumes: | ||
- ./example/oxigraph:/data | ||
app: | ||
type: node:20 | ||
ssl: true | ||
scanner: false | ||
build: | ||
- npm i | ||
command: cd example; kopflos serve --mode development --trust-proxy | ||
overrides: | ||
environment: | ||
API_BASE: https://read-the-plaque.lndo.site | ||
DB_URI: http://db.read-the-plaque.lndo.site | ||
|
||
proxy: | ||
oxigraph: | ||
- db.read-the-plaque.lndo.site:7878 | ||
app: | ||
- read-the-plaque.lndo.site:1429 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters