From 05438d13cf1d92c6d706c282103e59dcb02d1bf5 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Thu, 4 Jul 2024 14:44:16 -0300 Subject: [PATCH] Working terminal/shell/logs but container selection is broken --- Caddyfile | 7 +------ Dockerfile | 2 +- public/index.html | 1 + src/daemon/funko.cr | 22 ++++++++++++++++++++++ src/daemon/proxyconf.cr | 2 +- src/daemon/terminal.cr | 13 ++++++++----- src/views/funkos.ecr | 5 +++-- 7 files changed, 37 insertions(+), 15 deletions(-) diff --git a/Caddyfile b/Caddyfile index 3e6da54..eb450ae 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,8 +1,6 @@ - { https_port 8888 http_port 8887 - local_certs } localhost:8888 { @@ -12,7 +10,4 @@ localhost:8888 { handle_path /admin/* { reverse_proxy /* http://127.0.0.1:3000 } -} - handle_path /faaso/hello/* { - reverse_proxy /* http://hello-d89veq:3000 - } +} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 6d09e11..15575bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN shards build -d --error-trace RUN strip bin/* FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as ship -RUN apk update && apk add caddy multirun openssl zlib yaml pcre2 gc libevent libgcc libxml2 ttyd && apk cache clean +RUN apk update && apk add caddy multirun docker openssl zlib yaml pcre2 gc libevent libgcc libxml2 ttyd && apk cache clean # Unprivileged user RUN addgroup -S app && adduser app -S -G app diff --git a/public/index.html b/public/index.html index f91e483..bbf614e 100644 --- a/public/index.html +++ b/public/index.html @@ -32,6 +32,7 @@ +