Skip to content

Commit

Permalink
Add CentOS9 build configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-klein committed Nov 10, 2024
1 parent dc8ac43 commit c9d4116
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,6 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

build-mint21-image:
name: Build Docker Image for building Ezra Bible App on Mint 21
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/Mint21_Dockerfile
image: toklein/ezra-mint-21
tag: latest
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

build-buster-image:
name: Build Docker Image for building Ezra Bible App on Debian 10 Buster
runs-on: ubuntu-latest
Expand Down Expand Up @@ -139,6 +122,24 @@ jobs:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}


build-centos9-image:
name: Build Docker Image for building Ezra Bible App on CentOS 9
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/CentOS9_Dockerfile
image: toklein/ezra-centos9
tag: latest
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

build-fedora31-image:
name: Build Docker Image for building Ezra Bible App on Fedora 31
runs-on: ubuntu-latest
Expand Down
26 changes: 26 additions & 0 deletions docker/CentOS9_Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Dockerfile for CentOS 9 Build Enviroment for Ezra Bible App

FROM centos:9

RUN yum update -y
RUN yum install -y sudo
RUN yum install -y nodejs

# Install node 18.18.0
RUN npm install -g n
RUN n 18.18.0

RUN yum -y install epel-release
RUN dnf group install -y "Development Tools"

RUN yum install -y libsqlite3x-devel.x86_64 libicu-devel libcurl-devel zlib-devel subversion unzip cmake

RUN yum install -y python2
RUN ln -s /usr/bin/python2 /usr/bin/python

RUN yum install -y rpm-build
RUN npm install -g [email protected]

COPY docker/build_centos8.sh /build.sh

ENTRYPOINT ["/build.sh"]
12 changes: 12 additions & 0 deletions docker/build_centos9.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
# This script triggers all the steps necessary for building and packaging Ezra Bible App on Linux.

npm run build-linux
npm run rpm_centos
cp release/packages/*.rpm $GITHUB_WORKSPACE/ezra-bible-app_latest.rpm

if [ "$GITHUB_EVENT_NAME" = "release" ]; then
node_modules/.bin/sentry-cli --auth-token $SENTRY_TOKEN \
upload-dif -o tobias-klein -p ezra-bible-app \
node_modules/node-sword-interface/build/Release/node_sword_interface.node
fi

0 comments on commit c9d4116

Please sign in to comment.