Skip to content

Commit a70850f

Browse files
committed
docker: add 1meg tmpfs mount to docker containers
Problem: In the near future we would like to run tests in which the file system has run out of space. In docker, create a 1 meg tmpfs mount that can be used for this testing.
1 parent 0fcc41a commit a70850f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/docker/docker-run-checks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ else
205205
docker run --rm \
206206
--workdir=$WORKDIR \
207207
--volume=$TOP:$WORKDIR \
208+
--mount type=tmpfs,destination=/test/tmpfs-1m,tmpfs-size=1048576 \
208209
${PLATFORM} \
209210
$MOUNT_HOME_ARGS \
210211
-e PLATFORM \

src/test/docker/docker-run-systest.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ checks_group "Launching system instance container $NAME" \
116116
--volume=$TOP:$WORKDIR \
117117
--volume=/sys/fs/cgroup:/sys/fs/cgroup:ro \
118118
--tmpfs=/run \
119+
--mount=type=tmpfs,destination=/test/tmpfs-1m,tmpfs-size=1048576 \
119120
--cap-add SYS_PTRACE \
120121
--name=flux-system-test-$$ \
121122
--network=host \

0 commit comments

Comments
 (0)