From 535c837dd377439eeb4ed3efea5dc2009dae870b Mon Sep 17 00:00:00 2001 From: Justin Date: Sat, 20 Jun 2026 09:48:58 -0400 Subject: [PATCH] moved project local resources to an example --- Dockerfile => example/Dockerfile | 0 docker-compose.yml => example/docker-compose.yml | 0 entrypoint.sh.example => example/entrypoint.sh.example | 7 ++++++- safeclaude => example/safeclaude | 0 4 files changed, 6 insertions(+), 1 deletion(-) rename Dockerfile => example/Dockerfile (100%) rename docker-compose.yml => example/docker-compose.yml (100%) rename entrypoint.sh.example => example/entrypoint.sh.example (84%) rename safeclaude => example/safeclaude (100%) diff --git a/Dockerfile b/example/Dockerfile similarity index 100% rename from Dockerfile rename to example/Dockerfile diff --git a/docker-compose.yml b/example/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to example/docker-compose.yml diff --git a/entrypoint.sh.example b/example/entrypoint.sh.example similarity index 84% rename from entrypoint.sh.example rename to example/entrypoint.sh.example index f29fc3e..a80704d 100644 --- a/entrypoint.sh.example +++ b/example/entrypoint.sh.example @@ -47,7 +47,12 @@ fi if [ -f "/code/Gemfile" ]; then echo "Gemfile found — running bundle install..." pushd /code - BUNDLE_GEMS__GRAPHQL__PRO="gql_2e0_d66f5103067:70c113ba329" bundle install + # TODO: Elaborate or expand — wire secrets (e.g. a private gem registry token) + # in from the environment instead of hardcoding. Compose's auto-loaded .env only + # does YAML interpolation (next to the compose file), not container injection; + # injecting needs `environment:`/`env_file:`. In the project-local model, point + # this at the mounted project's .safeclaude/.env so secrets live with the project. + BUNDLE_GEMS__GRAPHQL__PRO="${BUNDLE_GEMS__GRAPHQL__PRO:-}" bundle install popd fi diff --git a/safeclaude b/example/safeclaude similarity index 100% rename from safeclaude rename to example/safeclaude