+ dockerfile
This commit is contained in:
parent
b815de23c0
commit
e0ffedc944
|
|
@ -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"]
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker build -f docker/Dockerfile -t pfsdn .
|
||||
docker save -o pfsdn.tar pfsdn
|
||||
|
|
@ -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"
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec /launcher.sh -c /data
|
||||
Loading…
Reference in New Issue