guava009
09/09/2022, 8:07 PMIgor.Shmukler
09/11/2022, 1:04 AM/bin/sh
and i was wondering whether a version with a shell is also available. I think that it might be a good idea to include shell along with existing tools. overall, a small image is great. however, to do something like: ENTRYPOINT spicedb serve --grpc-preshared-key "${SECRET}"
we need /bin/sh
.
currently, this won't work and it makes passing environmental variables a pain. unless someone worked out another way to do this. i would be certainly interested to know to pass environmental variables to the dockerfile entrypoint without a shell.Jake
09/11/2022, 1:07 AMJake
09/11/2022, 1:07 AMSPICEDB_GRPC_PRESHARED_KEY
in this caseIgor.Shmukler
09/11/2022, 1:09 AMFROM authzed/spicedb:v1.12.0
ARG SPICEDB_GRPC_PRESHARED_KEY
ENV SPICEDB_GRPC_PRESHARED_KEY=${SPICEDB_GRPC_PRESHARED_KEY}
ENTRYPOINT ["spicedb", "serve", "--grpc-preshared-key", "--http-enabled"]
EXPOSE 8443/tcp 50051/tcp 8080/tcp 9090/tcp
ecordell
09/11/2022, 1:10 AMIgor.Shmukler
09/11/2022, 1:10 AMJake
09/11/2022, 1:10 AMIgor.Shmukler
09/11/2022, 1:10 AMJake
09/11/2022, 1:10 AMJake
09/11/2022, 1:11 AMdocker run -e SPICEDB_GRPC_PRESHARED_KEY="abc" authzed/spicedb:v1.12.0
Igor.Shmukler
09/11/2022, 1:11 AMFROM
and pass secrets including database config in build argumentsIgor.Shmukler
09/11/2022, 1:12 AMIgor.Shmukler
09/11/2022, 1:12 AMJake
09/11/2022, 1:12 AMIgor.Shmukler
09/11/2022, 1:12 AMIgor.Shmukler
09/11/2022, 1:12 AMIgor.Shmukler
09/11/2022, 1:13 AMIgor.Shmukler
09/11/2022, 1:13 AMJake
09/11/2022, 1:13 AMspicedb-grpc-preshared-key
command line argumentJake
09/11/2022, 1:14 AMIgor.Shmukler
09/11/2022, 1:14 AMVangelisP
09/12/2022, 9:12 AMJake
09/12/2022, 11:17 AMJake
09/12/2022, 11:17 AMVangelisP
09/12/2022, 11:20 AMIgor.Shmukler
09/12/2022, 2:35 PM50051
. Should not be too difficult within reason to add mappings for 8080 and 9090, as well. Happy to share my findings, if this might help someone, as a reference for their ECS clusters. In my experience, often, it is easier to throw containers on Fargate and not having to worry about managing a full K8s cluster.Jake
09/12/2022, 2:36 PMJake
09/12/2022, 2:36 PMIgor.Shmukler
09/12/2022, 2:37 PM