Compare commits

...

5 Commits

Author SHA1 Message Date
Amir Raminfar 28c2cdc571 chore: release v6.2.3 2024-02-09 11:13:20 -08:00
Amir Raminfar d67f2da1ba fix: uses github.com/goccy/go-json for less CPU (#2766) 2024-02-09 11:11:20 -08:00
Ahmet a99672a5da chore: adjust supported env variables in readme (#2768) 2024-02-08 23:18:09 +00:00
renovate[bot] eefa472516 fix(deps): update all non-major dependencies (#2764)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-08 18:58:12 +00:00
Amir Raminfar 11cde3d5fc chore: fixes improvements with go1.22 2024-02-07 12:33:28 -08:00
11 changed files with 292 additions and 273 deletions
+15 -13
View File
@@ -93,19 +93,21 @@ If you do not want to be tracked at all, see the `--no-analytics` flag below.
Dozzle follows the [12-factor](https://12factor.net/) model. Configurations can use the CLI flags or environment variables. The table below outlines all supported options and their respective env vars.
| Flag | Env Variable | Default |
| ---------------- | ---------------------- | ------- |
| `--addr` | `DOZZLE_ADDR` | `:8080` |
| `--base` | `DOZZLE_BASE` | `/` |
| `--hostname` | `DOZZLE_HOSTNAME` | `""` |
| `--level` | `DOZZLE_LEVEL` | `info` |
| `--filter` | `DOZZLE_FILTER` | `""` |
| `--username` | `DOZZLE_USERNAME` | `""` |
| `--password` | `DOZZLE_PASSWORD` | `""` |
| `--usernamefile` | `DOZZLE_USERNAME_FILE` | `""` |
| `--passwordfile` | `DOZZLE_PASSWORD_FILE` | `""` |
| `--no-analytics` | `DOZZLE_NO_ANALYTICS` | false |
| `--remote-host` | `DOZZLE_REMOTE_HOST` | |
| Flag | Env Variable | Default |
| --------------------------- | -------------------------------- | -------------- |
| `--addr` | `DOZZLE_ADDR` | `:8080` |
| `--base` | `DOZZLE_BASE` | `/` |
| `--hostname` | `DOZZLE_HOSTNAME` | `""` |
| `--level` | `DOZZLE_LEVEL` | `info` |
| `--auth-provider` | `DOZZLE_AUTH_PROVIDER` | `none` |
| `--auth-header-user` | `DOZZLE_AUTH_HEADER_USER` | `Remote-User` |
| `--auth-header-email` | `DOZZLE_AUTH_HEADER_EMAIL` | `Remote-Email` |
| `--auth-header-name` | `DOZZLE_AUTH_HEADER_NAME` | `Remote-Name` |
| `--enable-actions` | `DOZZLE_ENABLE_ACTIONS` | false |
| `--wait-for-docker-seconds` | `DOZZLE_WAIT_FOR_DOCKER_SECONDS` | 0 |
| `--filter` | `DOZZLE_FILTER` | `""` |
| `--no-analytics` | `DOZZLE_NO_ANALYTICS` | false |
| `--remote-host` | `DOZZLE_REMOTE_HOST` | |
## Support
+2 -1
View File
@@ -2,7 +2,6 @@ package docker
import (
"context"
"encoding/json"
"fmt"
"io"
"path/filepath"
@@ -12,6 +11,8 @@ import (
"strings"
"time"
"github.com/goccy/go-json"
"github.com/amir20/dozzle/internal/utils"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/container"
-1
View File
@@ -65,7 +65,6 @@ func (s *ContainerStore) init(ctx context.Context) {
if containers, err := s.client.ListContainers(); err == nil {
for _, c := range containers {
c := c // create a new variable to avoid capturing the loop variable
s.containers.Store(c.ID, &c)
}
} else {
+2 -1
View File
@@ -4,7 +4,6 @@ import (
"bufio"
"bytes"
"encoding/binary"
"encoding/json"
"errors"
"fmt"
"hash/fnv"
@@ -14,6 +13,8 @@ import (
"sync"
"time"
"github.com/goccy/go-json"
"github.com/go-logfmt/logfmt"
log "github.com/sirupsen/logrus"
)
+2 -1
View File
@@ -1,8 +1,9 @@
package utils
import (
"encoding/json"
"sync"
"github.com/goccy/go-json"
)
type RingBuffer[T any] struct {
+2 -1
View File
@@ -1,10 +1,11 @@
package web
import (
"encoding/json"
"fmt"
"net/http"
"github.com/goccy/go-json"
"github.com/amir20/dozzle/internal/analytics"
"github.com/amir20/dozzle/internal/docker"
+2 -1
View File
@@ -1,11 +1,12 @@
package web
import (
"encoding/json"
"html/template"
"io"
"sort"
"github.com/goccy/go-json"
"net/http"
"path"
+2 -1
View File
@@ -3,7 +3,8 @@ package web
import (
"compress/gzip"
"context"
"encoding/json"
"github.com/goccy/go-json"
"fmt"
"io"
+2
View File
@@ -115,6 +115,8 @@ func createRouter(h *handler) *chi.Mux {
}
r.Get("/healthcheck", h.healthcheck)
// r.Mount("/debug", middleware.Profiler())
})
if base != "/" {
+5 -5
View File
@@ -1,6 +1,6 @@
{
"name": "dozzle",
"version": "6.2.2",
"version": "6.2.3",
"description": "Realtime log viewer for docker containers.",
"homepage": "https://github.com/amir20/dozzle#readme",
"bugs": {
@@ -28,7 +28,7 @@
"docs:preview": "vitepress preview docs"
},
"dependencies": {
"@iconify-json/carbon": "^1.1.28",
"@iconify-json/carbon": "^1.1.29",
"@iconify-json/cil": "^1.1.8",
"@iconify-json/ic": "^1.1.17",
"@iconify-json/mdi": "^1.1.64",
@@ -64,10 +64,10 @@
"unplugin-icons": "^0.18.5",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-macros": "^2.7.10",
"vite": "5.0.12",
"vite": "5.1.0",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-vue-layouts": "^0.11.0",
"vue": "^3.4.15",
"vue": "^3.4.16",
"vue-i18n": "^9.9.1",
"vue-router": "^4.2.5"
},
@@ -84,7 +84,7 @@
"@types/node": "^20.11.16",
"@types/semver": "^7.5.6",
"@vitejs/plugin-vue": "5.0.3",
"@vue/compiler-sfc": "^3.4.15",
"@vue/compiler-sfc": "^3.4.16",
"@vue/test-utils": "^2.4.4",
"bumpp": "^9.3.0",
"c8": "^9.1.0",
+258 -248
View File
File diff suppressed because it is too large Load Diff