| ... | @@ -5,9 +5,6 @@ import "../keycloak/service.pkl" as keycloak | ... | @@ -5,9 +5,6 @@ import "../keycloak/service.pkl" as keycloak |
| 5 | meta { | 5 | meta { |
| 6 | name = "Shale" | 6 | name = "Shale" |
| 7 | } | 7 | } |
| 8 | traceServiceName = "astheno.shale" | | |
| 9 | dependsOn { "victoria-traces" } | | |
| 10 | | | |
| 11 | requirements { | 8 | requirements { |
| 12 | new keycloak.OpenIDClient { | 9 | new keycloak.OpenIDClient { |
| 13 | clientId = module.id | 10 | clientId = module.id |
| ... | @@ -17,8 +14,6 @@ requirements { | ... | @@ -17,8 +14,6 @@ requirements { |
| 17 | | 14 | |
| 18 | container { | 15 | container { |
| 19 | image = "docker.io/astheno/shale@sha256:ece987e25ebe67275fbe105b1b03e650a9b3adfe716928beb717cde1d32c9652" | 16 | image = "docker.io/astheno/shale@sha256:ece987e25ebe67275fbe105b1b03e650a9b3adfe716928beb717cde1d32c9652" |
| 20 | entrypoint = "/bin/sh" | | |
| 21 | args { "-c"; "exec /app/astheno-shale --port 8000 --datadir /data --otel-exporter-otlp-traces-endpoint \"$STUDIO_TRACES_ENDPOINT\"" } | | |
| 22 | extraHosts { "\(keycloak.container.http.hostname):host-gateway" } | 17 | extraHosts { "\(keycloak.container.http.hostname):host-gateway" } |
| 23 | | 18 | |
| 24 | http { | 19 | http { |
| ... | @@ -55,9 +50,6 @@ container { | ... | @@ -55,9 +50,6 @@ container { |
| 55 | ["SESSION_SECRET"] = "${secret.own.session_secret}" | 50 | ["SESSION_SECRET"] = "${secret.own.session_secret}" |
| 56 | ["OAUTH2_CLIENT"] = "oidc,\(keycloak.container.http.hostname)/realms/master|${secret.oidc.clientId}|${secret.oidc.clientSecret}" | 51 | ["OAUTH2_CLIENT"] = "oidc,\(keycloak.container.http.hostname)/realms/master|${secret.oidc.clientId}|${secret.oidc.clientSecret}" |
| 57 | } | 52 | } |
| 58 | envTemplate = """ | | |
| 59 | {{ range nomadService 1 (env "NOMAD_ALLOC_ID") "victoria-traces" }}STUDIO_TRACES_ENDPOINT=http://\(module.nomadHostPort)/insert/opentelemetry/v1/traces{{ end }} | | |
| 60 | """ | | |
| 61 | } | 53 | } |
| 62 | | 54 | |
| 63 | secrets { | 55 | secrets { |