-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
3 changed files
with
87 additions
and
4 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
.github/actions/openziti-tunnel-build-action/redhat-9/Dockerfile
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,34 @@ | ||
FROM quay.io/rockylinux/rockylinux:9 | ||
|
||
LABEL org.opencontainers.image.authors="[email protected],[email protected]" | ||
|
||
USER root | ||
WORKDIR /root/ | ||
|
||
ENV PATH="/usr/local/:${PATH}" | ||
ENV GIT_DISCOVERY_ACROSS_FILESYSTEM=1 | ||
ENV TZ=UTC | ||
|
||
RUN dnf install -y \ | ||
"@Development Tools" \ | ||
cmake \ | ||
dnf-plugins-core \ | ||
iproute \ | ||
python3 \ | ||
systemd-devel \ | ||
zlib-devel \ | ||
systemd-rpm-macros \ | ||
cmake-rpm-macros \ | ||
openssl-devel \ | ||
libatomic \ | ||
&& dnf config-manager --set-enabled crb \ | ||
&& dnf install -y \ | ||
doxygen \ | ||
graphviz \ | ||
git \ | ||
&& dnf clean all | ||
|
||
|
||
WORKDIR /github/workspace | ||
COPY ./entrypoint.sh /root/ | ||
ENTRYPOINT [ "/root/entrypoint.sh" ] |
44 changes: 44 additions & 0 deletions
44
.github/actions/openziti-tunnel-build-action/redhat-9/entrypoint.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 | ||
# | ||
# RedHat 9 | ||
# | ||
|
||
set -euo pipefail | ||
|
||
# these commands must be in the entrypoint so they are run after workspace is mounted on Docker workdir | ||
echo "INFO: GIT_DISCOVERY_ACROSS_FILESYSTEM=${GIT_DISCOVERY_ACROSS_FILESYSTEM}" | ||
echo "INFO: WORKDIR=${PWD}" | ||
echo "INFO: $(git --version)" | ||
|
||
# workspace dir for each build env is added to "safe" dirs in global config e.g. | ||
# ~/.gitconfig so both runner and builder containers trust these dirs | ||
# owned by different UIDs from that of Git's EUID. This is made necessary | ||
# by newly-enforced directory boundaries in Git v2.35.2 | ||
# ref: https://lore.kernel.org/git/[email protected]/ | ||
for SAFE in \ | ||
/github/workspace \ | ||
/__w/ziti-tunnel-sdk-c/ziti-tunnel-sdk-c \ | ||
/mnt ; do | ||
git config --global --add safe.directory ${SAFE} | ||
done | ||
|
||
cmake -E make_directory ./build | ||
( | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_TOOLCHAIN_FILE=./toolchains/default.cmake \ | ||
-DBUILD_DIST_PACKAGES=ON \ | ||
-DUSE_OPENSSL=ON \ | ||
-S . \ | ||
-B ./build | ||
cmake \ | ||
--build ./build \ | ||
--target package \ | ||
--verbose | ||
) | ||
|
||
if (( ${#} )); then | ||
echo "INFO: running ziti-edge-tunnel" | ||
set -x | ||
./build/programs/ziti-edge-tunnel/ziti-edge-tunnel ${@} | ||
fi |
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