-
-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable build & publish of alpine docker container * Delete outdated BUILD file * Move Dockerfiles into subdir "docker" * Update & format Dockerfiles * Introduce "next" tag Co-authored-by: Anbraten <anton@ju60.de>
- Loading branch information
Showing
10 changed files
with
98 additions
and
94 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# docker build --rm -f docker/Dockerfile.agent -t woodpeckerci/woodpecker-agent . | ||
|
||
# use golang image to copy ssl certs later | ||
FROM golang:1.16 | ||
|
||
FROM scratch | ||
|
||
# copy certs from golang:1.16 image | ||
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
|
||
ENV GODEBUG=netdns=go | ||
ADD release/woodpecker-agent /bin/ | ||
|
||
EXPOSE 3000 | ||
HEALTHCHECK CMD ["/bin/woodpecker-agent", "ping"] | ||
|
||
ENTRYPOINT ["/bin/woodpecker-agent"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# docker build --rm -f docker/Dockerfile.server -t woodpeckerci/woodpecker-server . | ||
|
||
# use golang image to copy ssl certs later | ||
FROM golang:1.16 | ||
|
||
FROM scratch | ||
|
||
# copy certs from golang:1.16 image | ||
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | ||
|
||
EXPOSE 8000 9000 80 443 | ||
|
||
ENV GODEBUG=netdns=go | ||
ENV WOODPECKER_DATABASE_DATASOURCE=/var/lib/drone/drone.sqlite | ||
ENV WOODPECKER_DATABASE_DRIVER=sqlite3 | ||
ENV XDG_CACHE_HOME=/var/lib/drone | ||
|
||
ADD release/woodpecker-server /bin/ | ||
|
||
ENTRYPOINT ["/bin/woodpecker-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters