-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Go version from 1.21 to 1.22 (#280)
* Upgrade Go version from 1.21 to 1.22 * Add command to print docker-compose logs * Rebuild dev Dockerfile * Add printing just exporter logs if failed * Add actual healthcheck to Dockerfile dev
- Loading branch information
Showing
5 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.21.5-alpine3.17 as build | ||
FROM golang:1.22.0-alpine3.19 as build | ||
|
||
ARG VERSION \ | ||
GIT_COMMIT \ | ||
|
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 |
---|---|---|
@@ -1,5 +1,16 @@ | ||
FROM cosmtrek/air:v1.49.0 | ||
FROM cosmtrek/air:v1.49.0 as air | ||
|
||
|
||
FROM golang:1.22.0-alpine3.19 | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add --no-cache curl | ||
|
||
COPY --from=air /go/bin/air /go/bin/air | ||
|
||
EXPOSE 9198 | ||
|
||
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://localhost:9198/healthcheck | ||
|
||
ENTRYPOINT ["/go/bin/air", "-c", ".air.toml"] |
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