Skip to content

Commit 4f54994

Browse files
Clean up jupyter example app (#255)
* Create example app * Add comments * Test example with CI * Replace jupyter * Clean up unused apps * Add back jupyter-template which is still in use by UI
1 parent 789436a commit 4f54994

22 files changed

+42
-405
lines changed

.github/workflows/test-pr.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,10 @@ jobs:
2525
- 'startupscript/**'
2626
- 'test/**'
2727
config:
28-
# BENCH-4080: Re-enable cirrocumulus test
2928
- jupyter-template:
3029
user: jupyter
3130
jupyter:
3231
user: jovyan
33-
shiny:
34-
user: shiny
3532
r-analysis:
3633
user: rstudio
3734
workbench_tools: true

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ The `.devcontainer.json` file in the custom app folder (e.g. r-analysis/) contai
1818
`post-startup.sh` contains workbench specific set up.
1919

2020
Please visit https://support.workbench.verily.com/docs/guides/cloud_apps/create_custom_apps/ for details about using a dev container specification to create a custom app in Workbench.
21+
22+
For an example app, see [src/jupyter](https://github.com/verily-src/workbench-app-devcontainer/tree/main/src/jupyter).

src/cirrocumulus/.devcontainer.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/cirrocumulus/Dockerfile

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/cirrocumulus/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/cirrocumulus/devcontainer-template.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/cirrocumulus/docker-compose.yaml

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/cirrocumulus/scripts/cirro_scanner.sh

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/jupyter/.devcontainer.json

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
{
2-
"name": "Jupyter app",
2+
"name": "Workbench Example Jupyter App",
33
"dockerComposeFile": "docker-compose.yaml",
44
"service": "app",
55
"shutdownAction": "none",
66
"workspaceFolder": "/workspace",
7+
// This post create command is required to set up the user environment with
8+
// the Workbench CLI and mount workspace resources. To add additional setup
9+
// commands, specify a string shell command instead.
10+
// "postCreateCommand": "./startupscript/post-startup.sh 'jovyan' '/home/jovyan' '${templateOption:cloud}' '${templateOption:login}' && echo 'Additional setup commands can go here.'",
711
"postCreateCommand": [
812
"./startupscript/post-startup.sh",
9-
"jovyan",
13+
"jovyan", // This must be the user inside the container and their home directory.
1014
"/home/jovyan",
1115
"${templateOption:cloud}",
1216
"${templateOption:login}"
1317
],
14-
// re-mount bucket files on container start up
18+
// Re-mount workspace resources on container start up
1519
"postStartCommand": [
1620
"./startupscript/remount-on-restart.sh",
1721
"jovyan",
@@ -20,12 +24,17 @@
2024
"${templateOption:login}"
2125
],
2226
"features": {
23-
"ghcr.io/devcontainers/features/java@sha256:df67d6ff6e9cdd858207ae9e92a99ddb88384b789f79eecd6f873216e951d286": {
27+
// The below features are required for the Workbench CLI. If the image
28+
// already comes with these features, they can be omitted. Feel free to add
29+
// other devcontainer features as desired (see
30+
// https://containers.dev/features).
31+
"ghcr.io/devcontainers/features/java:1": {
2432
"version": "17"
2533
},
26-
"ghcr.io/devcontainers/features/aws-cli@sha256:bbc9fd513c22e331953126c75ad7b2ed1f9044f1cd5890b7073b634810459b18": {},
27-
"ghcr.io/dhoeric/features/google-cloud-cli@sha256:fa5d894718825c5ad8009ac8f2c9f0cea3d1661eb108a9d465cba9f3fc48965f": {}
34+
"ghcr.io/devcontainers/features/aws-cli:1": {},
35+
"ghcr.io/dhoeric/features/google-cloud-cli:1": {}
2836
},
37+
// This is the user that will run the post create and post start commands.
2938
"remoteUser": "root",
3039
"customizations": {
3140
"workbench": {

src/jupyter/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
# Jupyter (jupyter)
2+
# Workbench Example Jupyter App (jupyter)
33

4-
A Template to run jupyter on workbench
4+
An example app containing a JupyterLab image
55

66
## Options
77

@@ -14,4 +14,4 @@ A Template to run jupyter on workbench
1414

1515
---
1616

17-
_Note: This file was auto-generated from the [devcontainer-template.json](https://github.com/verily-src/workbench-app-devcontainers/blob/main/src/jupyter/devcontainer-template.json). Add additional notes to a `NOTES.md`._
17+
_Note: This file was auto-generated from the [devcontainer-template.json](devcontainer-template.json). Add additional notes to a `NOTES.md`._

0 commit comments

Comments
 (0)