-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc8ac43
commit c9d4116
Showing
3 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |