+ dockerfile

This commit is contained in:
kirillius 2026-07-31 20:13:20 +03:00
parent b815de23c0
commit e0ffedc944
4 changed files with 59 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM alpine:latest
RUN apk add --no-cache openjdk25 git
COPY launcher.sh /launcher.sh
COPY docker/config.json /data/config.json
COPY docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /launcher.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

4
build-docker-image.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
docker build -f docker/Dockerfile -t pfsdn .
docker save -o pfsdn.tar pfsdn

42
docker/config.json Normal file
View File

@ -0,0 +1,42 @@
{
"subscribedResources": [],
"subscriptions": [
{
"name": "updates",
"source": "https://git.kirillius.ru/kirillius/protected-resources-list.git",
"type": "ru.kirillius.pf.sdn.External.API.GitSubscription",
"script": ""
},
{
"name": "local",
"source": "/data/local",
"type": "ru.kirillius.pf.sdn.External.API.LocalFilesystemSubscription",
"script": ""
}
],
"enabledComponents": [],
"httpPort": 8080,
"filteredResources": {
"description": "",
"domains": [],
"subnets": [],
"ASN": []
},
"mergeSubnets": true,
"updateSubscriptionsInterval": 6,
"mergeSubnetsWithUsage": 51,
"componentsConfig": {},
"customResources": {
"description": "",
"domains": [],
"subnets": [],
"ASN": []
},
"passwordHash": "",
"displayDebuggingInfo": true,
"cachingAS": true,
"host": "0.0.0.0",
"updateASInterval": 12,
"cacheDirectory": "/var/cache/pf-sdn",
"passwordSalt": "bf932418-10db-4e03-b5cd-23bc1bfb86e4"
}

2
docker/entrypoint.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec /launcher.sh -c /data