Skip to content

Commit 1767107

Browse files
committed
feat: predefined database test creation
1 parent cbd9b81 commit 1767107

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM postgres:16.6
22

3+
ENV DATABASE_NAME=test
34
COPY create-db.sh /docker-entrypoint-initdb.d/create-db.sh
45
RUN chmod +x /docker-entrypoint-initdb.d/create-db.sh
56

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,25 @@
1-
### postgres image
1+
### postgres image
2+
3+
### Start (custom)
4+
5+
```
6+
podman run -d \
7+
--name postgres16.6 \
8+
-e POSTGRES_USER=myuser \
9+
-e POSTGRES_PASSWORD=mypassword \
10+
-e POSTGRES_DB=mydatabase \
11+
-p 5432:5432 \
12+
postgres:16.6
13+
```
14+
15+
### Start (powershell)
16+
17+
```
18+
podman run `
19+
--name postgres `
20+
-e POSTGRES_USER=postgres `
21+
-e POSTGRES_PASSWORD=mypassword `
22+
-e POSTGRES_DB=mydatabase `
23+
-p 5432:5432 `
24+
test:latest
25+
```

0 commit comments

Comments
 (0)