updated dockerfile to reduce filesize to 2 Gb + updated pipeline to use local ip for runners to skip cloudflare limitations

This commit is contained in:
2025-04-06 22:28:27 +02:00
parent 39b594b0b2
commit 8941d84bc8
3 changed files with 29 additions and 10 deletions

View File

@@ -33,9 +33,28 @@ RUN mkdir -p ${QT_INSTALL_PATH} && \
tar -xf qt-everywhere-src-${QT_VERSION}.tar.xz && \
rm qt-everywhere-src-${QT_VERSION}.tar.xz && \
cd qt-everywhere-src-${QT_VERSION} && \
./configure -prefix ${QT_INSTALL_PATH} -nomake examples -nomake tests -optimized-qmake && \
./configure -prefix ${QT_INSTALL_PATH} \
-nomake examples \
-nomake tests \
-nomake benchmarks \
-optimized-qmake \
-commercial -confirm-license \
-skip qt3d \
-skip qtdatavis3d \
-skip qtgamepad \
-skip qtlottie \
-skip qtnetworkauth \
-skip qtquicktimeline \
-skip qtsensors \
-skip qtspeech \
-skip qtwebchannel \
-skip qtwebengine \
-skip qtwebglplugin \
-release \
-optimize-size && \
make -j$(nproc) && \
make install
make install && \
rm -rf ${QT_INSTALL_PATH}/qt-everywhere-src-${QT_VERSION}
# Install Android SDK Command Line Tools
RUN mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools && \

View File

@@ -3,7 +3,9 @@ name: Build and Push Docker Image
on:
push:
branches:
- '**'
- 'main'
paths:
- '**/Dockerfile'
jobs:
build-and-push:
@@ -11,18 +13,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Log into Gitea Container Registry
run: |
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ vars.LOCAL_INSTANCE_IP }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ secrets.LOCAL_INSTANCE_IP }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build Docker image
run: |
docker pull hello-world
docker tag hello-world git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest
#docker build -t git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest -f .devcontainer/Dockerfile .
docker build -t ${{ secrets.LOCAL_INSTANCE_IP }}/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest -f .devcontainer/Dockerfile .
- name: Push Docker image
run: |
docker push git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest
docker push ${{ secrets.LOCAL_INSTANCE_IP }}/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2025 silklaasboer
Copyright (c) 2025 silklaasboer & pavankumar bellary
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: