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

merging 5915/5935/5936/5937/5938/5939/5940/5941/5942/5944/5945/5948/5951/5952/5953 to prod #5950

Merged
merged 48 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
adf5ed5
Set up ESPM157 for FA 24
balajialg Aug 8, 2024
8f3aac6
Reverting to latest version of code-server
balajialg Aug 8, 2024
4df98e5
revert to the latest nodejs version
balajialg Aug 8, 2024
84e0925
Adding comments
balajialg Aug 8, 2024
6cc6912
Fixing the docker syntax error
balajialg Aug 8, 2024
eeb7b66
Added ESPM specific config in the dockerfile
balajialg Aug 10, 2024
f54548b
adding the extra line in env.yml
balajialg Aug 10, 2024
88d9278
Create en/latest symlink.
ryanlovett Aug 11, 2024
15b08e6
Merge pull request #5935 from ryanlovett/docs-en-latest
ryanlovett Aug 11, 2024
dd53551
Fix indentation.
ryanlovett Aug 11, 2024
9539a2e
Merge pull request #5936 from ryanlovett/docs-uses
ryanlovett Aug 11, 2024
a27634b
Update information about documentation.
ryanlovett Aug 11, 2024
de7f412
Merge pull request #5937 from ryanlovett/docs-structure-docs
ryanlovett Aug 11, 2024
f8f4dcd
Revert to previous action.
ryanlovett Aug 11, 2024
d1b7e16
Use quarto link format.
ryanlovett Aug 11, 2024
e85c3d8
Use quarto link format.
ryanlovett Aug 11, 2024
5713f78
Create an alias for new-hub.
ryanlovett Aug 11, 2024
797f79d
Merge pull request #5938 from ryanlovett/docs-links
ryanlovett Aug 11, 2024
8a24f82
Fix admins link.
ryanlovett Aug 11, 2024
7fcafaa
Merge pull request #5939 from ryanlovett/docs-admin
ryanlovett Aug 11, 2024
66caae3
Fix info in authentication.
ryanlovett Aug 11, 2024
2bf0a31
Use listing for hubs.
ryanlovett Aug 11, 2024
cb6e7bf
Merge pull request #5940 from ryanlovett/docs-misc
ryanlovett Aug 11, 2024
72fe016
Fix broken link.
ryanlovett Aug 11, 2024
90920dc
Fix aliases.
ryanlovett Aug 11, 2024
351e410
Merge pull request #5941 from ryanlovett/docs-fix-links
ryanlovett Aug 11, 2024
9f49e2d
Add categories.
ryanlovett Aug 11, 2024
b9475ca
Update Shiny description.
ryanlovett Aug 11, 2024
f1d4b25
Merge pull request #5942 from ryanlovett/docs-categories
ryanlovett Aug 11, 2024
505fa37
commenting out some old package requests
shaneknapp Aug 12, 2024
ccff69c
Merge pull request #5944 from shaneknapp/clean-up-datahub-image
shaneknapp Aug 12, 2024
f8a50ed
updating rocker/geospatial to latest
shaneknapp Aug 12, 2024
d86412a
Remove path stanza which is not required
balajialg Aug 12, 2024
d8d36a5
datahub R and Rstudio upgrayyyyed
shaneknapp Aug 12, 2024
befb29f
Update the doc on documentation.
ryanlovett Aug 12, 2024
2e3ce42
Use nicer theme. Add in-page navigation.
ryanlovett Aug 12, 2024
18ed7e9
Merge pull request #5948 from ryanlovett/docs-overview
ryanlovett Aug 12, 2024
b45986a
dev hub
shaneknapp Aug 12, 2024
84c8138
port bio to jammy, upgrade r, rstudio and littler
shaneknapp Aug 12, 2024
0e87c49
bump shiny server for shiny hub
shaneknapp Aug 12, 2024
7337e4a
Merge pull request #5945 from shaneknapp/upgrade-r
shaneknapp Aug 12, 2024
1cd5d11
Merge pull request #5915 from balajialg/espm157_ver2
shaneknapp Aug 12, 2024
e48665f
Set up Datahub for MBA 247
balajialg Aug 13, 2024
33d1339
bumping labeler to v5
shaneknapp Aug 13, 2024
a9b1199
Merge pull request #5951 from shaneknapp/update-github-labeler
shaneknapp Aug 13, 2024
b3c24f0
debumping labeler for now
shaneknapp Aug 13, 2024
ad8467f
Merge pull request #5953 from shaneknapp/revert-labeler-for-now
shaneknapp Aug 13, 2024
f94b50e
Merge pull request #5952 from balajialg/mba247_fa24
balajialg Aug 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 38 additions & 50 deletions deployments/biology/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM buildpack-deps:focal-scm
FROM buildpack-deps:jammy-scm

ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand Down Expand Up @@ -29,22 +29,11 @@ RUN apt-get update -qq --yes > /dev/null && \
apt-get install --yes -qq \
libpython2.7 > /dev/null

## libraries required for mothur
## libreadline6 required
#RUN apt-get update -qq --yes > /dev/null && \
# apt-get install --yes -qq \
# libreadline6-dev > /dev/null

## library required for fast-PCA & https://github.com/DReichLab/EIG
RUN apt-get update -qq --yes && \
apt-get install --yes --no-install-recommends -qq \
libgsl-dev >/dev/null

## library required for running ccb293 package qiime
#RUN apt-get update -qq --yes > /dev/null && \
# apt-get install --yes -qq \
# tzdata > /dev/null

# Install these without 'recommended' packages to keep image smaller.
# Useful utils that folks sort of take for granted
RUN apt-get update -qq --yes && \
Expand All @@ -64,25 +53,48 @@ RUN apt-get update -qq --yes && \
RUN echo "${LC_ALL} UTF-8" > /etc/locale.gen && \
locale-gen

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/" > /etc/apt/sources.list.d/cran.list
# Needed by RStudio
RUN apt-get update -qq --yes && \
apt-get install --yes --no-install-recommends -qq \
psmisc \
sudo \
libapparmor1 \
lsb-release \
libclang-dev \
libpq5 > /dev/null

# Needed by many R libraries
# Picked up from https://github.com/rocker-org/rocker/blob/9dc3e458d4e92a8f41ccd75687cd7e316e657cc0/r-rspm/focal/Dockerfile
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgdal-dev \
libgeos3.10.2 \
libproj22 \
libudunits2-0 \
libxml2 > /dev/null

# Install R packages
# Our pre-built R packages from rspm are built against system libs in focal
# rstan takes forever to compile from source, and needs libnodejs
# So we install older (10.x) nodejs from apt rather than newer from conda
ENV R_VERSION=4.1.2-1.2004.0
# Install R.
# These packages must be installed into the base stage since they are in system
# paths rather than /srv.
# Pre-built R packages from rspm are built against system libs in jammy.
ENV R_VERSION=4.4.1-1.2204.0
ENV LITTLER_VERSION=0.3.19-1.2204.0
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/" > /etc/apt/sources.list.d/cran.list
RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" > /etc/apt/sources.list.d/cran.list
RUN curl --silent --location --fail https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc > /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
RUN apt-get update -qq --yes > /dev/null && \
apt-get install --yes -qq \
r-base-core=${R_VERSION} \
r-base-dev=${R_VERSION} \
r-cran-littler=0.3.14-1.2004.0 \
libglpk-dev \
libzmq5 \
nodejs npm > /dev/null
r-base-core=${R_VERSION} \
r-base-dev=${R_VERSION} \
littler=${LITTLER_VERSION} \
libglpk-dev \
libzmq5 \
nodejs npm > /dev/null

ENV RSTUDIO_URL=https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2024.04.2-764-amd64.deb
RUN curl --silent --location --fail ${RSTUDIO_URL} > /tmp/rstudio.deb && \
apt install --no-install-recommends --yes /tmp/rstudio.deb && \
rm /tmp/rstudio.deb

# Install desktop packages
RUN apt-get update -qq --yes > /dev/null && \
Expand Down Expand Up @@ -123,30 +135,6 @@ RUN apt-get update -qq --yes > /dev/null && \

WORKDIR /home/jovyan

# Needed by RStudio
RUN apt-get update -qq --yes && \
apt-get install --yes --no-install-recommends -qq \
psmisc \
sudo \
libapparmor1 \
lsb-release \
libclang-dev \
libpq5 > /dev/null

ENV RSTUDIO_URL https://download2.rstudio.org/server/bionic/amd64/rstudio-server-2021.09.1-372-amd64.deb
RUN curl --silent --location --fail ${RSTUDIO_URL} > /tmp/rstudio.deb && \
dpkg -i /tmp/rstudio.deb && \
rm /tmp/rstudio.deb

# Needed by many R libraries
# Picked up from https://github.com/rocker-org/rocker/blob/9dc3e458d4e92a8f41ccd75687cd7e316e657cc0/r-rspm/focal/Dockerfile
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgdal26 \
libgeos-3.8.0 \
libproj15 \
libudunits2-0 \
libxml2 > /dev/null
# R_LIBS_USER is set by default in /etc/R/Renviron, which RStudio loads.
# We uncomment the default, and set what we wanna - so it picks up
# the packages we install. Without this, RStudio doesn't see the packages
Expand Down
4 changes: 2 additions & 2 deletions deployments/biology/image/Rprofile.site
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Use RStudio's CRAN mirror to get binary packages
# 'latest' just means it has all available versions.
# We can specify version numbers in devtools::install_version
options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/focal/latest"))
options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/jammy/latest"))

# RStudio's CRAN mirror needs this to figure out which binary package to serve.
# If not set properly, it will just serve up source packages
# Quite hilarious, IMO.
# See https://docs.rstudio.com/rspm/admin/binaries.html
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))
2 changes: 1 addition & 1 deletion deployments/biology/image/rsession.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Use binary packages!
r-cran-repos=https://packagemanager.rstudio.com/all/__linux__/focal/latest
r-cran-repos=https://packagemanager.rstudio.com/all/__linux__/jammy/latest
18 changes: 18 additions & 0 deletions deployments/datahub/config/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ jupyterhub:
- course::1535811::enrollment_type::teacher
- course::1535811::enrollment_type::ta

# MBA 247, Fall 2024, https://github.com/berkeley-dsep-infra/datahub/issues/5923
course-staff-1536576:
# description: Enable course staff to view and access servers.
# # this role provides permissions to...
scopes:
- admin-ui
- list:users!group=course::1536576
- admin:servers!group=course::1536576
- access:servers!group=course::1536576
# # this role will be assigned to...
groups:
- course::1536576::enrollment_type::teacher
- course::1536576::enrollment_type::ta

nodeSelector:
hub.jupyter.org/pool-name: core-pool-2024-05-08
initContainers:
Expand Down Expand Up @@ -200,3 +214,7 @@ jupyterhub:
course::1535590: # Data 6, https://github.com/berkeley-dsep-infra/datahub/issues/5847
mem_limit: 2048M
mem_guarantee: 2048M

course::1537045: # ESPM 157, https://github.com/berkeley-dsep-infra/datahub/issues/5914
mem_limit: 4096M
mem_guarantee: 4096M
21 changes: 17 additions & 4 deletions deployments/datahub/images/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ RUN install -d -o ${NB_USER} -g ${NB_USER} ${R_LIBS_USER}
# These packages must be installed into the base stage since they are in system
# paths rather than /srv.
# Pre-built R packages from rspm are built against system libs in jammy.
ENV R_VERSION=4.3.2-1.2204.0
ENV LITTLER_VERSION=0.3.18-2.2204.0
#ENV R_VERSION=4.3.2-1.2204.0
#ENV LITTLER_VERSION=0.3.18-2.2204.0
ENV R_VERSION=4.4.1-1.2204.0
ENV LITTLER_VERSION=0.3.19-1.2204.0
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" > /etc/apt/sources.list.d/cran.list
RUN curl --silent --location --fail https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc > /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
RUN apt-get update --yes > /dev/null && \
apt-get install --yes -qq r-base-core=${R_VERSION} r-base-dev=${R_VERSION} littler=${LITTLER_VERSION} > /dev/null

#ENV RSTUDIO_URL https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2023.06.0-421-amd64.deb
ENV RSTUDIO_URL https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2023.12.0-369-amd64.deb
ENV RSTUDIO_URL=https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2024.04.2-764-amd64.deb
RUN curl --silent --location --fail ${RSTUDIO_URL} > /tmp/rstudio.deb && \
apt install --no-install-recommends --yes /tmp/rstudio.deb && \
rm /tmp/rstudio.deb
Expand Down Expand Up @@ -188,6 +189,18 @@ RUN /usr/local/sbin/connector-text.bash
#COPY connectors/2021-fall-phys-188-288.bash /usr/local/sbin/
#RUN /usr/local/sbin/2021-fall-phys-188-288.bash

#ESPM, FA 24
# https://github.com/berkeley-dsep-infra/datahub/issues/5827
ENV VSCODE_EXTENSIONS=${CONDA_DIR}/share/code-server/extensions
USER root
RUN mkdir -p ${VSCODE_EXTENSIONS} && \
chown -R jovyan:jovyan ${VSCODE_EXTENSIONS}
USER ${NB_USER}
# Install Code Server Jupyter extension
RUN /srv/conda/bin/code-server --extensions-dir ${VSCODE_EXTENSIONS} --install-extension ms-toolsai.jupyter
# Install Code Server Python extension
RUN /srv/conda/bin/code-server --extensions-dir ${VSCODE_EXTENSIONS} --install-extension ms-python.python

# clear out /tmp
USER root
RUN rm -rf /tmp/*
Expand Down
3 changes: 1 addition & 2 deletions deployments/datahub/images/default/Rprofile.site
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/__linux__/jammy
# below sets it to be binary. This may improve image build times.
# If it works, it'd be better to dynamically set the R version as above, and
# also the RStudio Server version if possible.
options(HTTPUserAgent = "RStudio Server (2023.12.0.369); R (4.3.2 x86_64-pc-linux-gnu x86_64 linux-gnu)")

options(HTTPUserAgent = "RStudio Server (2024.04.2.764); R (4.4.1 x86_64-pc-linux-gnu x86_64 linux-gnu)")

## Source extra Rprofile files.
#
Expand Down
28 changes: 16 additions & 12 deletions deployments/datahub/images/default/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ dependencies:
- music21==8.3.0

# data8; foundation
- datascience==0.17.6
#- datascience==0.17.6
- jupyter-server-proxy==4.2.0
- jupyter-rsession-proxy==2.2.0
- folium==0.12.1.post1

# cogsci131; spring 2018
- nose==1.3.7
#- nose==1.3.7

# modules
- beautifulsoup4==4.9.3
Expand Down Expand Up @@ -145,38 +145,41 @@ dependencies:
# - theano-pymc==1.1.2
# - pymc3==3.11.2

# eep 153; spring 2019
- requests==2.31.0
- Pint==0.17

# Google spreadsheets, Eric Van Dusen / Keeley Takimoto / Modules
- gspread-pandas==2.3.0
- gspread==4.0.1

# eps 109; fall 2019
# sknapp 2024-08-12: keeping this package as i believe it's still useful
- ffmpeg-python==0.2.0

# issue #875, global 150Q/pacs 190 - fall 2019
# sknapp 2024-08-12: keeping this package as i believe it's still useful
- wordcloud==1.9.3

# issue #929, SW 282 - fall 2019
# sknapp 2024-08-12: keeping this package as i believe it's still useful
- pyreadstat==1.2.7

# issue 954, EPS24 - fall 2019
# sknapp 2024-08-12: keeping this package as i believe it's still useful
- xarray==0.19.0

# issue 1001, Physics 188/288 - fall 2019
- umap-learn==0.5.1
- hdbscan==0.8.31
#- umap-learn==0.5.1
#- hdbscan==0.8.31

# espm 125/bio 105; fall 2019
# see https://github.com/berkeley-dsep-infra/datahub/issues/1796
- bitarray==2.3.0
- nlmpy==1.0.1
#- bitarray==2.3.0
#- nlmpy==1.0.1

# physics 188/288 fall, 2019
- getdist==1.3.1
- tensorflow-hub==0.12.0
- tensorflow-probability==0.13.0
#- getdist==1.3.1
#- tensorflow-hub==0.12.0
#- tensorflow-probability==0.13.0

# cs16A/B, spring 2020
- lcapy==0.96
Expand Down Expand Up @@ -228,6 +231,7 @@ dependencies:
- rtree==1.2.0

# [DH-319] https://github.com/berkeley-dsep-infra/datahub/issues/5827, ESPM 157
- ibis-framework[pandas]==9.2.0
- ibis-framework[pandas,duckdb]==9.2.0
- jupyterlab_myst==2.4.2

# ATTEMPT TO PUT NEW PACKAGES IN THE CONDA LIST ABOVE FIRST, RATHER THAN PIP
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class_libs = c(
"pROC", "1.18.4",
"rpart.plot", "3.1.1",
"randomForest","4.7-1.1",
"xgboost","1.7.5.1"
"xgboost","1.7.5.1",
"factoextra","1.0.7"
)
class_libs_install_version(class_name, class_libs)
6 changes: 3 additions & 3 deletions deployments/dev/images/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ RUN apt-get -qq update --yes && \
# These packages must be installed into the base stage since they are in system
# paths rather than /srv.
# Pre-built R packages from rspm are built against system libs in jammy.
ENV R_VERSION=4.3.2-1.2204.0
ENV LITTLER_VERSION=0.3.18-2.2204.0
ENV R_VERSION=4.4.1-1.2204.0
ENV LITTLER_VERSION=0.3.19-1.2204.0
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" > /etc/apt/sources.list.d/cran.list
RUN curl --silent --location --fail https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc > /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
Expand All @@ -45,7 +45,7 @@ RUN apt-get update -qq --yes > /dev/null && \
r-base-dev=${R_VERSION} \
littler=${LITTLER_VERSION} > /dev/null

ENV RSTUDIO_URL https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2023.06.0-421-amd64.deb
ENV RSTUDIO_URL=https://download2.rstudio.org/server/jammy/amd64/rstudio-server-2024.04.2-764-amd64.deb
RUN curl --silent --location --fail ${RSTUDIO_URL} > /tmp/rstudio.deb && \
apt install --no-install-recommends --yes /tmp/rstudio.deb && \
rm /tmp/rstudio.deb
Expand Down
2 changes: 1 addition & 1 deletion deployments/dev/images/default/Rprofile.site
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ options(
options(
HTTPUserAgent = sprintf(
"RStudio Server (%s); R (%s)",
"2022.7.1.554",
"2024.04.2.764",
paste(getRversion(), R.version$platform, R.version$arch, R.version$os)
)
)
2 changes: 1 addition & 1 deletion deployments/ischool/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rocker/geospatial:4.3.1
FROM rocker/geospatial:4.4.1

ENV NB_USER rstudio
ENV NB_UID 1000
Expand Down
2 changes: 1 addition & 1 deletion deployments/publichealth/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/rocker-org/geospatial:4.3.2
FROM ghcr.io/rocker-org/geospatial:4.4.1

ENV NB_USER rstudio
ENV NB_UID 1000
Expand Down
4 changes: 2 additions & 2 deletions deployments/shiny/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rocker/geospatial:4.3.2
FROM rocker/geospatial:4.4.1

ENV NB_USER rstudio
ENV NB_UID 1000
Expand Down Expand Up @@ -55,7 +55,7 @@ RUN apt-get update > /dev/null && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

ENV SHINY_SERVER_URL https://download3.rstudio.org/ubuntu-18.04/x86_64/shiny-server-1.5.21.1012-amd64.deb
ENV SHINY_SERVER_URL https://download3.rstudio.org/ubuntu-18.04/x86_64/shiny-server-1.5.22.1017-amd64.deb
RUN curl --silent --location --fail ${SHINY_SERVER_URL} > /tmp/shiny-server.deb && \
apt install --no-install-recommends --yes /tmp/shiny-server.deb && \
rm /tmp/shiny-server.deb
Expand Down
2 changes: 1 addition & 1 deletion deployments/stat20/image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rocker/geospatial:4.3.2
FROM rocker/geospatial:4.4.1
# https://github.com/rocker-org/rocker-versioned2/wiki/geospatial_e06f866673fa

ENV NB_USER rstudio
Expand Down
Loading
Loading