Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.98 KB

README.md

File metadata and controls

71 lines (47 loc) · 1.98 KB

Docker for populating a volume with EO data

Project Status: Active – The project has reached a stable, usable state and is being actively developed.

Pull this docker image

This docker image is published on Github Packages.

If you don't have a Personal Access Token with read:packages set, create a new one at: https://github.com/settings/tokens/new

Log on the docker repository with:

docker login docker.pkg.github.com --username <your_user_name> --password <generated_token_not_password>

Then pull the image from the command line with:

docker pull docker.pkg.github.com/snap-contrib/docker-volume-eo/volume-eo:latest

Build this docker image

docker build -t volume-eo:latest .

Create a docker volume and populate it with a Sentinel-1

Create a docker volume called eo-data with:

docker volume create --name eo-data

Run the command below to populate it with the Sentinel-1 GRD product with identifier S1A_IW_GRDH_1SDV_20201228T170552_20201228T170617_035889_0433FB_D8C7:

docker run --rm -it -v eo-data:/data volume-eo:latest S1A_IW_GRDH_1SDV_20201228T170552_20201228T170617_035889_0433FB_D8C7

You'll be asked for you scihub credentials.

Use a credentials file

Create a JSON file called usersettings.json and add:

{
  "Credentials": {
    "scihub": {
      "AuthType": "Basic",
      "UriPrefix": "https://scihub.copernicus.eu/",
      "Username": "<your username>",
      "Password": "<your password>"
    }
  }
}

Then run:

docker run --rm -it -v eo-data:/data -v $PWD/usersettings.json:/root/.config/Stars/usersettings.json volume-eo:latest S1A_IW_GRDH_1SDV_20201228T170552_20201228T170617_035889_0433FB_D8C7

Now you have a local docker volume with EO data that can be mounted on other docker containers