File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
services :
2
2
postgres :
3
3
container_name : gotest_pg
4
+ build :
5
+ context : ./init-db
4
6
image : postgres:16.2-bookworm
5
7
environment :
6
8
POSTGRES_USER : postgres
Original file line number Diff line number Diff line change
1
+ FROM curlimages/curl:7.85.0 as fetch-eql
2
+ WORKDIR /out
3
+ RUN curl -sLo /out/cipherstash-encrypt.sql https://github.com/cipherstash/encrypt-query-language/releases/download/eql-0.4.0/cipherstash-encrypt.sql
4
+
5
+ FROM postgres:16 as db
6
+ WORKDIR /app
7
+ COPY init.sh /docker-entrypoint-initdb.d
8
+ COPY create-db.sql /app/scripts/db/create-db.sql
9
+ COPY --from=fetch-eql /out/cipherstash-encrypt.sql /app/scripts/db/cipherstash-encrypt.sql
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ psql -U $POSTGRES_USER -d postgres -f /app/scripts/db/create-db.sql
4
+ psql -U $POSTGRES_USER -d gotest -a -f /app/scripts/db/cipherstash-encrypt.sql
You can’t perform that action at this time.
0 commit comments