Lightweight and easy-to-use repository management software dedicated for Maven based artifacts in the JVM ecosystem.
Lightweight and easy-to-use repository management software dedicated for Maven based artifacts in the JVM ecosystem.
One port needs to be allocated to run Reposilite.
Name | Tag |
---|---|
ghcr.io/pterodactyl/yolks:java_11 | ghcr.io/pterodactyl/yolks:java_11 |
ghcr.io/pterodactyl/yolks:java_16 | ghcr.io/pterodactyl/yolks:java_16 |
ghcr.io/pterodactyl/yolks:java_17 | ghcr.io/pterodactyl/yolks:java_17 |
ghcr.io/pterodactyl/yolks:java_21 | ghcr.io/pterodactyl/yolks:java_21 |
ghcr.io/pterodactyl/yolks:java_8 | ghcr.io/pterodactyl/yolks:java_8 |
Name | Description | Environment Variable | Default Value | User Viewable | User Editable |
---|---|---|---|---|---|
Reposilite version | The version of Reposilite. | REPOSILITE_VERSION | latest | Yes | Yes |
#!/bin/sh
# Switch to mounted directory
cd /mnt/server
# Find latest Reposilite version, if needed
if [ "$REPOSILITE_VERSION" == "latest" ]; then
REPOSILITE_VERSION=$(grep -oPm1 "(?<=<latest>)[^<]+" <<< "$(curl -s https://maven.reposilite.com/releases/com/reposilite/reposilite/maven-metadata.xml)")
fi
# Check if -all suffixed jar is available
status_code=$(curl --write-out '%{http_code}' -X HEAD -s -o /dev/null https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}-all.jar)
# Download new Reposilite
if [ "$status_code" == 200 ]; then
curl -o reposilite.jar https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}-all.jar
else
curl -o reposilite.jar https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}.jar
fi