Skip to content

Commit

Permalink
Change packaging order, add debian, add readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
JeGoi committed Aug 2, 2023
1 parent 5bfcc6a commit e57699d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
42 changes: 42 additions & 0 deletions containers/packaging/deb11/FreeRadius/Dockerfile
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
4 changes: 4 additions & 0 deletions containers/packaging/deb11/FreeRadius/README.md
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
4 changes: 4 additions & 0 deletions containers/packaging/el8/FreeRadius/README.md
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

0 comments on commit e57699d

Please sign in to comment.