gradle
Versions: 7.0.0-hotspot,7.0.1-hotspot,7.0.2-hotspot,7.1.0-hotspot,7.1.1-hotspot,7.2.0,7.3.0,7.3.3,7.4.0,latest,7,7-jdk17,7-jdk16,7-jdk11,7-jdk-openj9,7-jdk18,7-jdk19,8,8-jdk19,8-jdk17,8-jdk11,8-jdk8,8-jdk21,8-jdk20,8-jdk-21-and-22,8-jdk22,8-jdk23,8-jdk-21-and-23-alpine,8-jdk-lts-and-current-corretto-al2023
This module is a singularity container wrapper for gradle. Gradle is a build tool with a focus on build automation and support for multi-language development. After installing shpc you will want to install this container module:
$ shpc install gradle
Or a specific version:
$ shpc install gradle:8-jdk-lts-and-current-corretto-al2023
And then you can tell lmod about your modules folder:
$ module use ./modules
And load the module, and ask for help, or similar.
$ module load gradle/8-jdk-lts-and-current-corretto-al2023
$ module help gradle/8-jdk-lts-and-current-corretto-al2023
You can use tab for auto-completion of module names or commands that are provided.
Commands
When you install this module, you will be able to load it to make the following commands accessible. Examples for both Singularity, Podman, and Docker (container technologies supported) are included.
gradle-run:
$ singularity run <container>
$ podman run --rm -v ${PWD} -w ${PWD} <container>
$ docker run --rm -v ${PWD} -w ${PWD} <container>
gradle-shell:
$ singularity shell -s /bin/sh <container>
$ podman run --it --rm --entrypoint /bin/sh -v ${PWD} -w ${PWD} <container>
$ docker run --it --rm --entrypoint /bin/sh -v ${PWD} -w ${PWD} <container>
gradle-exec:
$ singularity exec <container> "$@"
$ podman run --it --rm --entrypoint "" -v ${PWD} -w ${PWD} <container> "$@"
$ docker run --it --rm --entrypoint "" -v ${PWD} -w ${PWD} <container> "$@"
gradle-inspect:
Podman and Docker only have one inspect type.
$ podman inspect <container>
$ docker inspect <container>
gradle-inspect-runscript:
$ singularity inspect -r <container>
gradle-inspect-deffile:
$ singularity inspect -d <container>
gradle
$ singularity exec <container> /usr/bin/gradle
$ podman run --it --rm --entrypoint /usr/bin/gradle -v ${PWD} -w ${PWD} <container> -c " $@"
$ docker run --it --rm --entrypoint /usr/bin/gradle -v ${PWD} -w ${PWD} <container> -c " $@"
In the above, the <container>
directive will reference an actual container provided
by the module, for the version you have chosen to load. An environment file in the
module folder will also be bound. Note that although a container
might provide custom commands, every container exposes unique exec, shell, run, and
inspect aliases. For anycommands above, you can export:
- SINGULARITY_OPTS: to define custom options for singularity (e.g., –debug)
- SINGULARITY_COMMAND_OPTS: to define custom options for the command (e.g., -b)
- PODMAN_OPTS: to define custom options for podman or docker
- PODMAN_COMMAND_OPTS: to define custom options for the command
Install
You can install shpc locally (for yourself or your user base) as follows:
$ git clone https://github.com/singularityhub/singularity-hpc
$ cd singularity-hpc
$ pip install -e .
Have any questions, or want to request a new module or version? ask for help!