Skip to content

Commit cb96586

Browse files
committed
Add Docker tips to README.
1 parent 06e93f2 commit cb96586

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

cmudb/env/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
11
The `env` folder is for all files that relate to setting up a development or CI environment.
2+
3+
# Docker tips.
4+
5+
```
6+
# Build a Docker image named pgnp from our Dockerfile.
7+
docker build --tag pgnp --file ./cmudb/env/Dockerfile .
8+
9+
# Run the Docker image in the pgnp_instance container.
10+
docker run --detach --interactive --tty --name pgnp_instance pgnp
11+
12+
# Connect to the Docker container pgnp_instance.
13+
docker exec --interactive --tty pgnp_instance /bin/bash
14+
15+
# Shut down the container AND DELETE ALL THE DATA ON IT.
16+
docker container rm --force --volumes pgnp_instance
17+
```

0 commit comments

Comments
 (0)