-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change packaging order, add debian, add readme file
- Loading branch information
Showing
4 changed files
with
50 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
ARG from=debian:bullseye | ||
ARG KNK_REGISTRY_URL | ||
ARG IMAGE_TAG | ||
FROM ${from} as build | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
# | ||
# Install build tools | ||
# | ||
RUN apt-get -qq update | ||
RUN apt-get -qq install -y devscripts equivs git quilt gcc libcollectdclient-dev | ||
# | ||
# Create build directory | ||
# | ||
RUN mkdir -p /usr/local/src/repositories | ||
WORKDIR /usr/local/src/repositories | ||
# | ||
# Shallow clone the FreeRADIUS source | ||
# | ||
ARG source=https://github.com/inverse-inc/freeradius-server.git | ||
ARG release=feature/PacketFence_3.2 | ||
RUN git clone -qq --depth 1 --single-branch --branch ${release} ${source} | ||
WORKDIR freeradius-server | ||
# | ||
# Install build dependencies | ||
# | ||
RUN git checkout ${release}; \ | ||
if [ -e ./debian/control.in ]; then \ | ||
debian/rules debian/control; \ | ||
fi; \ | ||
echo 'y' | mk-build-deps -irt'apt-get -yV' debian/control | ||
# | ||
# Build the server | ||
# | ||
# RUN make -j2 deb >/dev/null || make -j2 deb | ||
RUN make -j2 deb | ||
# | ||
# Clean environment and run the server | ||
# | ||
FROM ${KNK_REGISTRY_URL}/pfdebian:${IMAGE_TAG} | ||
# Copy debian packages | ||
COPY --from=build /usr/local/src/repositories/*.deb /tmp/ | ||
RUN apt-get -qq -y remove freeradius-common |
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,4 @@ | ||
## How to use: | ||
Build the image | ||
Run/Jump the container | ||
scp all .deb file from the container /tmp |
File renamed without changes.
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,4 @@ | ||
## How to use: | ||
Build the image | ||
Run/Jump the container | ||
scp all .rpm file from the container /tmp |