-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jaytmiller/port-to-github
Port back to GitHub
- Loading branch information
Showing
91 changed files
with
4,230 additions
and
6,621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
ARG ROOT_CONTAINER=ubuntu:jammy | ||
ARG BASE_CONTAINER=$ROOT_CONTAINER | ||
FROM $BASE_CONTAINER | ||
|
||
USER root | ||
|
||
ARG TZ='America/New_York' | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
ARG USE_FROZEN=1 | ||
ENV USE_FROZEN=$USE_FROZEN | ||
|
||
ARG PIP_SWITCHES="--no-cache-dir" | ||
ENV PIP_SWITCHES=$PIP_SWITCHES | ||
|
||
# Enable easy swap of conda with e.g. mamba | ||
ARG CONDA_VER=conda | ||
ENV CONDA_VER=${CONDA_VER} | ||
|
||
# Clearing caches at the end of each RUN saves image space | ||
# but seems to mess up dependency debug tools like pipdeptree. | ||
# NOT setting this is also a requirement of effective Docker | ||
# buildkit cache use. ATM jupyter/docker-stacks will still wipe | ||
# out caches created prior to the common base image regardless. | ||
ARG CLEAR_PKG_CACHES="1" | ||
ENV CLEAR_PKG_CACHES=${CLEAR_PKG_CACHES} | ||
|
||
# These are duplicated in jupyter/docker-stacks so need to be changed | ||
# in both locations. Better than hard coding in scripts though. | ||
ENV NB_UID=1000 | ||
ENV NB_GID=100 | ||
|
||
# ------------------------------------------------------------------------ | ||
|
||
COPY --chown=${NB_UID}:${NB_GID} common-scripts/apt-install /opt/common-scripts/apt-install | ||
RUN /opt/common-scripts/apt-install \ | ||
apt-utils \ | ||
tzdata \ | ||
ca-certificates \ | ||
openssl \ | ||
wget \ | ||
vim \ | ||
npm \ | ||
nodejs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export PS1="${debian_chroot:+($debian_chroot)}\u@notebook:\w\$ " | ||
|
||
# Enable conda | ||
. "/opt/conda/etc/profile.d/conda.sh" | ||
|
||
# Activate base by default | ||
conda activate base | ||
|
||
#export PATH="/opt/TurboVNC/bin:$PATH" | ||
|
||
# Utility scripts for users, mainly python environment management | ||
export PATH="/opt/tools:$PATH" | ||
|
||
export LD_LIBRARY_PATH=/usr/local/lib | ||
|
||
# make non-login shell (notebook !) use same environment, picking up default kernel | ||
export BASH_ENV=/etc/bash.bashrc | ||
|
||
alias ls="ls --color=auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# System-wide .bashrc file for non-login bash(1) shells. | ||
|
||
# if the command-not-found package is installed, use it | ||
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then | ||
function command_not_found_handle { | ||
# check because c-n-f could've been removed in the meantime | ||
if [ -x /usr/lib/command-not-found ]; then | ||
/usr/lib/command-not-found -- "$1" | ||
return $? | ||
elif [ -x /usr/share/command-not-found/command-not-found ]; then | ||
/usr/share/command-not-found/command-not-found -- "$1" | ||
return $? | ||
else | ||
printf "%s: command not found\n" "$1" >&2 | ||
return 127 | ||
fi | ||
} | ||
fi | ||
|
||
# Enable conda | ||
. "/opt/conda/etc/profile.d/conda.sh" | ||
|
||
# Activate base by default | ||
conda activate base | ||
|
||
#export PATH="/opt/TurboVNC/bin:$PATH" | ||
|
||
# Utility scripts for users, mainly python environment management | ||
export PATH="/opt/tools:$PATH" | ||
|
||
export LD_LIBRARY_PATH=/usr/local/lib | ||
|
||
alias ls="ls --color=auto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# packages required for the framework to work | ||
|
||
# needed to install a kernel | ||
ipykernel | ||
|
||
# needed to run headless notebook tests | ||
papermill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /bin/bash -e | ||
|
||
# This script conditionally initializes user $HOME, once. | ||
# To re-init you must rm ${HOME}/.sp-initialized | ||
|
||
if [ ! -f ${HOME}/.sp-initialized ]; then | ||
echo "Initializing $HOME with config defaults." | ||
#echo "Deleting initial config directories to remove user added files." | ||
#( cd /etc/default-home-contents/; find . -type d ) | xargs rm -rf || true | ||
echo "Copying initial config files." | ||
rsync -r /etc/default-home-contents/ ${HOME} | ||
cat > ${HOME}/.sp-initialized <<EOF | ||
Remove this file to re-initialize default configuration. The only | ||
configuration which will be affected can be seen in | ||
/etc/default-home-contents/, so you may need to remove custom | ||
configuration files yourself, if you've added any. Our policy is not | ||
to delete anything from your home directory. | ||
EOF | ||
else | ||
echo "Skipping default config init, $HOME already initialized." | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.