Implement fully automated Jenkins HW8 setup with Ansible, JCasC and JJB
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
FROM eclipse-temurin:21-jre
|
||||
|
||||
ARG DOCKER_COMPOSE_VERSION=2.36.2
|
||||
ARG ALLURE_VERSION=2.29.0
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
docker.io \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -fsSL -o /usr/local/bin/swarm-client.jar \
|
||||
https://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/swarm-client/3.51/swarm-client-3.51.jar
|
||||
|
||||
RUN mkdir -p /usr/local/lib/docker/cli-plugins \
|
||||
&& curl -fsSL -o /usr/local/lib/docker/cli-plugins/docker-compose \
|
||||
"https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64" \
|
||||
&& chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
|
||||
|
||||
RUN curl -fsSL -o /tmp/allure.zip \
|
||||
"https://github.com/allure-framework/allure2/releases/download/${ALLURE_VERSION}/allure-${ALLURE_VERSION}.zip" \
|
||||
&& unzip -q /tmp/allure.zip -d /opt \
|
||||
&& ln -s "/opt/allure-${ALLURE_VERSION}" /opt/allure \
|
||||
&& ln -s /opt/allure/bin/allure /usr/local/bin/allure \
|
||||
&& rm -f /tmp/allure.zip
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user