Automate schema updates
This commit is contained in:
13
misc/update-schemas.sh
Normal file
13
misc/update-schemas.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
export SQLX_OFFLINE=1
|
||||
BASE_DIR="$(dirname "$0")/.."
|
||||
CONFIG_SCHEMA="${BASE_DIR}/docs/config.schema.json"
|
||||
GRAPHQL_SCHEMA="${BASE_DIR}/crates/graphql/schema.graphql"
|
||||
|
||||
set -x
|
||||
# XXX: we shouldn't have to specify this feature
|
||||
cargo run -p mas-config --features webpki-roots > "${CONFIG_SCHEMA}"
|
||||
cargo run -p mas-graphql --features webpki-roots > "${GRAPHQL_SCHEMA}"
|
||||
@@ -1,9 +0,0 @@
|
||||
# Disable wasmtime cache by default in the Docker image, because the rootfs is likely to be read-only
|
||||
|
||||
[cache]
|
||||
enabled = false
|
||||
|
||||
# A directory which exists *must* be specified even though the cache is
|
||||
# disabled, else wasmtime will try to create it, which might fail if the rootfs
|
||||
# is mounted as read-only
|
||||
directory = "/tmp"
|
||||
Reference in New Issue
Block a user