feat: update build
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ARG RADIUS_TAG="v3.2.x"
|
||||
|
||||
ENV RADIUS_REPO="https://github.com/FreeRADIUS/freeradius-server.git"
|
||||
ENV RADIUS_TAG=${RADIUS_TAG}
|
||||
ENV RLM_RAW_REPO="https://github.com/jar3b/rlm_raw.git"
|
||||
ENV RLM_RAW_TAG="master"
|
||||
#
|
||||
# Install build tools
|
||||
#
|
||||
@@ -15,6 +9,16 @@ COPY local-noble.list /etc/apt/sources.list.d/ubuntu.sources
|
||||
|
||||
RUN apt-get update && apt-get install -y devscripts equivs git quilt gcc
|
||||
|
||||
#
|
||||
# Setup build envs
|
||||
ARG RADIUS_TAG="release_3_2_5"
|
||||
ARG RLM_RAW_BRANCH="v3.2.4"
|
||||
|
||||
ENV RADIUS_REPO="https://github.com/FreeRADIUS/freeradius-server.git"
|
||||
ENV RADIUS_TAG=${RADIUS_TAG}
|
||||
ENV RLM_RAW_REPO="https://github.com/jar3b/rlm_raw.git"
|
||||
ENV RLM_RAW_BRANCH=${RLM_RAW_BRANCH}
|
||||
|
||||
#
|
||||
# Create build directory
|
||||
#
|
||||
@@ -22,7 +26,7 @@ RUN mkdir -p /usr/local/src/repositories
|
||||
WORKDIR /usr/local/src/repositories
|
||||
|
||||
RUN git clone --depth 1 --single-branch --branch ${RADIUS_TAG} ${RADIUS_REPO}
|
||||
RUN git clone --depth 1 --single-branch --branch ${RLM_RAW_TAG} ${RLM_RAW_REPO}
|
||||
RUN git clone --depth 1 --single-branch --branch ${RLM_RAW_BRANCH} ${RLM_RAW_REPO}
|
||||
RUN mv rlm_raw/rlm_raw freeradius-server/src/modules
|
||||
|
||||
WORKDIR freeradius-server
|
||||
@@ -30,7 +34,7 @@ WORKDIR freeradius-server
|
||||
#
|
||||
# Install build dependencies
|
||||
#
|
||||
RUN git checkout ${RADIUS_TAG}; \
|
||||
RUN git checkout ${RADIUS_TAG}; cat VERSION; \
|
||||
if [ -e ./debian/control.in ]; then \
|
||||
debian/rules debian/control; \
|
||||
fi; \
|
||||
|
||||
@@ -5,5 +5,5 @@ DEB_REPO=${DEB_REPO:-"https://nexus.connectone.pro/repository/radius/"}
|
||||
|
||||
for file in *.deb
|
||||
do
|
||||
curl -u "${DEB_USER}:${DEB_PASS}" -H "Content-Type: multipart/form-data" --data-binary "@./$file" "${DEB_REPO}"
|
||||
curl -u "${DEB_USER}:${DEB_PASS}" -H "Content-Type: multipart/form-data" --data-binary "@./$file" "${DEB_REPO}"
|
||||
done; # file
|
||||
Reference in New Issue
Block a user