-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize projects to use build info in metrics
- Loading branch information
Showing
30 changed files
with
182 additions
and
3,277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "autometrics-shared"] | ||
path = configs/shared | ||
url = https://github.com/autometrics-dev/autometrics-shared.git |
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
File renamed without changes.
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 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,16 +1,24 @@ | ||
FROM golang:1.20-alpine | ||
MAINTAINER Fiberplane <[email protected]> | ||
ARG version=development | ||
|
||
# Cannot really build the demo image from | ||
# the examples subfolder because of | ||
# relative imports shenanigans that go out of build context (i.e. upwards) | ||
# | ||
# Use | ||
# GOOS=linux GOARCH=amd64 go build -o web-server ./cmd/main.go | ||
# | ||
# To build the web-server app | ||
RUN apk update && apk add git | ||
|
||
COPY web-server / | ||
WORKDIR /app | ||
|
||
COPY . ./ | ||
|
||
RUN go mod download | ||
|
||
WORKDIR /app/examples/web | ||
|
||
RUN go generate cmd/main.go | ||
|
||
ENV VERSION="$version" | ||
|
||
RUN scripts/build_server | ||
|
||
RUN cp web-server / | ||
|
||
EXPOSE 62086 | ||
|
||
|
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
Oops, something went wrong.