Skip to content

Instantly share code, notes, and snippets.

@jebeaudet
Created February 23, 2023 16:02
Show Gist options
  • Save jebeaudet/41a4163cdc480f9ac6dc802b7b742870 to your computer and use it in GitHub Desktop.
Save jebeaudet/41a4163cdc480f9ac6dc802b7b742870 to your computer and use it in GitHub Desktop.
Dockerfile for Named Locks using Redisson
FROM maven:3.9.0-eclipse-temurin-17
RUN addgroup --gid 1001 jenkins
RUN adduser --uid 1001 --gid 1001 --disabled-password --gecos '' jenkins
RUN mkdir -p /usr/share/maven/lib/ext/redisson/
RUN sed -i '/.*${maven.conf}\/logging/a load ${maven.home}/lib/ext/redisson/*.jar' usr/share/maven/bin/m2.conf
RUN apt update
RUN apt install -y wget
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/org/apache/maven/resolver/maven-resolver-named-locks-redisson/1.9.5/maven-resolver-named-locks-redisson-1.9.5.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/org/redisson/redisson/3.17.7/redisson-3.17.7.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.13.4/jackson-annotations-2.13.4.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.13.4/jackson-core-2.13.4.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.13.4/jackson-databind-2.13.4.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.13.4/jackson-dataformat-yaml-2.13.4.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/org/jboss/marshalling/jboss-marshalling/2.0.11.Final/jboss-marshalling-2.0.11.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/org/jboss/marshalling/jboss-marshalling-river/2.0.11.Final/jboss-marshalling-river-2.0.11.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-buffer/4.1.82.Final/netty-buffer-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-codec/4.1.82.Final/netty-codec-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-codec-dns/4.1.82.Final/netty-codec-dns-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-common/4.1.82.Final/netty-common-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-handler/4.1.82.Final/netty-handler-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-resolver/4.1.82.Final/netty-resolver-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-resolver-dns/4.1.82.Final/netty-resolver-dns-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/io/netty/netty-transport/4.1.82.Final/netty-transport-4.1.82.Final.jar
RUN wget -P /usr/share/maven/lib/ext/redisson/ https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.31/snakeyaml-1.31.jar
USER jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment