Skip to content

Commit 75efeaa

Browse files
author
Nils Bars
committed
Bind-mount ref-utils source into web container via compose template
1 parent 3c69d39 commit 75efeaa

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker-compose.template.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ services:
9191
- {{ exercises_path }}:/exercises
9292
#Make docker availabe inside the container
9393
- /var/run/docker.sock:/var/run/docker.sock
94+
#Source for ref-utils, bind-mounted read-only into student
95+
#instances so edits on the host apply without rebuilding images.
96+
- type: bind
97+
source: ./ref-docker-base/ref-utils
98+
target: /ref-utils
99+
read_only: true
94100
{% if testing %}
95101
- coverage-data:/coverage-data:rw
96102
- ./coverage:/coverage-config:ro

0 commit comments

Comments
 (0)