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

Use container directly with Coiled #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ Coiled allows launching jupyter on an ephemeral cloud machine with a
pre-configured software environment. The included Dockerfile defines a
geospatial container image and python environment suitable for running the
notebooks in the repo; this is published as a public image to AWS ECR with the
image `public.ecr.aws/q2i2x3t4/e84-sandbox/coiled-demo:latest`. We can use this
container image with a coiled software environment (the included script
`./scripts/create-software-env.py`) can be run to setup a software environment
called `cng-workshop` if it does not already exist in your coiled context).
image `public.ecr.aws/q2i2x3t4/e84-sandbox/coiled-demo:latest`.

Understanding this, all we need to do to run our jupyter server is the following:

```cmdline
❯ coiled notebook start --software cng-workshop --account element84-demo-workspace
❯ coiled notebook start --container public.ecr.aws/q2i2x3t4/e84-sandbox/coiled-demo:latest --account element84-demo-workspace
```

Running this command will trigger coiled to spin up a new instance to run the
Expand Down
4 changes: 2 additions & 2 deletions notebooks/odc-stac-s2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@
"# start dask cluster on coiled.io\n",
"cluster = coiled.Cluster(\n",
" n_workers=10,\n",
" software=\"cng-workshop\",\n",
" container=\"public.ecr.aws/q2i2x3t4/e84-sandbox/coiled-demo:latest\",\n",
" account=\"element84-demo-workspace\",\n",
" backend_options={\"region\": \"us-west-2\"}\n",
" region=\"us-west-2\",\n",
")\n",
"client = Client(cluster)\n",
"\n",
Expand Down
11 changes: 0 additions & 11 deletions scripts/create-software-env.py

This file was deleted.