File tree Expand file tree Collapse file tree 3 files changed +16
-6
lines changed
Expand file tree Collapse file tree 3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 1+ FROM postgres:latest
2+
3+ # Copy the custom entrypoint script and SQL files
4+ COPY postgres-entrypoint.sh /usr/local/bin/postgres-entrypoint.sh
5+ COPY cipherstash-encrypt-2-1-8.sql /tmp/cipherstash-encrypt-2-1-8.sql
6+ COPY create-ci-table.sql /tmp/create-ci-table.sql
7+
8+ # Make the entrypoint script executable
9+ RUN chmod +x /usr/local/bin/postgres-entrypoint.sh
10+
11+ # Use the custom entrypoint
12+ ENTRYPOINT ["/usr/local/bin/postgres-entrypoint.sh" ]
13+
Original file line number Diff line number Diff line change 11services :
22 postgres : &postgres
3- image : postgres:latest
3+ build :
4+ context : .
5+ dockerfile : Dockerfile
46 environment :
57 PGPORT : 5432
68 POSTGRES_DB : " cipherstash"
@@ -9,11 +11,6 @@ services:
911 POSTGRES_PASSWORD : password
1012 ports :
1113 - 5432:5432
12- volumes :
13- - ./cipherstash-encrypt-2-1-8.sql:/tmp/cipherstash-encrypt-2-1-8.sql
14- - ./postgres-entrypoint.sh:/usr/local/bin/postgres-entrypoint.sh
15- - ./create-ci-table.sql:/tmp/create-ci-table.sql
16- entrypoint : ["/usr/local/bin/postgres-entrypoint.sh"]
1714 deploy :
1815 resources :
1916 limits :
You can’t perform that action at this time.
0 commit comments