Skip to content

Commit

Permalink
adaptions for release
Browse files Browse the repository at this point in the history
  • Loading branch information
16EAGLE committed Jul 19, 2021
1 parent f86ba65 commit 23a049a
Show file tree
Hide file tree
Showing 5 changed files with 2,241 additions and 8 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ RUN apt-get update&&apt-get install -y --no-install-recommends r-cran-reticulate

# install R packages
RUN R -e 'install.packages(c("IRkernel", "rgdal", "sp", "raster", "sf", "basemaps", "ggplot2", "mapview", "mapedit", "devtools", "usethis", "testthat", "roxygen2", "geojsonio", "gdalUtils"))'
RUN R -e 'devtools::install_github("eo2cube/odcr")'
RUN R -e 'install.packages(c("IRkernel"))'

# initiliaze R kernel for Jupyter
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `eo2cube_box`
# `odcbox`

This repository hosts all you need to install an *Open Data Cube* instance as a docker container that serves a Jupyter notebook environment running a `Python` kernel and an `R` kernel. It is original based on the [Cube-in-a-box](https://github.com/opendatacube/cube-in-a-box) repository.

Expand All @@ -25,7 +25,7 @@ Make sure to have [`docker`](https://docs.docker.com/engine/install/ubuntu/#inst
Clone this repository to a directory of your choice, e.g. using

```
git clone https://github.com/16EAGLE/eo2cube_box/
git clone https://github.com/16EAGLE/odcbox/
```

and `cd` into its main directory. To start the container (and build it the first time), run:
Expand All @@ -40,7 +40,7 @@ To initialize the jupyter environment and pull Sentinel-2A example data, open a
./docker_init
```

Wait for its completion. You may then now access your local Jupyter environment in a browser on your host machine under [http://localhost](http://localhost). Use the password `secretpassword` to authenticate.
Wait for its completion. You may now access your local Jupyter environment in a browser on your host machine under [http://localhost](http://localhost). Use the password `secretpassword` to authenticate.

See the notebook `Sentinel_2.ipynb` for examples. Note that you can index additional areas using the `Indexing_More_Data.ipynb` notebook.

Expand All @@ -50,13 +50,13 @@ To stop the container, from a shell other then the one the docker container is r
./docker_stop
```

To fully clean your docker environment from images pulled for `eo2cube_box` and to allow a fresh re-deploy, run
To fully clean your docker environment from images pulled for `odcbox` and to allow a fresh re-deploy, run

```
./docker_clean
```

before starting over. Note that with each re-deploy, a new docker volume is created containing your indexed data. You may want to prune your docker volumes from time to time, e.g. using `docker volume rm $(docker volume ls -q -f 'dangling=true')`. Note that this will remove **all** docker volumes, also those from other docker instances that might be running on your host system.
before starting over. Note that with each re-deploy, a new docker volume is created containing your indexed data. You may want to prune your docker volumes for a re-deploy, e.g. using `docker volume rm $(docker volume ls -q -f 'dangling=true')`. Note that this will remove **all** docker volumes, also those from other docker instances that might be running on your host system.


## Troubleshooting
Expand All @@ -67,7 +67,7 @@ Error message:

```
./docker_start
#> ERROR: for postgres Cannot start service postgres: driver failed programming external connectivity on endpoint eo2cube_box_postgres_1 (...): Error starting userland proxy: listen tcp4 0.0.0.0:5432: bind: address already in use
#> ERROR: for postgres Cannot start service postgres: driver failed programming external connectivity on endpoint odcbox_postgres_1 (...): Error starting userland proxy: listen tcp4 0.0.0.0:5432: bind: address already in use
```

Reason: The default `postgres` port `5432` seems to be used by some service (maybe `postgres`?) running on your host system.
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ services:
- DB_DATABASE=opendatacube
- AWS_NO_SIGN_REQUEST=true
- STAC_API_URL=https://earth-search.aws.element84.com/v0/
env_file:
- .github.env
ports:
- "80:8888"
#- "8787:8787"
Expand Down
Loading

0 comments on commit 23a049a

Please sign in to comment.