Compare commits

..

No commits in common. "94537e9238a5e1254a819fa7210daf62db4bff37" and "4fee95a165873a9b9b323bb24bc4f7f6f65685d0" have entirely different histories.

4 changed files with 5 additions and 32 deletions

View file

@ -1,4 +0,0 @@
/capture
/.woodpecker.yml
/.git
/.gitignore

View file

@ -15,7 +15,7 @@ pipeline:
commands:
- go build -o /artifacts/capture
push_release:
push-release:
image: plugins/gitea-release
volumes: *volumes
settings:
@ -26,17 +26,3 @@ pipeline:
files: /artifacts/capture
when:
event: [tag]
docker_build_push:
image: docker:dind
secrets:
- registry_user
- registry_password
commands:
- echo "$REGISTRY_PASSWORD" | docker login -u "$REGISTRY_USER" --password-stdin
- "docker build -t deblan/capture:${CI_PIPELINE_DEPLOY_TARGET} ."
- "docker push deblan/capture:${CI_PIPELINE_DEPLOY_TARGET}"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
when:
event: [deployment]

View file

@ -1,12 +1,9 @@
FROM golang:1.19 as builder
WORKDIR /src
COPY . .
RUN go build
FROM debian:stable-slim
RUN apt-get update && apt-get install ca-certificates -y
COPY --from=builder /src/capture /usr/bin/capture
COPY ./capture /usr/bin/capture
WORKDIR /app
ENTRYPOINT ["/usr/bin/capture"]

View file

@ -11,12 +11,6 @@ Forked from [ofabricio/capture](https://github.com/ofabricio/capture).
./capture -url=https://example.com/ -port 9000 -dashboard 9001 -captures 16
```
Via docker:
```
docker run -p 9000:9000 -p 9001:9001 deblan/capture -url=https://example.com/ -port 9000 -dashboard 9001 -captures 16
```
#### Settings
| param | description |