Update registry references and node selector in configuration files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-03-05 17:30:18 +01:00
parent 59db7bc9e8
commit b4f570ee8f
4 changed files with 59 additions and 53 deletions

View File

@@ -3,7 +3,7 @@ type: kubernetes
name: default
node_selector:
physical-node: dev2
physical-node: dev1
trigger:
branch:

View File

@@ -8,5 +8,5 @@ Once crontab.txt changed it's affected after 1 minute.
## Usage:
docker run --volume <host-path-to-crontab.txt>:/crontab.txt registry.format.hu/cron
docker run --volume <host-path-to-crontab.txt>:/crontab.txt safebox/cron

104
cron.json
View File

@@ -1,51 +1,57 @@
{
"main": {
"SERVICE_NAME": "cron",
"DOMAIN": "null"
},
"containers": [
{
"IMAGE": "registry.format.hu/cron",
"NAME": "cron",
"UPDATE": "true",
"MEMORY": "64M",
"NETWORK": "host",
"SCALE": "0",
"VOLUMES": [
{
"SOURCE": "/var/run/docker.sock",
"DEST": "/var/run/docker.sock",
"TYPE": "rw"
},
{
"SOURCE": "/run/",
"DEST": "/run/",
"TYPE": "rw"
},
{
"SOURCE": "/etc/user/data/cron",
"DEST": "/opt/cron",
"TYPE": "ro"
},
{
"SOURCE": "/etc/user/config/services",
"DEST": "/services",
"TYPE": "ro"
}
],
"PORTS": [ ],
"READYNESS": [
{"tcp": ""},
{"HTTP": ""},
{"EXEC": "/ready.sh"}
],
"ENVS": [ ],
"EXTRA": "--privileged --restart unless-stopped",
"DEPEND": "null",
"START_ON_BOOT": "false",
"CMD": "null",
"PRE_START": "null",
"POST_START": "null"
}
]
"main": {
"SERVICE_NAME": "cron",
"DOMAIN": "null"
},
"containers": [
{
"IMAGE": "safebox/cron",
"NAME": "cron",
"UPDATE": "true",
"MEMORY": "64M",
"NETWORK": "host",
"SCALE": "0",
"VOLUMES": [
{
"SOURCE": "/var/run/docker.sock",
"DEST": "/var/run/docker.sock",
"TYPE": "rw"
},
{
"SOURCE": "/run/",
"DEST": "/run/",
"TYPE": "rw"
},
{
"SOURCE": "/etc/user/data/cron",
"DEST": "/opt/cron",
"TYPE": "ro"
},
{
"SOURCE": "/etc/user/config/services",
"DEST": "/services",
"TYPE": "ro"
}
],
"PORTS": [],
"READYNESS": [
{
"tcp": ""
},
{
"HTTP": ""
},
{
"EXEC": "/ready.sh"
}
],
"ENVS": [],
"EXTRA": "--privileged --restart unless-stopped",
"DEPEND": "null",
"START_ON_BOOT": "false",
"CMD": "null",
"PRE_START": "null",
"POST_START": "null"
}
]
}

View File

@@ -1,6 +1,6 @@
#!/bin/sh
SERVICE_FILE=$1
DOCKER_REGISTRY_URL=${DOCKER_REGISTRY_URL:-registry.format.hu}
DOCKER_REGISTRY_URL=${DOCKER_REGISTRY_URL:-safebox}
SETUP_VERSION=${SETUP_VERSION:-latest}
if [[ -n "$DOCKER_REGISTRY_URL" && "$DOCKER_REGISTRY_URL" != "null" ]]; then