-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from himmelblau-idm/dmulder/packaging
Packaging additions
- Loading branch information
Showing
8 changed files
with
491 additions
and
13 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,40 @@ | ||
# Use the official Fedora 41 image as the base | ||
FROM fedora:41 | ||
|
||
# Update the package list and install essential build dependencies | ||
RUN dnf -y update && \ | ||
dnf -y install \ | ||
wget \ | ||
git \ | ||
gcc \ | ||
gcc-c++ \ | ||
make \ | ||
openssl-devel \ | ||
dbus-devel \ | ||
libtool \ | ||
pkg-config \ | ||
autoconf \ | ||
pam-devel \ | ||
systemd-devel \ | ||
krb5-devel \ | ||
pcre2-devel \ | ||
clang \ | ||
gettext \ | ||
sqlite-devel \ | ||
utf8proc-devel \ | ||
cargo && \ | ||
dnf clean all | ||
|
||
# Set environment for Rust | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
VOLUME /himmelblau | ||
|
||
# Change directory to the repository | ||
WORKDIR /himmelblau | ||
|
||
# Install the cargo-deb tool | ||
RUN cargo install cargo-generate-rpm | ||
|
||
# Build the project and create the RPM package | ||
CMD cargo clean && cargo build --release && strip -s target/release/*.so && strip -s target/release/aad-tool && strip -s target/release/himmelblaud && strip -s target/release/himmelblaud_tasks && strip -s target/release/broker && cargo generate-rpm -p src/daemon && cargo generate-rpm -p src/nss && cargo generate-rpm -p src/pam && cargo generate-rpm -p src/sshd-config |
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,40 @@ | ||
# Use the official Fedora Rawhide image as the base | ||
FROM fedora:rawhide | ||
|
||
# Update the package list and install essential build dependencies | ||
RUN dnf -y update && \ | ||
dnf -y install \ | ||
wget \ | ||
git \ | ||
gcc \ | ||
gcc-c++ \ | ||
make \ | ||
openssl-devel \ | ||
dbus-devel \ | ||
libtool \ | ||
pkg-config \ | ||
autoconf \ | ||
pam-devel \ | ||
systemd-devel \ | ||
krb5-devel \ | ||
pcre2-devel \ | ||
clang \ | ||
gettext \ | ||
sqlite-devel \ | ||
utf8proc-devel \ | ||
cargo && \ | ||
dnf clean all | ||
|
||
# Set environment for Rust | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
VOLUME /himmelblau | ||
|
||
# Change directory to the repository | ||
WORKDIR /himmelblau | ||
|
||
# Install the cargo-deb tool | ||
RUN cargo install cargo-generate-rpm | ||
|
||
# Build the project and create the RPM package | ||
CMD cargo clean && cargo build --release && strip -s target/release/*.so && strip -s target/release/aad-tool && strip -s target/release/himmelblaud && strip -s target/release/himmelblaud_tasks && strip -s target/release/broker && cargo generate-rpm -p src/daemon && cargo generate-rpm -p src/nss && cargo generate-rpm -p src/pam && cargo generate-rpm -p src/sshd-config |
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,41 @@ | ||
# Use the official openSUSE Leap 15.6 image as the base | ||
FROM opensuse/leap:15.6 | ||
|
||
# Update the package list and install essential build dependencies | ||
RUN zypper --non-interactive refresh && zypper --non-interactive update && \ | ||
zypper --non-interactive install --no-recommends \ | ||
wget \ | ||
git \ | ||
gcc \ | ||
gcc-c++ \ | ||
make \ | ||
libopenssl-3-devel \ | ||
dbus-1-devel \ | ||
libtool \ | ||
pkg-config \ | ||
autoconf \ | ||
pam-devel \ | ||
systemd-devel \ | ||
libcap-progs \ | ||
krb5-devel \ | ||
pcre2-devel \ | ||
clang \ | ||
gettext-tools \ | ||
sqlite3-devel \ | ||
utf8proc-devel \ | ||
cargo \ | ||
&& zypper clean --all | ||
|
||
# Set environment for Rust | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
VOLUME /himmelblau | ||
|
||
# Change directory to the repository | ||
WORKDIR /himmelblau | ||
|
||
# Install the cargo-deb tool | ||
RUN cargo install cargo-generate-rpm | ||
|
||
# Build the project and create the RPM package | ||
CMD cargo clean && cargo build --release && strip -s target/release/*.so && strip -s target/release/aad-tool && strip -s target/release/himmelblaud && strip -s target/release/himmelblaud_tasks && strip -s target/release/broker && cargo generate-rpm -p src/daemon && cargo generate-rpm -p src/nss && cargo generate-rpm -p src/pam && cargo generate-rpm -p src/sshd-config |
Oops, something went wrong.