From ba867651e393182053dfa838d5f6f27deeca3276 Mon Sep 17 00:00:00 2001 From: Tobias Klein Date: Fri, 15 Nov 2024 19:37:50 +0100 Subject: [PATCH] Add docker build for OpenSuse Leap 15.6 --- .github/workflows/build.yml | 23 ++++++++++++++++--- ...Dockerfile => OpenSuseLeap15.5_Dockerfile} | 0 docker/OpenSuseLeap15.6_Dockerfile | 23 +++++++++++++++++++ 3 files changed, 43 insertions(+), 3 deletions(-) rename docker/{OpenSuseLeap_Dockerfile => OpenSuseLeap15.5_Dockerfile} (100%) create mode 100644 docker/OpenSuseLeap15.6_Dockerfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 65613b9..2638221 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -242,8 +242,8 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - build-opensuseleap-image: - name: Build Docker Image for building Ezra Bible App on OpenSuse Leap + build-opensuseleap15.5-image: + name: Build Docker Image for building Ezra Bible App on OpenSuse Leap 15.5 runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 @@ -252,10 +252,27 @@ jobs: - uses: mr-smithers-excellent/docker-build-push@v3 name: Build & push Docker image with: - dockerfile: docker/OpenSuseLeap_Dockerfile + dockerfile: docker/OpenSuseLeap15.5_Dockerfile image: toklein/ezra-opensuse-leap-15.5 tag: latest registry: docker.io username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + build-opensuseleap15.6-image: + name: Build Docker Image for building Ezra Bible App on OpenSuse Leap 15.6 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + name: Check out + + - uses: mr-smithers-excellent/docker-build-push@v3 + name: Build & push Docker image + with: + dockerfile: docker/OpenSuseLeap15.5_Dockerfile + image: toklein/ezra-opensuse-leap-15.6 + tag: latest + registry: docker.io + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + diff --git a/docker/OpenSuseLeap_Dockerfile b/docker/OpenSuseLeap15.5_Dockerfile similarity index 100% rename from docker/OpenSuseLeap_Dockerfile rename to docker/OpenSuseLeap15.5_Dockerfile diff --git a/docker/OpenSuseLeap15.6_Dockerfile b/docker/OpenSuseLeap15.6_Dockerfile new file mode 100644 index 0000000..4d11dc9 --- /dev/null +++ b/docker/OpenSuseLeap15.6_Dockerfile @@ -0,0 +1,23 @@ +# Dockerfile for OpenSuse Build Enviroment for Ezra Bible App + +FROM opensuse/leap:15.6 + +RUN zypper addrepo https://download.opensuse.org/repositories/home:Simmphonie:surface:stableBackport/15.6/home:Simmphonie:surface:stableBackport.repo +RUN zypper addrepo https://download.opensuse.org/repositories/home:MaxxedSUSE:Python-15.6/15.6/home:MaxxedSUSE:Python-15.6.repo + +RUN zypper -n --no-gpg-checks refresh -f + +RUN zypper install -y sudo gcc-c++ make vim git subversion cmake rpm-build unzip curl wget +RUN zypper install -y libcurl-devel libicu-devel sqlite3-devel zlib-devel +RUN zypper install -y nodejs npm +RUN zypper install -y python310 +RUN rm /usr/bin/python3 && ln -s /usr/bin/python3.10 /usr/bin/python3 +RUN zypper install -y gcc-c++ + +RUN npm install -g electron-packager +RUN npm install -g electron-installer-redhat +RUN npm install -g pug-cli + +COPY docker/build_opensuseleap.sh /build.sh + +ENTRYPOINT ["/build.sh"] \ No newline at end of file