Skip to content
Snippets Groups Projects
Commit 973bcccc authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3357 add jenkins-lasttest-agent dockerfile

parent 5ce6d2b1
No related branches found
No related tags found
No related merge requests found
FROM ubuntu:22.04
ARG K6_VERSION=v0.42.0
ARG OPENJDK_VERSION=17
ARG KUBECTL_VERSION=v1.25.0
ENV LANG C.UTF-8
RUN apt update \
&& apt upgrade -y \
&& apt install -y \
git \
openjdk-${OPENJDK_VERSION}-jdk \
wget \
openssh-server
RUN wget https://github.com/grafana/k6/releases/download/${K6_VERSION}/k6-${K6_VERSION}-linux-amd64.tar.gz -O /tmp/k6.tar.gz \
&& tar -xzf /tmp/k6.tar.gz -C /usr/share --strip-components=1 \
&& ln -s /usr/share/k6 /usr/bin/k6
RUN wget https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl \
&& chmod 755 /usr/local/bin/kubectl
RUN mkdir /run/sshd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
\ No newline at end of file
# Image bauen
`docker build -t docker.ozg-sh.de/jenkins-lasttest-agent:v0.42.0-kubectl .`
# push
`docker push docker.ozg-sh.de/jenkins-lasttest-agent:v0.42.0-kubectl`
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment