Skip to content

Commit 1f63187

Browse files
committed
copy example.env into .env post start ./bin/up
1 parent 118a7fc commit 1f63187

File tree

2 files changed

+31
-27
lines changed

2 files changed

+31
-27
lines changed

.devcontainer/devcontainer.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
2-
"name": "pgec",
2+
"name": "pgec",
33

4-
"dockerFile": "Dockerfile",
4+
"dockerFile": "Dockerfile",
55

6-
"postStartCommand": "docker compose up --detach --remove-orphans",
6+
"postStartCommand": "./bin/up",
77

8-
"containerEnv": {
9-
"PGMP_DATABASE_USER": "postgres",
10-
"PGMP_DATABASE_PASSWORD": "postgres"
11-
},
8+
"containerEnv": {
9+
"PGMP_DATABASE_USER": "postgres",
10+
"PGMP_DATABASE_PASSWORD": "postgres"
11+
},
1212

13-
"hostRequirements": {
14-
"cpus": 2,
15-
"memory": "4gb",
16-
"storage": "32gb"
17-
},
13+
"hostRequirements": {
14+
"cpus": 2,
15+
"memory": "4gb",
16+
"storage": "32gb"
17+
},
1818

19-
"customizations": {
20-
"codespaces": {
21-
"openFiles": ["example.py"]
22-
}
23-
},
19+
"customizations": {
20+
"codespaces": {
21+
"openFiles": ["example.py"]
22+
}
23+
},
2424

25-
"forwardPorts": [9092, 9100],
25+
"forwardPorts": [9092, 9100],
2626

27-
"portsAttributes": {
28-
"9092": { "label": "kafka" },
29-
"9100": { "label": "metrics" }
30-
},
27+
"portsAttributes": {
28+
"9092": { "label": "kafka" },
29+
"9100": { "label": "metrics" }
30+
},
3131

32-
"features": {
33-
"ghcr.io/devcontainers/features/sshd:1": {},
32+
"features": {
33+
"ghcr.io/devcontainers/features/sshd:1": {},
3434

35-
"ghcr.io/devcontainers/features/common-utils:2": {},
35+
"ghcr.io/devcontainers/features/common-utils:2": {},
3636

37-
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
38-
}
37+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
38+
}
3939
}

bin/up

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
cp example.env .env
4+
docker compose up --detach --remove-orphans

0 commit comments

Comments
 (0)