Skip to content

Commit 035574b

Browse files
authored
Merge pull request #975 from tomyun/repodir
2 parents 8c4eaa7 + 81513b0 commit 035574b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

repo2docker/buildpacks/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
ARG REPO_DIR=${HOME}
114114
ENV REPO_DIR ${REPO_DIR}
115115
WORKDIR ${REPO_DIR}
116+
RUN chown ${NB_USER}:${NB_USER} ${REPO_DIR}
116117
117118
# We want to allow two things:
118119
# 1. If there's a .local/bin directory in the repo, things there

tests/conda/repo-path/verify

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ assert sys.executable.startswith("/srv/conda/"), sys.executable
1313
assert os.path.exists("/srv/repo/verify")
1414
assert os.path.abspath(__file__) == "/srv/repo/verify"
1515

16+
# Repo should be writable
17+
assert os.access("/srv/repo", os.W_OK)
18+
1619
# We should be able to import the package in environment.yml
1720
import numpy

0 commit comments

Comments
 (0)