diff --git a/Dockerfile b/Dockerfile index 2fa2a651..6542c9bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,6 +49,9 @@ RUN for binary in "/bin/ping" "/bin/ping6" "/usr/bin/git" /app/bin/* /usr/libexe xargs -I % sh -c 'mkdir -p $(dirname deps%); cp % deps%;' || true; \ done +RUN touch /app/memory.alys +RUN chown 10001 /app/memory.alys + # Build a minimal docker image FROM scratch WORKDIR / @@ -80,6 +83,7 @@ COPY --from=build /usr/libexec/git-core/ /usr/libexec/git-core/ # Copy the app into place COPY --from=build /app/deps / COPY --from=build /app/bin / +COPY --from=build /app/memory.alys /memory.alys # Use an unprivileged user. USER appuser:appuser diff --git a/shard.lock b/shard.lock index f6421628..62307b1a 100644 --- a/shard.lock +++ b/shard.lock @@ -13,6 +13,10 @@ shards: git: https://github.com/spider-gazelle/active-model.git version: 4.3.2 + alys: + git: https://git.sr.ht/~refi64/alys + version: 0.2.0 + ameba: git: https://github.com/crystal-ameba/ameba.git version: 1.5.0 @@ -169,6 +173,10 @@ shards: git: https://github.com/luckyframework/lucky_router.git version: 0.5.2 + msgpack: + git: https://github.com/crystal-community/msgpack-crystal.git + version: 1.3.4 + murmur3: git: https://github.com/aca-labs/murmur3.git version: 0.1.1+git.commit.7cbe25c0ca8d052c9d98c377c824dcb0e038c790 @@ -183,7 +191,7 @@ shards: office365: git: https://github.com/placeos/office365.git - version: 1.23.0 + version: 1.23.2 open_api: git: https://github.com/elbywan/open_api.cr.git @@ -255,7 +263,7 @@ shards: placeos-driver: git: https://github.com/placeos/driver.git - version: 6.9.9 + version: 6.9.14 placeos-frontend-loader: git: https://github.com/placeos/frontend-loader.git @@ -267,7 +275,7 @@ shards: placeos-models: git: https://github.com/placeos/models.git - version: 9.25.0 + version: 9.25.2 placeos-resource: git: https://github.com/place-labs/resource.git @@ -281,7 +289,7 @@ shards: git: https://github.com/spider-gazelle/promise.git version: 3.0.0 - protobuf: + protobuf: # Overridden git: https://github.com/jeromegn/protobuf.cr.git version: 2.3.0 @@ -315,7 +323,7 @@ shards: search-ingest: git: https://github.com/placeos/search-ingest.git - version: 2.10.4+git.commit.ad86e414f43fa5debb28192b0a01c7d3f655ce28 + version: 2.11.0+git.commit.0014d0541f341af6e011b645d1975d3c452a3794 secrets-env: # Overridden git: https://github.com/spider-gazelle/secrets-env.git diff --git a/shard.override.yml b/shard.override.yml index b8c96573..51862628 100644 --- a/shard.override.yml +++ b/shard.override.yml @@ -13,6 +13,10 @@ dependencies: github: wyhaines/opentelemetry-sdk.cr branch: main + protobuf: + github: jeromegn/protobuf.cr + version: 2.3.0 + # For core client placeos-core-client: github: placeos/core-client diff --git a/shard.yml b/shard.yml index e68770b9..c8a1cfe6 100644 --- a/shard.yml +++ b/shard.yml @@ -102,6 +102,9 @@ dependencies: openai: github: spider-gazelle/crystal-openai + alys: + git: https://git.sr.ht/~refi64/alys + development_dependencies: # Linter ameba: diff --git a/src/app.cr b/src/app.cr index cad31bc5..c68d1e85 100644 --- a/src/app.cr +++ b/src/app.cr @@ -1,3 +1,6 @@ +require "alys" +Alys.setup_from_env + require "option_parser" require "http/client"