Merge pull request #975 from tomyun/repodir

pull/977/head
Tim Head 2020-10-20 15:18:47 +02:00 zatwierdzone przez GitHub
commit 035574be55
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -113,6 +113,7 @@ COPY --chown={{ user }}:{{ user }} {{ src }} {{ dst }}
ARG REPO_DIR=${HOME}
ENV REPO_DIR ${REPO_DIR}
WORKDIR ${REPO_DIR}
RUN chown ${NB_USER}:${NB_USER} ${REPO_DIR}
# We want to allow two things:
# 1. If there's a .local/bin directory in the repo, things there

Wyświetl plik

@ -13,5 +13,8 @@ assert sys.executable.startswith("/srv/conda/"), sys.executable
assert os.path.exists("/srv/repo/verify")
assert os.path.abspath(__file__) == "/srv/repo/verify"
# Repo should be writable
assert os.access("/srv/repo", os.W_OK)
# We should be able to import the package in environment.yml
import numpy