Compare commits
7 Commits
v0.2.0
...
renovate/d
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bf0c90601 | |||
| c90128b64f | |||
| 2dc0b04e39 | |||
| e9a8eb75fb | |||
| 158aa2af32 | |||
| 7167639e79 | |||
| e873c70093 |
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v6.0.1
|
uses: actions/checkout@v6.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@@ -42,10 +42,10 @@ jobs:
|
|||||||
# # command: snyk
|
# # command: snyk
|
||||||
# args: snyk code test --all-projects --exclude=.archive
|
# args: snyk code test --all-projects --exclude=.archive
|
||||||
|
|
||||||
- name: Snyk Vulnerability Scan
|
# - name: Snyk Vulnerability Scan
|
||||||
uses: snyk/actions/python@master
|
# uses: snyk/actions/python@master
|
||||||
continue-on-error: true # Sometimes vulns aren't immediately fixable
|
# continue-on-error: true # Sometimes vulns aren't immediately fixable
|
||||||
env:
|
# env:
|
||||||
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
# SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
|
||||||
with:
|
# with:
|
||||||
args: test --all-projects
|
# args: test --all-projects
|
||||||
|
|||||||
@@ -45,23 +45,23 @@ jobs:
|
|||||||
REPO: ${{ gitea.repository }}
|
REPO: ${{ gitea.repository }}
|
||||||
|
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v6.0.1
|
uses: actions/checkout@v6.0.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ needs.tag.outputs.tag_name }}
|
ref: ${{ needs.tag.outputs.tag_name }}
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v4
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.PACKAGES_REGISTRY_URL }}
|
registry: ${{ vars.PACKAGES_REGISTRY_URL }}
|
||||||
username: ${{ vars.ACTIONS_USERNAME }}
|
username: ${{ vars.ACTIONS_USERNAME }}
|
||||||
password: ${{ secrets.ACTIONS_TOKEN }}
|
password: ${{ secrets.ACTIONS_TOKEN }}
|
||||||
|
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v4
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ vars.GHCR_USERNAME }}
|
username: ${{ vars.GHCR_USERNAME }}
|
||||||
|
|||||||
30
Dockerfile
30
Dockerfile
@@ -1,20 +1,22 @@
|
|||||||
FROM alpine:3.23.2 as build
|
FROM alpine:3.23.3 AS webproc
|
||||||
|
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
||||||
|
ENV WEBPROCVERSION=0.4.0
|
||||||
|
ENV WEBPROCURL=https://github.com/jpillora/webproc/releases/download/v$WEBPROCVERSION/webproc_"$WEBPROCVERSION"_linux_amd64.gz
|
||||||
|
RUN apk add --no-cache curl=8.17.0-r1 && \
|
||||||
|
curl -sL $WEBPROCURL | gzip -d - > /usr/local/bin/webproc && \
|
||||||
|
chmod +x /usr/local/bin/webproc
|
||||||
|
|
||||||
|
FROM alpine:3.23.3
|
||||||
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
|
||||||
LABEL org.opencontainers.image.source="https://git.tainton.uk/repos/docker-radius"
|
LABEL org.opencontainers.image.source="https://git.tainton.uk/repos/docker-radius"
|
||||||
|
LABEL org.opencontainers.image.description="FreeRADIUS server with web administration interface"
|
||||||
FROM build as webproc
|
LABEL org.opencontainers.image.title="docker-radius"
|
||||||
ENV WEBPROCVERSION 0.4.0
|
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
|
||||||
ENV WEBPROCURL https://github.com/jpillora/webproc/releases/download/v$WEBPROCVERSION/webproc_"$WEBPROCVERSION"_linux_amd64.gz
|
RUN apk --no-cache add freeradius=3.0.27-r2
|
||||||
RUN apk add --no-cache curl
|
|
||||||
RUN curl -sL $WEBPROCURL | gzip -d - > /usr/local/bin/webproc
|
|
||||||
RUN chmod +x /usr/local/bin/webproc
|
|
||||||
|
|
||||||
FROM build as radius
|
|
||||||
RUN apk --no-cache add freeradius
|
|
||||||
COPY --from=webproc /usr/local/bin/webproc /usr/local/bin/webproc
|
COPY --from=webproc /usr/local/bin/webproc /usr/local/bin/webproc
|
||||||
ADD clients.conf /etc/raddb/clients.conf
|
COPY clients.conf /etc/raddb/clients.conf
|
||||||
ADD users /etc/raddb/users
|
COPY users /etc/raddb/users
|
||||||
ADD radiusd.conf /etc/raddb/radiusd.conf
|
COPY radiusd.conf /etc/raddb/radiusd.conf
|
||||||
RUN chmod -R o-w /etc/raddb/
|
RUN chmod -R o-w /etc/raddb/
|
||||||
ENTRYPOINT ["webproc","-o","restart","-c","/etc/raddb/users","-c", "/etc/raddb/clients.conf", "-c", "/etc/raddb/radiusd.conf","--","radiusd","-f","-l","stdout"]
|
ENTRYPOINT ["webproc","-o","restart","-c","/etc/raddb/users","-c", "/etc/raddb/clients.conf", "-c", "/etc/raddb/radiusd.conf","--","radiusd","-f","-l","stdout"]
|
||||||
EXPOSE 1812/udp 1813/udp 8080/tcp
|
EXPOSE 1812/udp 1813/udp 8080/tcp
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
"semanticCommits": "enabled",
|
"semanticCommits": "enabled",
|
||||||
"semanticCommitScope": "deps",
|
"semanticCommitScope": "deps",
|
||||||
"semanticCommitType": "feat",
|
"semanticCommitType": "feat",
|
||||||
|
"osvVulnerabilityAlerts": true,
|
||||||
|
"dependencyDashboardOSVVulnerabilitySummary": "all",
|
||||||
"vulnerabilityAlerts": {
|
"vulnerabilityAlerts": {
|
||||||
"commitMessagePrefix": "[SECURITY] ",
|
"commitMessagePrefix": "[SECURITY] ",
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
@@ -19,5 +21,15 @@
|
|||||||
},
|
},
|
||||||
"lockFileMaintenance": {
|
"lockFileMaintenance": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
},
|
||||||
|
"packageRules": [
|
||||||
|
{
|
||||||
|
"matchDepTypes": ["devDependencies"],
|
||||||
|
"automerge": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"matchUpdateTypes": ["patch"],
|
||||||
|
"automerge": true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user