-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Noah-Huppert/golang
Golang
- Loading branch information
Showing
19 changed files
with
2,093 additions
and
350 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM golang:latest | ||
|
||
WORKDIR /go/src/app | ||
|
||
COPY go.mod go.sum ./ | ||
RUN go get -d -v ./... | ||
|
||
COPY main.go ./ | ||
RUN go build -o net-test main.go | ||
RUN mv ./net-test /bin/ | ||
|
||
CMD ["net-test"] |
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,3 @@ | ||
#!/usr/bin/env bash | ||
set -x | ||
docker-compose -f docker-compose.yml -f docker-compose.custom.yml $@ |
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,4 @@ | ||
version: "3.9" | ||
services: | ||
net_test: | ||
command: net-test # Customize invocation |
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,24 @@ | ||
version: "3.9" | ||
services: | ||
prometheus: | ||
image: prom/prometheus | ||
ports: | ||
- "9090:9090" | ||
volumes: | ||
- "./container-data/prometheus:/prometheus" | ||
- "./prometheus.yml:/etc/prometheus/prometheus.yml" | ||
grafana: | ||
image: grafana/grafana | ||
ports: | ||
- "3000:3000" | ||
volumes: | ||
- "./grafana/provisioning/datasources/:/etc/grafana/provisioning/datasources/" | ||
- "./grafana/provisioning/dashboards/:/etc/grafana/provisioning/dashboards/" | ||
- "./grafana/dashboards/:/var/lib/grafana/dashboards/" | ||
- "./grafana/defaults.ini:/usr/share/grafana/conf/defaults.ini" | ||
net_test: | ||
build: . | ||
ports: | ||
- "2112:2112" | ||
# debug: | ||
# image: alpine |
Oops, something went wrong.