-
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.
Update build, add Ubuntu 20.10, add SOVERSION
- Loading branch information
Showing
16 changed files
with
133 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
* Wed Jun 25 2020 Matiss Treinis <[email protected]> - 1.1.1 | ||
- Update build configuration, define SOVERSION. No functional changes. | ||
|
||
* Wed Mar 11 2020 Matiss Treinis <[email protected]> - 1.1.0 | ||
- Logging timer no longer reports nonsense values (#1). | ||
- Environment name is now available from within scripts (#2). | ||
|
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker rmi kafe/centos:7-build | ||
docker rmi kafe/centos:8-build | ||
docker rmi kafe/debian:9-build | ||
docker rmi kafe/debian:10-build | ||
docker rmi kafe/debian:11-build | ||
docker rmi kafe/ubuntu:1804-build | ||
docker rmi kafe/ubuntu:1910-build | ||
docker rmi kafe/ubuntu:2004-build | ||
docker rmi kafe/ubuntu:2010-build | ||
docker rmi kafe/fedora:31-build | ||
docker rmi kafe/fedora:32-build | ||
docker rmi kafe/fedora:33-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
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
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 ubuntu:20.10 | ||
|
||
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-10 \ | ||
liblua5.3-dev \ | ||
libcurl4-gnutls-dev \ | ||
libarchive-dev \ | ||
libssh-dev \ | ||
libgit2-dev | ||
|
||
ENV CC /usr/bin/clang-10 | ||
ENV CXX /usr/bin/clang++-10 | ||
|
||
CMD /kafe/dist/ubuntu/2010/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/2010 2> /dev/null | ||
|
||
# Create build workspace | ||
mkdir -p /kafe/build/ubuntu/2010/ | ||
|
||
# Warp to build workspace | ||
cd /kafe/build/ubuntu/2010/ | ||
|
||
# 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