39 lines
No EOL
1.1 KiB
Docker
39 lines
No EOL
1.1 KiB
Docker
FROM debian:latest
|
|
|
|
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
|
|
|
ARG JENKINS_SECRET=notset
|
|
|
|
ENV DOCKER 1
|
|
USER 0
|
|
|
|
RUN echo ${JENKINS_SECRET} > /agent.secret
|
|
|
|
RUN apt update; apt-get upgrade -y
|
|
|
|
RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre android-sdk android-sdk-build-tools android-sdk-platform-tools
|
|
|
|
WORKDIR /
|
|
RUN curl -sO https://ci.zontreck.com/jnlpJars/agent.jar
|
|
|
|
RUN curl -sO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.2-stable.tar.xz
|
|
|
|
RUN tar -xf /flutter_linux_3.22.2-stable.tar.xz
|
|
|
|
RUN echo "export PATH=$PATH:/flutter/bin"
|
|
|
|
WORKDIR /
|
|
|
|
RUN apt install -y fonts-liberation libgtk-4-1 libgbm1 libu2f-udev libvulkan1 xdg-utils
|
|
|
|
RUN rm *.xz
|
|
RUN curl -sO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
|
|
RUN dpkg -i google-chrome-stable_current_amd64.deb
|
|
|
|
RUN chown -R root:root /flutter
|
|
|
|
RUN /flutter/bin/flutter --disable-analytics
|
|
RUN /flutter/bin/flutter doctor
|
|
|
|
ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ] |