mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-11 12:02:56 +00:00
removing rsync dependency, using cp -R instead, reducing wait time in test
This commit is contained in:
@@ -42,7 +42,6 @@ RUN apt-get update --yes && \
|
||||
wget \
|
||||
ca-certificates \
|
||||
sudo \
|
||||
rsync \
|
||||
locales \
|
||||
fonts-liberation \
|
||||
run-one && \
|
||||
|
@@ -55,7 +55,7 @@ if [ "$(id -u)" == 0 ] ; then
|
||||
if [[ ! -e "/home/${NB_USER}" ]]; then
|
||||
echo "Relocating home dir to /home/${NB_USER}"
|
||||
mkdir "/home/${NB_USER}"
|
||||
rsync -avx /home/jovyan "/home/${NB_USER}" || ln -s /home/jovyan "/home/${NB_USER}"
|
||||
cp -R /home/jovyan "/home/${NB_USER}" || ln -s /home/jovyan "/home/${NB_USER}"
|
||||
fi
|
||||
# if workdir is in /home/jovyan, cd to /home/${NB_USER}
|
||||
if [[ "${PWD}/" == "/home/jovyan/"* ]]; then
|
||||
|
@@ -209,8 +209,6 @@ def test_container_not_delete_bind_mount(container, tmp_path):
|
||||
volumes={d: {"bind": "/home/jovyan/data", "mode": "rw"}},
|
||||
command=["start.sh", "jupyter", "lab"],
|
||||
)
|
||||
|
||||
time.sleep(10)
|
||||
|
||||
time.sleep(2)
|
||||
assert p.read_text() == "some-content"
|
||||
assert len(list(tmp_path.iterdir())) == 1
|
||||
|
Reference in New Issue
Block a user