Skip to content

Commit aa718e7

Browse files
authored
chore: bring docker-compose to root level (ietf-tools#3642) (ietf-tools#3643)
Authored-by: Nicolas Giard <github@ngpixel.com>
1 parent 86a3895 commit aa718e7

File tree

7 files changed

+11
-5
lines changed

7 files changed

+11
-5
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/python-3
33
{
44
"name": "IETF Datatracker",
5-
"dockerComposeFile": ["../docker/docker-compose.yml", "docker-compose.extend.yml"],
5+
"dockerComposeFile": ["../docker-compose.yml", "docker-compose.extend.yml"],
66
"service": "app",
77
"workspaceFolder": "/root/src",
88
"shutdownAction": "stopCompose",

.devcontainer/docker-compose.extend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
EDITOR_VSCODE: 1
77
DJANGO_SETTINGS_MODULE: settings_local_sqlitetest
88
volumes:
9-
- ..:/root/src
9+
- .:/root/src
1010
- /root/src/node_modules
1111
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
1212
network_mode: service:db
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '3.8'
33
services:
44
app:
55
build:
6-
context: ..
6+
context: .
77
dockerfile: docker/app.Dockerfile
88
args:
99
# Update 'VARIANT' to pick a version of Python: 3, 3.10, 3.9, 3.8, 3.7, 3.6

docker/cleanall

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

3+
cd ..
34
echo "Shutting down any instance still running and purge images..."
45
docker-compose down -v --rmi all
56
echo "Purging dangling images..."
67
docker image prune
8+
cd docker
79
echo "Done!"

docker/cleandb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/bin/bash
22

33
echo "Shutting down any instance still running..."
4+
cd ..
45
docker-compose down -v
56
echo "Rebuilding the DB image..."
67
docker-compose pull db
78
docker-compose build --no-cache db
9+
cd docker
810
echo "Done!"

docker/docker-compose.extend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
ports:
66
- '8000:8000'
77
volumes:
8-
- ..:/root/src
8+
- .:/root/src
99
- /root/src/node_modules
1010
db:
1111
ports:

docker/run

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3-
docker-compose -f docker-compose.yml -f docker-compose.extend.yml up -d
3+
cd ..
4+
docker-compose -f docker-compose.yml -f docker/docker-compose.extend.yml up -d
45
docker-compose exec app /bin/sh /docker-init.sh
56
docker-compose down
7+
cd docker

0 commit comments

Comments
 (0)