mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +00:00
[TMP] Add test to check if image is freshly built
This commit is contained in:
@@ -103,6 +103,7 @@ RUN mkdir "/home/${NB_USER}/work" && \
|
||||
# Do all this in a single RUN command to avoid duplicating all of the
|
||||
# files across image layers when the permissions change
|
||||
COPY --chown="${NB_UID}:${NB_GID}" initial-condarc "${CONDA_DIR}/.condarc"
|
||||
COPY --chown="${NB_UID}:${NB_GID}" test-file.txt /tmp/test-file.txt
|
||||
WORKDIR /tmp
|
||||
RUN set -x && \
|
||||
arch=$(uname -m) && \
|
||||
|
1
base-notebook/test-file.txt
Normal file
1
base-notebook/test-file.txt
Normal file
@@ -0,0 +1 @@
|
||||
test-content
|
8
tests/base-notebook/units/unit_check_file.py
Normal file
8
tests/base-notebook/units/unit_check_file.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
file = Path("/tmp/test-file.txt")
|
||||
assert file.exists()
|
||||
assert file.read_text() == "test-content\n"
|
Reference in New Issue
Block a user