Compare commits
26 Commits
25a8da26de
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ac4fc31a5 | |||
| 749a2a7d12 | |||
| bf7e62ee1d | |||
| b127b9d685 | |||
| 68bd782c14 | |||
| fe8f8748df | |||
| 46e743b84a | |||
| 075c7170cd | |||
| 154db99ee3 | |||
| 8c5b879333 | |||
| 77892d42eb | |||
| 3d3afa337c | |||
| 849190dc98 | |||
| 9cced3f65b | |||
| 11db3c60e3 | |||
| 6e6cee989e | |||
| 478aa7f9c9 | |||
| f65f0ff2df | |||
| 6b825464a3 | |||
| b5eb5d495d | |||
| 05c9a5fc2a | |||
| 7073aaf332 | |||
| e8cd8f6239 | |||
| 41b023d43e | |||
| aff828d609 | |||
| 7041a58df9 |
22
.drone.star
Normal file
22
.drone.star
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
def main(ctx):
|
||||||
|
return {
|
||||||
|
"kind": "pipeline",
|
||||||
|
"type": "docker",
|
||||||
|
"name": "nomad-nummer5",
|
||||||
|
"platform":
|
||||||
|
{
|
||||||
|
"os": "linux",
|
||||||
|
"arch": "arm64"
|
||||||
|
}
|
||||||
|
,
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"name": "git log",
|
||||||
|
"image": "cr.wks/debian-stable",
|
||||||
|
"commands": [
|
||||||
|
"git diff-tree --no-commit-id --name-only HEAD -r"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
6
.project
6
.project
@@ -5,7 +5,13 @@
|
|||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
<buildSpec>
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.python.pydev.PyDevBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.python.pydev.pythonNature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
</projectDescription>
|
</projectDescription>
|
||||||
|
|||||||
5
.pydevproject
Normal file
5
.pydevproject
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<?eclipse-pydev version="1.0"?><pydev_project>
|
||||||
|
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
|
||||||
|
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
|
||||||
|
</pydev_project>
|
||||||
@@ -10,7 +10,7 @@ capability {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context {
|
context {
|
||||||
server = "ebin02.wks"
|
server = "ebin01.wks"
|
||||||
share = "/data/raid1-ssd/app-data/apt-cacher-ng"
|
share = "/data/raid1-ssd/app-data/apt-cacher-ng"
|
||||||
mountPermissions = "0"
|
mountPermissions = "0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ job "dmarc" {
|
|||||||
REPORT_DB_TYPE = "pgsql"
|
REPORT_DB_TYPE = "pgsql"
|
||||||
REPORT_DB_HOST = "postgres.service.nr5"
|
REPORT_DB_HOST = "postgres.service.nr5"
|
||||||
REPORT_DB_PORT = "5432"
|
REPORT_DB_PORT = "5432"
|
||||||
REPORT_DB_NAME = "dmarc-srg"
|
REPORT_DB_NAME = "dmarc"
|
||||||
REPORT_DB_USER = "dmarc"
|
REPORT_DB_USER = "dmarc"
|
||||||
REPORT_DB_PASS = "4XSS4gKpheSBoMsIs"
|
REPORT_DB_PASS = "4XSS4gKpheSBoMsIs"
|
||||||
PARSER_IMAP_PORT = "143"
|
PARSER_IMAP_PORT = "143"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ job "docker-registry-ui" {
|
|||||||
"nummer5",
|
"nummer5",
|
||||||
]
|
]
|
||||||
type = "service"
|
type = "service"
|
||||||
node_pool = "apps"
|
node_pool = "sys"
|
||||||
|
|
||||||
group "apps" {
|
group "apps" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ job "drone-runner" {
|
|||||||
"nummer5",
|
"nummer5",
|
||||||
]
|
]
|
||||||
type = "service"
|
type = "service"
|
||||||
node_pool = "apps"
|
node_pool = "sys"
|
||||||
|
|
||||||
group "apps" {
|
group "apps" {
|
||||||
count = 1
|
count = 1
|
||||||
@@ -77,8 +77,8 @@ job "drone-runner" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 300
|
cpu = 2000
|
||||||
memory = 500
|
memory = 1024
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ job "drone" {
|
|||||||
DRONE_SERVER_HOST = "drone.service.nr5"
|
DRONE_SERVER_HOST = "drone.service.nr5"
|
||||||
DRONE_SERVER_PROTO = "http"
|
DRONE_SERVER_PROTO = "http"
|
||||||
DRONE_JSONNET_ENABLED = true
|
DRONE_JSONNET_ENABLED = true
|
||||||
|
DRONE_STARLARK_ENABLED = true
|
||||||
DRONE_LOGS_DEBUG = true
|
DRONE_LOGS_DEBUG = true
|
||||||
DRONE_LOGS_TRACE = true
|
DRONE_LOGS_TRACE = true
|
||||||
DRONE_USER_CREATE = "username:do,admin:true"
|
DRONE_USER_CREATE = "username:do,admin:true"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ capability {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context {
|
context {
|
||||||
server = "ebin02.wks"
|
server = "ebin01.wks"
|
||||||
share = "/data/raid1-ssd/app-data/drone-data"
|
share = "/data/raid1-ssd/app-data/drone-data"
|
||||||
mountPermissions = "0"
|
mountPermissions = "0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ job "gitea" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
restart {
|
restart {
|
||||||
|
interval = "10m"
|
||||||
attempts = 5
|
attempts = 5
|
||||||
delay = "30s"
|
delay = "30s"
|
||||||
}
|
}
|
||||||
@@ -89,7 +90,7 @@ job "gitea" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 200
|
cpu = 500
|
||||||
memory = 512
|
memory = 512
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ capability {
|
|||||||
}
|
}
|
||||||
|
|
||||||
context {
|
context {
|
||||||
server = "ebin02.wks"
|
server = "ebin01.wks"
|
||||||
share = "/data/raid1-ssd/app-data/gitea-data"
|
share = "/data/raid1-ssd/app-data/gitea-data"
|
||||||
mountPermissions = "0"
|
mountPermissions = "0"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ job "homer" {
|
|||||||
driver = "podman"
|
driver = "podman"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "b4bz/homer:latest"
|
image = "docker.io/b4bz/homer:latest"
|
||||||
ports = ["http"]
|
ports = ["http"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
job "openwrt" {
|
job "openwrt" {
|
||||||
datacenters = ["nummer5"]
|
datacenters = ["nummer5"]
|
||||||
node_pool = "apps"
|
node_pool = "sys"
|
||||||
priority = 10
|
priority = 10
|
||||||
|
|
||||||
group "apps" {
|
group "apps" {
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ job "postgres" {
|
|||||||
node_pool = "sys"
|
node_pool = "sys"
|
||||||
priority = 80
|
priority = 80
|
||||||
|
|
||||||
|
#constraint {
|
||||||
|
# attribute = "${attr.unique.hostname}"
|
||||||
|
# value = "pine01"
|
||||||
|
#}
|
||||||
|
|
||||||
group "service" {
|
group "service" {
|
||||||
count = 1
|
count = 1
|
||||||
volume "postgres-data" {
|
volume "postgres-data" {
|
||||||
@@ -15,7 +20,7 @@ job "postgres" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "host"
|
#mode = "host"
|
||||||
port "postgres"{
|
port "postgres"{
|
||||||
static = 5432
|
static = 5432
|
||||||
}
|
}
|
||||||
@@ -23,10 +28,10 @@ job "postgres" {
|
|||||||
service {
|
service {
|
||||||
name = "postgres"
|
name = "postgres"
|
||||||
port = "postgres"
|
port = "postgres"
|
||||||
#tags = [
|
tags = [
|
||||||
# "traefik.enable=true",
|
"traefik.enable=true",
|
||||||
# "traefik.tcp.routers.postgres.rule=Host(`postgres.service.nr5`)",
|
"traefik.tcp.routers.postgres.rule=Host(`postgres.service.nr5`)",
|
||||||
#]
|
]
|
||||||
}
|
}
|
||||||
task "postgres" {
|
task "postgres" {
|
||||||
driver = "podman"
|
driver = "podman"
|
||||||
@@ -49,8 +54,8 @@ job "postgres" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 1000
|
cpu = 3500
|
||||||
memory = 512
|
memory = 1500
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
hosts="pine01.wks pine02.wks pine03.wks pine04.wks pine05.wks adm01.wks ebin01.wks ebin02.wks"
|
hosts="adm01.wks pine01.wks pine02.wks pine03.wks pine04.wks pine05.wks ebin01.wks ebin02.wks drucki.wks switch_cloud.wks drucki_switch.wks"
|
||||||
domain="wks"
|
domain="wks"
|
||||||
|
|||||||
Reference in New Issue
Block a user