Split up more images

This commit is contained in:
zontreck 2024-07-23 00:05:13 -07:00
parent 96f196b30e
commit 5e07911d4d
5 changed files with 64 additions and 50 deletions

37
AndroidSDK/Dockerfile Normal file
View file

@ -0,0 +1,37 @@
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
ENV ANDROID_HOME "/opt/android-sdk-linux"
ENV ANDROID_SDK_VER 11076708
ENV ANDROID_SDK_ROOT $ANDROID_HOME
ENV PATH $PATH:$ANDROID_HOME/cmdline-tools:$ANDROID_HOME/cmdline-tools/bin:$ANDROID_HOME/platform-tools
RUN curl -sO https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_VER}_latest.zip
RUN unzip -qq /commandlinetools-linux-${ANDROID_SDK_VER}_latest.zip -d $ANDROID_SDK_ROOT
RUN rm -v /commandlinetools-linux-${ANDROID_SDK_VER}_latest.zip
RUN mkdir -p $ANDROID_HOME/licenses
RUN yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --licenses --sdk_root=${ANDROID_SDK_ROOT}
RUN mkdir -p /home/adk/.android \
&& mkdir -pv /home/adk/app \
&& touch /home/adk/.android/repositories.cfg
ENV HOME /home/adk
WORKDIR /home/adk
RUN curl -s "https://get.sdkman.io" | bash
ADD packages.txt $HOME
# Use SDK Manager to install necessary components
RUN $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} --update \
&& while read -r pkg; do PKGS="${PKGS}${pkg} "; done < $HOME/packages.txt \
&& $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} $PKGS \
&& rm $HOME/packages.txt
# Install Gradle
RUN source "${HOME}/.sdkman/bin/sdkman-init.sh" \
&& sdk install gradle ${GRADLE_VERSION}

20
FlutterSdk/Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM git.zontreck.com/ariascreations/buildenvironments:adk
ENV PATH $PATH:/flutter/bin
RUN curl -sO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.3-stable.tar.xz
RUN tar -xf /flutter_linux_3.22.3-stable.tar.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
RUN /flutter/bin/flutter precache

View file

@ -1,60 +1,11 @@
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
FROM git.zontreck.com/ariascreations/buildenvironments:flutter
COPY ./agent.secret /agent.secret
ENV ANDROID_HOME "/opt/android-sdk-linux"
ENV APPIMAGE_BUILDER_VER 1.1.0
ENV ANDROID_SDK_VER 11076708
ENV ANDROID_SDK_ROOT $ANDROID_HOME
ENV PATH $PATH:$ANDROID_HOME/cmdline-tools:$ANDROID_HOME/cmdline-tools/bin:$ANDROID_HOME/platform-tools:/flutter/bin
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.3-stable.tar.xz
RUN tar -xf /flutter_linux_3.22.3-stable.tar.xz
RUN curl -sO https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_SDK_VER}_latest.zip
RUN unzip -qq /commandlinetools-linux-${ANDROID_SDK_VER}_latest.zip -d $ANDROID_SDK_ROOT
RUN rm -v /commandlinetools-linux-${ANDROID_SDK_VER}_latest.zip
RUN mkdir -p $ANDROID_HOME/licenses
RUN yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager --licenses --sdk_root=${ANDROID_SDK_ROOT}
RUN mkdir -p /home/adk/.android \
&& mkdir -pv /home/adk/app \
&& touch /home/adk/.android/repositories.cfg
ENV HOME /home/adk
WORKDIR /home/adk
RUN curl -s "https://get.sdkman.io" | bash
ADD packages.txt $HOME
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
# Use SDK Manager to install necessary components
RUN $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} --update \
&& while read -r pkg; do PKGS="${PKGS}${pkg} "; done < $HOME/packages.txt \
&& $ANDROID_HOME/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_ROOT} $PKGS \
&& rm $HOME/packages.txt
# Install Gradle
RUN source "${HOME}/.sdkman/bin/sdkman-init.sh" \
&& sdk install gradle ${GRADLE_VERSION}
RUN /flutter/bin/flutter doctor
RUN /flutter/bin/flutter precache
ADD pub.secret /
RUN cat /pub.secret | dart pub token add https://git.zontreck.com/api/packages/AriasCreations/pub

View file

@ -6,6 +6,12 @@ docker push git.zontreck.com/ariascreations/buildenvironments:debian
docker build -t git.zontreck.com/ariascreations/buildenvironments:debianbuild DebianBuilder
docker push git.zontreck.com/ariascreations/buildenvironments:debianbuild
docker build -t git.zontreck.com/ariascreations/buildenvironments:adk AndroidSDK
docker push git.zontreck.com/ariascreations/buildenvironments:adk
docker build -t git.zontreck.com/ariascreations/buildenvironments:flutter FlutterSdk
docker push git.zontreck.com/ariascreations/buildenvironments:flutter
docker build -t git.zontreck.com/ariascreations/buildenvironments:firestormlinux FirestormLinux
docker push git.zontreck.com/ariascreations/buildenvironments:firestormlinux