Build the container once:
docker build --tag pds4-workshop .
You can either enter the container shell directly to execute your commands in it:
docker run -it --rm -v "$(pwd):/data" pds4-workshop
Note: You may need to adjust the volume (-v
) flag if you want to mount another folder to /data
in the container. Here, the $(pwd)
provide your current working directy. If you change it, you need to provide an explicit path.
You can also execute a command outside the container:
docker run -it --rm -v "$(pwd):/data" pds4-workshop validate --version
docker run -it --rm -v "$(pwd):/data" pds4-workshop lddtool --version
Note
OpenJDK Docker images are depreciated, we use AWS Corretto instead.
Tip
- Base image: Alpine version:
3.20
- Corretto openJDK version:
23.0
- PDS validate version:
3.6.0
- PDS LDD tool version:
15.1.0
git clone https://s2e2.cosmos.esa.int/bitbucket/scm/psaas/pds4_workshop.git hands-on
or download directly the zip and unzip it:
wget https://s2e2.cosmos.esa.int/bitbucket/rest/api/latest/projects/PSAAS/repos/pds4_workshop/archive?format=zip
unzip [email protected]
rm [email protected]
mv pds4_workshop-master@xxxxxxx hands-on/
Go into the working folder and start the docker image:
cd hands-on/
docker run -it --rm -v "$(pwd):/data" pds4-workshop
Now you should be in the /data
folder in docker and you can run the command of the hands-on session directly:
/data # validate --version