Skip to content

Commit ac5f6f2

Browse files
authored
feat: external backend launching log improvements and relative path support (#3348)
* specify workdir when launching external backend for safety / relative paths, bump version, logs Signed-off-by: Dave Lee <[email protected]> * sneak in a devcontainer fix Signed-off-by: Dave Lee <[email protected]> --------- Signed-off-by: Dave Lee <[email protected]>
1 parent 61fe240 commit ac5f6f2

File tree

5 files changed

+41
-165
lines changed

5 files changed

+41
-165
lines changed

.devcontainer-scripts/utils.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ config_remote() {
3535
#
3636
# Param 1: bash array, filenames relative to the customization directory that should be copied to ~/.ssh
3737
setup_ssh() {
38+
mkdir -p ~/.ssh
3839
local files=("$@")
39-
for file in "${files[@]}"; then
40+
for file in "${files[@]}" ; do
4041
local cfile="/devcontainer-customization/${file}"
4142
local hfile="~/.ssh/${file}"
4243
if [ ! -f "${hfile}" ]; then

go.mod

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ require (
2222
github.com/gofiber/fiber/v2 v2.52.5
2323
github.com/gofiber/swagger v1.0.0
2424
github.com/gofiber/template/html/v2 v2.1.2
25+
github.com/gofrs/flock v0.12.1
2526
github.com/google/go-containerregistry v0.19.2
2627
github.com/google/uuid v1.6.0
2728
github.com/hpcloud/tail v1.0.0
@@ -32,10 +33,9 @@ require (
3233
github.com/libp2p/go-libp2p v0.36.2
3334
github.com/mholt/archiver/v3 v3.5.1
3435
github.com/microcosm-cc/bluemonday v1.0.26
36+
github.com/mudler/go-processmanager v0.0.0-20240820160718-8b802d3ecf82
3537
github.com/mudler/edgevpn v0.27.3
36-
github.com/mudler/go-processmanager v0.0.0-20230818213616-f204007f963c
3738
github.com/mudler/go-stable-diffusion v0.0.0-20240429204715-4a3cd6aeae6f
38-
github.com/nomic-ai/gpt4all/gpt4all-bindings/golang v0.0.0-20240606155928-41c9013fa46a
3939
github.com/onsi/ginkgo/v2 v2.20.0
4040
github.com/onsi/gomega v1.34.1
4141
github.com/ory/dockertest/v3 v3.10.0
@@ -64,12 +64,8 @@ require (
6464
)
6565

6666
require (
67-
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
6867
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
6968
github.com/go-viper/mapstructure/v2 v2.0.0 // indirect
70-
github.com/gofrs/flock v0.12.1 // indirect
71-
github.com/labstack/echo/v4 v4.12.0 // indirect
72-
github.com/labstack/gommon v0.4.2 // indirect
7369
github.com/moby/docker-image-spec v1.3.1 // indirect
7470
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
7571
github.com/pion/datachannel v1.5.8 // indirect
@@ -88,11 +84,8 @@ require (
8884
github.com/pion/transport/v2 v2.2.10 // indirect
8985
github.com/pion/turn/v2 v2.1.6 // indirect
9086
github.com/pion/webrtc/v3 v3.3.0 // indirect
91-
github.com/russross/blackfriday/v2 v2.1.0 // indirect
92-
github.com/urfave/cli/v2 v2.27.4 // indirect
93-
github.com/valyala/fasttemplate v1.2.2 // indirect
87+
github.com/shirou/gopsutil/v4 v4.24.7 // indirect
9488
github.com/wlynxg/anet v0.0.4 // indirect
95-
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
9689
go.uber.org/mock v0.4.0 // indirect
9790
)
9891

@@ -140,7 +133,7 @@ require (
140133
github.com/go-audio/riff v1.0.0 // indirect
141134
github.com/go-logr/logr v1.4.2 // indirect
142135
github.com/go-logr/stdr v1.2.2 // indirect
143-
github.com/go-ole/go-ole v1.2.6 // indirect
136+
github.com/go-ole/go-ole v1.3.0 // indirect
144137
github.com/go-openapi/jsonpointer v0.21.0 // indirect
145138
github.com/go-openapi/jsonreference v0.21.0 // indirect
146139
github.com/go-openapi/spec v0.21.0 // indirect
@@ -196,7 +189,7 @@ require (
196189
github.com/libp2p/go-yamux/v4 v4.0.1 // indirect
197190
github.com/libp2p/zeroconf/v2 v2.2.0 // indirect
198191
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
199-
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
192+
github.com/lufia/plan9stats v0.0.0-20240819163618-b1d8f4d146e7 // indirect
200193
github.com/mailru/easyjson v0.7.7 // indirect
201194
github.com/marten-seemann/tcp v0.0.0-20210406111302-dfbc87cc63fd // indirect
202195
github.com/mattn/go-colorable v0.1.13 // indirect
@@ -242,7 +235,7 @@ require (
242235
github.com/pkoukk/tiktoken-go v0.1.6 // indirect
243236
github.com/pmezard/go-difflib v1.0.0 // indirect
244237
github.com/polydawn/refmt v0.89.0 // indirect
245-
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
238+
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
246239
github.com/prometheus/client_model v0.6.1 // indirect
247240
github.com/prometheus/common v0.55.0 // indirect
248241
github.com/prometheus/procfs v0.15.1 // indirect
@@ -260,8 +253,8 @@ require (
260253
github.com/spf13/cast v1.5.0 // indirect
261254
github.com/swaggo/files/v2 v2.0.0 // indirect
262255
github.com/tinylib/msgp v1.1.8 // indirect
263-
github.com/tklauser/go-sysconf v0.3.12 // indirect
264-
github.com/tklauser/numcpus v0.6.1 // indirect
256+
github.com/tklauser/go-sysconf v0.3.14 // indirect
257+
github.com/tklauser/numcpus v0.8.0 // indirect
265258
github.com/ulikunitz/xz v0.5.9 // indirect
266259
github.com/valyala/bytebufferpool v1.0.0 // indirect
267260
github.com/valyala/tcplisten v1.0.0 // indirect

0 commit comments

Comments
 (0)