From f3970a5f4324fc1211fac9a747dd3f90f0e91aae Mon Sep 17 00:00:00 2001 From: Steven Maude Date: Thu, 9 May 2024 17:46:56 +0100 Subject: [PATCH] Test which image in use --- Dockerfile | 2 ++ tests/dev_container.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 38f67b3..9e1154f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,8 @@ COPY --chown=rstudio:rstudio --from=ghcr.io/opensafely-core/python:v2 /opt/venv # hadolint ignore=DL3022 COPY --chown=rstudio:rstudio --from=ghcr.io/opensafely-core/r:latest /renv/lib/R-4.0/x86_64-pc-linux-gnu/ /usr/local/lib/R/site-library +RUN cp /opt/venv/bin/python3.10 /home/rstudio/testthing + # Required for installing opensafely cli ENV PATH="/home/rstudio/.local/bin:${PATH}" diff --git a/tests/dev_container.sh b/tests/dev_container.sh index 6fe6971..e543e9a 100755 --- a/tests/dev_container.sh +++ b/tests/dev_container.sh @@ -21,3 +21,5 @@ curl -L http://localhost:8787 | grep "RStudio" # Check the RStudio server installation sudo rstudio-server stop sudo rstudio-server verify-installation + +ls -hla /home/rstudio