Skip to content

Commit 6b467e7

Browse files
committed
replace bind mount with volume to lower memory use
1 parent 17caf08 commit 6b467e7

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

docker/prod/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,6 @@ EXPOSE 80
6666
USER root
6767
COPY docker/prod/root /
6868

69+
VOLUME [ "/var/lib/docker" ]
70+
6971
ENTRYPOINT ["/init"]

tests/conftest.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ def container(client: docker.DockerClient) -> Generator[Container, None, None]:
4848
lib_path: {"bind": "/var/jenkins_home/pipeline-library", "mode": "rw"},
4949
}
5050

51-
# Check to see if we are in the VSCODE dev container
52-
if "REMOTE_CONTAINERS" in os.environ:
53-
54-
# In the devcontainer we are safe to mount the docker image cache
55-
# to speed up the testing of jobs.
56-
volumes["/tmp/docker_cache"] = {
57-
"bind": "/var/lib/docker",
58-
"mode": "rw",
59-
}
60-
6151
container = client.containers.run(
6252
image.id, tty=True, detach=True, volumes=volumes, privileged=True
6353
)

0 commit comments

Comments
 (0)