Skip to content

Commit

Permalink
Merge pull request #759 from bloodearnest/default-to-bindmount-in-docker
Browse files Browse the repository at this point in the history
Default to BindMountVolumeAPI in docker image
  • Loading branch information
bloodearnest authored Oct 16, 2024
2 parents 04847b8 + e9a8d65 commit d6aa301
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ RUN --mount=type=cache,target=/var/cache/apt \
# Install everything in venv for isolation from system python libraries
RUN python3 -m venv /opt/venv
ENV VIRTUAL_ENV=/opt/venv/ PATH="/opt/venv/bin:$PATH"
# jobrunner only works with bindmounts, not docker volumes
ENV LOCAL_VOLUME_API="jobrunner.executors.volumes:BindMountVolumeAPI"

# The cache mount means a) /root/.cache is not in the image, and b) it's preserved
# between docker builds locally, for faster dev rebuild.
Expand Down

0 comments on commit d6aa301

Please sign in to comment.