This commit is contained in:
commit
92aa6b341f
|
@ -1,9 +1,9 @@
|
|||
variables:
|
||||
- &golang "golang:1.19"
|
||||
- &volumes
|
||||
- /var/www/html/artifacts/capture/deblan:/artifacts
|
||||
- /var/www/html/artifacts/deblan/capture:/artifacts
|
||||
|
||||
pipeline:
|
||||
steps:
|
||||
test:
|
||||
image: *golang
|
||||
commands:
|
||||
|
@ -14,6 +14,7 @@ pipeline:
|
|||
volumes: *volumes
|
||||
commands:
|
||||
- make
|
||||
- cp build/* /artifacts
|
||||
|
||||
push_release:
|
||||
image: plugins/gitea-release
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.19 as builder
|
||||
FROM golang:1.21-bullseye as builder
|
||||
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
|
@ -7,7 +7,7 @@ RUN go mod download
|
|||
COPY . .
|
||||
RUN BUILD_DIR=/app make
|
||||
|
||||
FROM debian:stable-slim
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y ca-certificates
|
||||
COPY --from=builder /app/capture-linux-amd64 /usr/bin/capture
|
||||
|
|
|
@ -19,9 +19,9 @@ docker run -p 9000:9000 -p 9001:9001 deblan/capture -url=https://example.com/ -p
|
|||
|
||||
#### Settings
|
||||
|
||||
| param | description |
|
||||
| -------------- | ------------- |
|
||||
| `-url` | **Required.** Set the url you want to proxy |
|
||||
| param | description |
|
||||
| -------------- | ------------- |
|
||||
| `-url` | **Required.** Set the url you want to proxy |
|
||||
| `-port` | Set the proxy port. Default: *9000* |
|
||||
| `-dashboard` | Set the dashboard port. Default: *9001* |
|
||||
| `-captures` | Set how many captures to show in the dashboard. Default: *16* |
|
||||
|
|
Loading…
Reference in a new issue