Skip to content

Commit 52ef103

Browse files
authored
chore: allow mounting db dir with docker (#1224)
1 parent 84994fb commit 52ef103

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ COPY ./docker/aeternity.yaml /home/aeternity/aeternity.yaml
128128
COPY ./docker/healthcheck.sh /home/aeternity/healthcheck.sh
129129
RUN chmod +x /home/aeternity/healthcheck.sh
130130

131-
RUN mkdir -p ./local/rel/aeternity/data/mnesia
131+
# Create data directories in advance so that volumes can be mounted in there
132+
# see https://github.com/moby/moby/issues/2259 for more about this nasty hack
133+
RUN mkdir -p ./local/rel/aeternity/data/mnesia \
134+
&& mkdir -p ./local/rel/aeternity/data/mdw.db
132135

133136
RUN chown -R nobody /home/aeternity/node
134137

0 commit comments

Comments
 (0)