34 lines
1.2 KiB
Docker
34 lines
1.2 KiB
Docker
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 \
|
|
git \
|
|
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"]
|