Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research R, Python, Anaconda Update/Optimization #496

Closed
4 tasks
bryanpaget opened this issue Aug 2, 2023 · 5 comments
Closed
4 tasks

Research R, Python, Anaconda Update/Optimization #496

bryanpaget opened this issue Aug 2, 2023 · 5 comments
Assignees

Comments

@bryanpaget
Copy link
Contributor

bryanpaget commented Aug 2, 2023

The following issues StatCan/aaw#1784, #485 and #492 revealed a fundamental problem with the way Anaconda is installed in our images. We need to rethink the Anaconda installation.

Possible course of action:

  • find any and all settings for Anaconda and set them to the version we want.
  • find and move any and all Anaconda related installation and configuration steps to an Anaconda docker-bit shared by all images (Anaconda is currently being installed in both ∞_CMD.Dockerfile and ∞_CMD_remote-desktop.Dockerfile).
  • I don't think we need to install rstudio-server. At least on the remote-desktop image we already have rstudio-server installed from the base image. See: Research R, Python, Anaconda Update/Optimization #496 (comment)
  • Some images should be upgraded to "2023-08-07".

Image

@bryanpaget bryanpaget changed the title Create a new docker-bit for Anaconda since it's currently being installed in both ∞_CMD.Dockerfile and ∞_CMD_remote-desktop.Dockerfile. Overhall Anaconda Installation Aug 9, 2023
@bryanpaget bryanpaget self-assigned this Aug 9, 2023
@bryanpaget
Copy link
Contributor Author

Notes for Future Work:

  • We have the tag for jupyter/datascience-notebook specific three times in the docker-bits. Next sprint let's refactor some more to have it listed only once. The files are: 0_cpu, 0_cpu_sas and the Makefile.

@bryanpaget
Copy link
Contributor Author

This has proven to be quite difficult. Earlier in the sprint I tried refactoring the docker-bits files, with the goal of separating and isolating the Anaconda installation to its own Anaconda.dockerfile. This has not worked out.

Not working:

Latest attempt:

@bryanpaget
Copy link
Contributor Author

Blocked by #502

@bryanpaget bryanpaget linked a pull request Aug 22, 2023 that will close this issue
@bryanpaget bryanpaget changed the title Overhall Anaconda Installation Research Anaconda Update Aug 22, 2023
@bryanpaget
Copy link
Contributor Author

bryanpaget commented Aug 23, 2023

I don't think we need to install rstudio-server:

I made the following update recently to the rstudio-server version

image

but discovered the new version was not being used when I opened up rstudio-desktop

image

as you can see the rstudio-server version is stuck at 2023.06.0-421. That version comes from

image

which pins rstudio-server at 2023.06.0-421

image

We may be able to remove the rstudio-server installation step, saving time on builds. The following steps could be omitted from docker-bits/6_rstudio.Dockerfile

# install rstudio-server
ARG RSTUDIO_VERSION=2023.06.1-524
ARG SHA256=208897f00b580b45c37dbb787dc482ff6d774b32c230f49578691b1a11f40c37
RUN apt-get update && \
    apt install -y --no-install-recommends software-properties-common dirmngr gdebi-core && \
    wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc && \
    add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" && \
    apt install -y --no-install-recommends r-base r-base-core r-recommended r-base-dev && \
    apt-get update && apt-get -y dist-upgrade

@bryanpaget bryanpaget changed the title Research Anaconda Update Research R, Python, Anaconda Update/Optimization Aug 23, 2023
@bryanpaget
Copy link
Contributor Author

We had a discussion during the August 31 2023 tech elab, which resulted in the following EPIC: #1822.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant