37 lines
No EOL
1.1 KiB
Docker
37 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
|
|
|
|
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
|
|
|
|
WORKDIR /flutter
|
|
RUN tar -xf flutter_linux_3.22.2-stable.tar.xz -C /flutter
|
|
|
|
RUN echo "export PATH=$PATH:/flutter/bin"
|
|
|
|
WORKDIR /
|
|
|
|
RUN rm *.xz
|
|
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
|
|
RUN ln -sv $(which google-chrome-stable) /bin/google-chrome
|
|
|
|
RUN dpkg -i google-chrome-stable_current_amd64.deb
|
|
|
|
RUN flutter --disable-analytics
|
|
RUN flutter doctor
|
|
|
|
ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ] |