mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 12:42:16 +01:00
using (again) Golang binaries from official Docker image instead of standard install without checkum + added a TODO for healtheck
This commit is contained in:
2
Makefile
2
Makefile
@@ -1,4 +1,4 @@
|
|||||||
GOLANG_VERSION=1.12.7
|
GOLANG_VERSION=1.12
|
||||||
VERSION=snapshot
|
VERSION=snapshot
|
||||||
DOCKER_USER=
|
DOCKER_USER=
|
||||||
DOCKER_PASSWORD=
|
DOCKER_PASSWORD=
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
FROM thecodingmachine/gotenberg:base
|
|
||||||
|
|
||||||
ARG GOLANG_VERSION
|
ARG GOLANG_VERSION
|
||||||
|
|
||||||
|
FROM golang:${GOLANG_VERSION}-stretch as golang
|
||||||
|
|
||||||
|
FROM thecodingmachine/gotenberg:base
|
||||||
|
|
||||||
# |--------------------------------------------------------------------------
|
# |--------------------------------------------------------------------------
|
||||||
# | Common libraries
|
# | Common libraries
|
||||||
# |--------------------------------------------------------------------------
|
# |--------------------------------------------------------------------------
|
||||||
@@ -25,9 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
# | Installs Golang.
|
# | Installs Golang.
|
||||||
# |
|
# |
|
||||||
|
|
||||||
RUN wget https://dl.google.com/go/go${GOLANG_VERSION}.linux-amd64.tar.gz &&\
|
COPY --from=golang /usr/local/go /usr/local/go
|
||||||
tar -xvf go${GOLANG_VERSION}.linux-amd64.tar.gz &&\
|
|
||||||
mv go /usr/local
|
|
||||||
|
|
||||||
ENV GOPATH /gotenberg/go
|
ENV GOPATH /gotenberg/go
|
||||||
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
|
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ func pingHandler(c echo.Context) error {
|
|||||||
if err := ctx.ProcessesHealthcheck(); err != nil {
|
if err := ctx.ProcessesHealthcheck(); err != nil {
|
||||||
return xerror.New(op, err)
|
return xerror.New(op, err)
|
||||||
}
|
}
|
||||||
|
// TODO return processes info
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user