Skip to content

Commit 0d67fc3

Browse files
authored
Merge pull request #236 from cipherstash/fix-deployment-1
fix: remove executable so Github actions can run
2 parents 4e7e2a4 + 8aa282c commit 0d67fc3

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

local/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+

local/docker-compose.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
services:
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:

local/postgres-entrypoint.sh

100755100644
File mode changed.

0 commit comments

Comments
 (0)