Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Feb 4, 2024
1 parent ff01ab4 commit 0cd68e4
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 54 deletions.
53 changes: 3 additions & 50 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,6 @@
{
"image": "ghcr.io/boettiger-lab/nasa-tops:latest",
"runArgs": [ "--security-opt", "seccomp=unconfined" ],
"name": "NASA TOPS Environment",
// build image as a github-action and grab instead; faster.
// "build": {
// "dockerfile": "Dockerfile"
//},
"waitFor": "onCreateCommand",
"features": {
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {},
// Install JupyterLab and IRkernel.
// More info: https://github.com/rocker-org/devcontainer-templates/tree/main/src/r-ver
"ghcr.io/rocker-org/devcontainer-features/r-rig:1": {
"version": "none",
"installJupyterlab": true
}
},
"customizations": {
"codespaces": {
"openFiles": ["README.md"]
},
"vscode": {
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
"[r]": {
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
}
},
"extensions": [
"reditorsupport.r",
"rdebugger.r-debugger",
"ms-toolsai.jupyter",
"ms-python.python"
]
}
},
// Forward the RStudio ports
"forwardPorts": [8787],
"portsAttributes": {
"8787": {
"label": "Rstudio",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash .devcontainer/setup.sh",
"postAttachCommand": "sudo rstudio-server start &> /dev/null && bash .devcontainer/welcome.sh",
"remoteUser": "rstudio"
}
"name": "NASA TOPS Environment"
}

53 changes: 53 additions & 0 deletions .devcontainer/full-devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"image": "ghcr.io/boettiger-lab/nasa-tops:latest",
"runArgs": [ "--security-opt", "seccomp=unconfined" ],
"name": "NASA TOPS Environment",
// build image as a github-action and grab instead; faster.
// "build": {
// "dockerfile": "Dockerfile"
//},
"waitFor": "onCreateCommand",
"features": {
"ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": {},
// Install JupyterLab and IRkernel.
// More info: https://github.com/rocker-org/devcontainer-templates/tree/main/src/r-ver
"ghcr.io/rocker-org/devcontainer-features/r-rig:1": {
"version": "none",
"installJupyterlab": true
}
},
"customizations": {
"codespaces": {
"openFiles": ["README.md"]
},
"vscode": {
"settings": {
"r.rterm.linux": "/usr/local/bin/radian",
"r.bracketedPaste": true,
"r.plot.useHttpgd": true,
"[r]": {
"editor.wordSeparators": "`~!@#%$^&*()-=+[{]}\\|;:'\",<>/?"
}
},
"extensions": [
"reditorsupport.r",
"rdebugger.r-debugger",
"ms-toolsai.jupyter",
"ms-python.python"
]
}
},
// Forward the RStudio ports
"forwardPorts": [8787],
"portsAttributes": {
"8787": {
"label": "Rstudio",
"requireLocalPort": true,
"onAutoForward": "ignore"
}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash .devcontainer/setup.sh",
"postAttachCommand": "sudo rstudio-server start &> /dev/null && bash .devcontainer/welcome.sh",
"remoteUser": "rstudio"
}
1 change: 1 addition & 0 deletions .devcontainer/jupyter-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jupyterlab-git
jupyter-tensorboard-proxy
jupyter-resource-usage
jupyter-vscode-proxy
jupyter-rsession-proxy
jupyter-book
jupyterlab_myst
gh-scoped-creds
Expand Down
8 changes: 4 additions & 4 deletions .devcontainer/jupyterhub.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## devcontainer-focused Rocker
# devcontainer-focused Rocker
FROM ghcr.io/rocker-org/devcontainer/tidyverse:4.3

## latest version of geospatial libs
Expand All @@ -19,7 +19,7 @@ RUN chown ${NB_USER}:staff -R ${R_HOME}/site-library
RUN git config --system pull.rebase false && \
git config --system credential.helper 'cache --timeout=36000'

## codeserver
# codeserver
RUN curl -fsSL https://code-server.dev/install.sh | sh

USER rstudio
Expand All @@ -28,10 +28,10 @@ RUN usermod -s /bin/bash rstudio
ENV PATH=$PATH:/home/rstudio/.local/bin

COPY jupyter-requirements.txt jupyter-requirements.txt
RUN python -m pip install -r jupyter-requirements.txt && rm jupyter-requirements.txt
RUN python -m pip install --no-cache-dir -r jupyter-requirements.txt && rm jupyter-requirements.txt

COPY nasa-requirements.txt requirements.txt
RUN python -m pip install -r requirements.txt && rm requirements.txt
RUN python -m pip install --no-cache-dir -r requirements.txt && rm requirements.txt

COPY install.R install.R
RUN Rscript install.R && rm install.R
Expand Down

0 comments on commit 0cd68e4

Please sign in to comment.