-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration for Big Sur, Ubuntu 21.04, Fedora 34 build
- Loading branch information
Showing
8 changed files
with
191 additions
and
27 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
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,19 @@ | ||
FROM fedora:34 | ||
|
||
RUN yum -y update && \ | ||
yum -y install \ | ||
make \ | ||
rpm-build \ | ||
wget \ | ||
clang \ | ||
cmake \ | ||
lua-devel \ | ||
libcurl-devel \ | ||
libarchive-devel \ | ||
libssh-devel \ | ||
libgit2-devel | ||
|
||
ENV CC /usr/bin/clang-11 | ||
ENV CXX /usr/bin/clang++-11 | ||
|
||
CMD /kafe/dist/fedora/34/build-dist.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,44 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Clean existing build workspace | ||
rm -rf /kafe/build/fedora/34 2> /dev/null | ||
|
||
# Create build workspace | ||
mkdir -p /kafe/build/fedora/34/ | ||
|
||
# Warp to build workspace | ||
cd /kafe/build/fedora/34/ | ||
|
||
# Prepare build | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCPACK_GENERATOR=RPM ../../../ | ||
|
||
# Compile project | ||
make | ||
|
||
# Package project | ||
cpack | ||
|
||
# Test install | ||
rpm -i ./kafe-cli*.rpm ./libkafe*.rpm | ||
env kafe about | ||
|
||
# Fix permissions | ||
cd / | ||
|
||
WHO=/kafe/ | ||
|
||
stat $WHO > /dev/null || (echo You must mount a file to "$WHO" in order to properly assume user && exit 1) | ||
|
||
USERID=$(stat -c %u $WHO) | ||
GROUPID=$(stat -c %g $WHO) | ||
|
||
if [ "$USERID" -eq "0" ]; then | ||
USERID=1000 | ||
fi | ||
|
||
if [ "$GROUPID" -eq "0" ]; then | ||
GROUPID=1000 | ||
fi | ||
|
||
chown -Rf $USERID:$GROUPID /kafe/build |
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,19 @@ | ||
FROM ubuntu:21.04 | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
wget \ | ||
cmake \ | ||
build-essential \ | ||
clang-11 \ | ||
liblua5.3-dev \ | ||
libcurl4-gnutls-dev \ | ||
libarchive-dev \ | ||
libssh-dev \ | ||
libgit2-dev | ||
|
||
ENV CC /usr/bin/clang-11 | ||
ENV CXX /usr/bin/clang++-11 | ||
|
||
CMD /kafe/dist/ubuntu/2104/build-dist.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,44 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Clean existing build workspace | ||
rm -rf /kafe/build/ubuntu/2104 2> /dev/null | ||
|
||
# Create build workspace | ||
mkdir -p /kafe/build/ubuntu/2104/ | ||
|
||
# Warp to build workspace | ||
cd /kafe/build/ubuntu/2104/ | ||
|
||
# Prepare build | ||
cmake -DCMAKE_BUILD_TYPE=Release -DCPACK_GENERATOR=DEB ../../../ | ||
|
||
# Compile project | ||
make | ||
|
||
# Package project | ||
cpack | ||
|
||
# Test install | ||
apt-get install -y ./kafe-cli*.deb ./libkafe*.deb | ||
env kafe about | ||
|
||
# Fix permissions | ||
cd / | ||
|
||
WHO=/kafe/ | ||
|
||
stat $WHO > /dev/null || (echo You must mount a file to "$WHO" in order to properly assume user && exit 1) | ||
|
||
USERID=$(stat -c %u $WHO) | ||
GROUPID=$(stat -c %g $WHO) | ||
|
||
if [ "$USERID" -eq "0" ]; then | ||
USERID=1000 | ||
fi | ||
|
||
if [ "$GROUPID" -eq "0" ]; then | ||
GROUPID=1000 | ||
fi | ||
|
||
chown -Rf $USERID:$GROUPID /kafe/build |
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