Skip to content

Commit

Permalink
Merge pull request #118 from pvarki/server_53
Browse files Browse the repository at this point in the history
Update takserver to 5.3-24
  • Loading branch information
rambo authored Feb 17, 2025
2 parents 1ce1848 + 724f426 commit aa07c0a
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.6.0
current_version = 1.7.0
commit = False
tag = False

Expand Down
3 changes: 2 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# `docker-compose -p rmdev -f docker-compose-local.yml -f docker-compose-dev.yml up -d`

x-nginxbuilds: &nginxbuildinfo
image: pvarki/nginx:1.25${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:1.27${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -39,6 +39,7 @@ services:
SERVER_DOMAIN: ${SERVER_DOMAIN:-localmaeher.dev.pvarki.fi}
API_PORT: ${NGINX_HTTPS_PORT:-4439}
VITE_ASSET_SET: ${VITE_ASSET_SET:-neutral}
RELEASE_TAG: "localdev"
networks:
- intranet
ports: # REMINDER Do not expose these in production
Expand Down
32 changes: 21 additions & 11 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ x-keycloakinit_users_env: &keycloakinit_users_env
KEYCLOAK_PASSWORD: *kcadminpass # pragma: allowlist secret

x-takbuilds: &takbuildinfo
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.2-RELEASE-30}${DOCKER_TAG_EXTRA:-}"
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.3-RELEASE-24}${DOCKER_TAG_EXTRA:-}"
build:
context: ./takserver
dockerfile: Dockerfile
args:
TAK_RELEASE: ${TAK_RELEASE:-5.2-RELEASE-30}
TAK_RELEASE: ${TAK_RELEASE:-5.3-RELEASE-24}

x-nginxbuilds: &nginxbuildinfo
image: pvarki/nginx:1.25${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:1.27${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -120,10 +120,13 @@ services:
target: production
environment:
MW_DOMAIN: *serverdomain
MW_PRODUCTS: "tak,kc,fake"
MW_PRODUCTS: "tak,kc,fake,bl"
MW_RASENMAEHER__API_PORT: *apiport
MW_RASENMAEHER__USER_PORT: *apiport
MW_FAKE__API_PORT: *productport
MW_FAKE__USER_PORT: *productport
MW_TAK__API_PORT: *takapiport
MW_TAK__USER_PORT: 8443
CAROOT: "/data/persistent/mkcert"
MW_LE_EMAIL: "notusedwithmkcert@example.com"
MW_LE_TEST: "true"
Expand Down Expand Up @@ -399,6 +402,10 @@ services:
RM_KC_USERNAME: *kcadminuser
RM_KC_PASSWORD: *kcadminpass # pragma: allowlist secret
RM_KC_REALM: *kc_realm
UVICORN_LOG_LEVEL: "debug"
RM_LOG_LEVEL: "DEBUG"
RM_LOG_LEVEL_INT: "10"
RELEASE_TAG: "local"
networks:
- apinet
- kcnet
Expand Down Expand Up @@ -441,6 +448,7 @@ services:
target: production
args:
VITE_ASSET_SET: ${VITE_ASSET_SET:-neutral}
RELEASE_TAG: "local"
volumes:
- rmui_files:/deliver

Expand Down Expand Up @@ -611,7 +619,7 @@ services:
- taknet
- dbnet
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- kraftwerk_shared_tak:/pvarki
- tak_data:/opt/tak/data
- le_certs:/le_certs
Expand All @@ -626,7 +634,7 @@ services:
takinit:
condition: service_completed_successfully
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand Down Expand Up @@ -663,7 +671,7 @@ services:
takconfig:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -687,7 +695,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -711,7 +719,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -734,7 +742,7 @@ services:
takapi:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -748,7 +756,7 @@ services:
restart: unless-stopped

takrmapi:
image: pvarki/takrmapi:local${DOCKER_TAG_EXTRA:-}-tak${TAK_RELEASE:-5.2-RELEASE-30}
image: pvarki/takrmapi:local${DOCKER_TAG_EXTRA:-}-tak${TAK_RELEASE:-5.3-RELEASE-24}
build:
context: ./takintegration
dockerfile: Dockerfile
Expand All @@ -758,6 +766,8 @@ services:
network_mode: "service:takconfig"
environment:
LOG_CONSOLE_FORMATTER: "local"
UVICORN_LOG_LEVEL: "debug"
TI_LOG_LEVEL: "10"
volumes:
- ca_public:/ca_public
- le_certs:/le_certs
Expand Down
48 changes: 29 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ x-keycloakinit_users_env: &keycloakinit_users_env
KEYCLOAK_PASSWORD: *kcadminpass # pragma: allowlist secret

x-takbuilds: &takbuildinfo
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.2-RELEASE-30}-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}"
image: &takimage "pvarki/takserver:${TAK_RELEASE:-5.3-RELEASE-24}-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}"
build:
context: ./takserver
dockerfile: Dockerfile
args:
TAK_RELEASE: ${TAK_RELEASE:-5.2-RELEASE-30}
TAK_RELEASE: ${TAK_RELEASE:-5.3-RELEASE-24}

x-nginxbuilds: &nginxbuildinfo
image: pvarki/nginx:1.25-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:1.27-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -115,20 +115,24 @@ x-takserver_env: &takserver_env

services:
miniwerk:
image: pvarki/miniwerk:1.1.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/miniwerk:1.3.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./miniwerk
dockerfile: Dockerfile
target: production
environment:
MW_DOMAIN: *serverdomain
MW_RASENMAEHER__API_PORT: *apiport
MW_RASENMAEHER__USER_PORT: *apiport
MW_FAKE__API_PORT: *productport
MW_FAKE__USER_PORT: *productport
MW_TAK__API_PORT: *takapiport
MW_TAK__USER_PORT: 8443
MW_LE_EMAIL: ${MW_LE_EMAIL?LE contact email must be defined}
MW_LE_TEST: ${MW_LE_TEST:-true} # see example_env.sh
MW_MKCERT: ${MW_MKCERT:-false} # When LetEncrypt cannot be used set to "true"
MW_KEYTYPE: "rsa"
#MW_PRODUCTS: "tak,kc,bl"
MW_PRODUCTS: "tak,kc"
volumes:
- kraftwerk_shared_fake:/pvarkishares/fake
Expand All @@ -141,7 +145,7 @@ services:
- "80:80"

cfssl:
image: pvarki/cfssl:api-1.2.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/cfssl:api-1.2.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./cfssl
dockerfile: Dockerfile
Expand All @@ -164,7 +168,7 @@ services:
restart: unless-stopped

ocsp:
image: pvarki/cfssl:ocsp-1.2.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/cfssl:ocsp-1.2.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./cfssl
dockerfile: Dockerfile
Expand All @@ -190,7 +194,7 @@ services:
restart: unless-stopped

ocsprest:
image: pvarki/cfssl:ocsprest-1.0.4-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/cfssl:ocsprest-1.0.4-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./cfssl
dockerfile: Dockerfile
Expand Down Expand Up @@ -250,7 +254,7 @@ services:
condition: service_completed_successfully

openldap:
image: pvarki/openldap:1.0.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/openldap:1.0.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./keycloak/openldap
dockerfile: Dockerfile
Expand Down Expand Up @@ -360,7 +364,7 @@ services:
condition: service_healthy

rmapi:
image: pvarki/rmapi:1.5.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/rmapi:1.6.1-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./api
dockerfile: Dockerfile
Expand All @@ -381,6 +385,8 @@ services:
RM_KC_USERNAME: *kcadminuser
RM_KC_PASSWORD: *kcadminpass # pragma: allowlist secret
RM_KC_REALM: *kc_realm
RM_LOG_LEVEL: "INFO"
RELEASE_TAG: ${RELEASE_TAG:-1.7.0}
networks:
- apinet
- kcnet
Expand Down Expand Up @@ -414,18 +420,19 @@ services:
restart: unless-stopped

rmui:
image: pvarki/rmui:1.3.0-${VITE_ASSET_SET:-neutral}-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/rmui:1.3.0-${VITE_ASSET_SET:-neutral}-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./ui
dockerfile: Dockerfile
target: production
args:
VITE_ASSET_SET: ${VITE_ASSET_SET:-neutral}
RELEASE_TAG: ${RELEASE_TAG:-1.7.0}
volumes:
- rmui_files:/deliver

nginx_templates:
image: pvarki/nginx:templates-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/nginx:templates-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./nginx
dockerfile: Dockerfile
Expand Down Expand Up @@ -484,7 +491,7 @@ services:
restart: unless-stopped

kwinit: # Mostly to make sure it's built
image: pvarki/kw_product_init:1.0.0-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/kw_product_init:1.0.0-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./kw_product_init
dockerfile: Dockerfile
Expand Down Expand Up @@ -515,7 +522,7 @@ services:
- taknet
- dbnet
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- kraftwerk_shared_tak:/pvarki
- tak_data:/opt/tak/data
- le_certs:/le_certs
Expand All @@ -530,7 +537,7 @@ services:
takinit:
condition: service_completed_successfully
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand Down Expand Up @@ -563,7 +570,7 @@ services:
takconfig:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -587,7 +594,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
- le_certs:/le_certs
Expand All @@ -611,7 +618,7 @@ services:
takmsg:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -634,7 +641,7 @@ services:
takapi:
condition: service_healthy
volumes:
- ./takserver/updates:/opt/tak/webcontent/update
- ./takserver/update:/opt/tak/webcontent/update
- tak_data:/opt/tak/data
- ca_public:/ca_public
network_mode: "service:takconfig"
Expand All @@ -648,13 +655,16 @@ services:
restart: unless-stopped

takrmapi:
image: pvarki/takrmapi:1.3.0-tak${TAK_RELEASE:-5.2-RELEASE-30}-d${RELEASE_TAG:-1.6.0}${DOCKER_TAG_EXTRA:-}
image: pvarki/takrmapi:1.4.1-tak${TAK_RELEASE:-5.3-RELEASE-24}-d${RELEASE_TAG:-1.7.0}${DOCKER_TAG_EXTRA:-}
build:
context: ./takintegration
dockerfile: Dockerfile
target: production
args:
TAKSERVER_IMAGE: *takimage
environment:
UVICORN_LOG_LEVEL: "info"
TI_LOG_LEVEL: "20"
labels:
- "autoheal=true"
network_mode: "service:takconfig"
Expand Down
2 changes: 1 addition & 1 deletion nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN chmod a+x /entrypoint_deliver.sh \
ENTRYPOINT ["/entrypoint_deliver.sh"]

# Actual NGinx container
FROM nginx:1.27.4-alpine as production
FROM nginx:1.27-alpine as production
COPY entrypoint_templates.sh /
COPY crl_watcher.sh /usr/local/bin
RUN apk add --no-cache inotify-tools bash procps
Expand Down
6 changes: 3 additions & 3 deletions nginx/templates_rasenmaeher/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ server {

location /api {
if ($ssl_client_verify != SUCCESS) {
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail;
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify;
}
proxy_pass http://${NGINX_UPSTREAM}:${NGINX_UPSTREAM_PORT}/api;
proxy_redirect off;
Expand All @@ -123,14 +123,14 @@ server {
}

# Even though users sees code 400 the code is 495 http://nginx.org/en/docs/http/ngx_http_ssl_module.html#errors
error_page 495 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail;
error_page 495 =302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify;

location / {
if ($redir_uri != "") {
return 301 $redir_uri$request_uri;
}
if ($ssl_client_verify != SUCCESS) {
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail;
return 302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify;
}
index index.html;
root /rmui_files;
Expand Down
2 changes: 1 addition & 1 deletion takserver
Loading

0 comments on commit aa07c0a

Please sign in to comment.