-
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.
update(tutorial): updated Terraform and Dockerfiles
- Loading branch information
jlecomte
committed
Mar 15, 2024
1 parent
58cdfd2
commit c50210f
Showing
8 changed files
with
69 additions
and
107 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
FROM debian:bookworm-20240211 | ||
LABEL authors="[email protected]" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y golang ca-certificates && \ | ||
|
@@ -13,10 +12,9 @@ COPY ./internal ./internal | |
COPY ./www ./www | ||
|
||
RUN go mod init publisher-server && \ | ||
go mod tidy | ||
go mod tidy && \ | ||
go build ./cmd/publisher | ||
|
||
EXPOSE 8081 | ||
|
||
WORKDIR /app/cmd/publisher | ||
|
||
CMD ["go", "run", "main.go"] | ||
CMD ["./publisher"] |
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,5 +1,4 @@ | ||
FROM debian:bookworm-20240211 | ||
LABEL authors="[email protected]" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y golang ca-certificates && \ | ||
|
@@ -13,10 +12,9 @@ COPY ./internal ./internal | |
COPY ./www ./www | ||
|
||
RUN go mod init subscriber-server && \ | ||
go mod tidy | ||
go mod tidy && \ | ||
go build -o ./subscriber ./cmd/subscriber | ||
|
||
EXPOSE 8081 | ||
|
||
WORKDIR /app/cmd/subscriber | ||
|
||
CMD ["go", "run", "main.go"] | ||
CMD ["./subscriber"] |
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
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