-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rework project structure (#255)
Project structure has been completely reworked to follow DDD. Program arguments and configuration files have changed, see the READMEs for more information.
- Loading branch information
1 parent
53c06bf
commit f055313
Showing
192 changed files
with
8,244 additions
and
8,307 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,10 +1,11 @@ | ||
##IDEs | ||
#JetBrain Goland | ||
#JetBrains | ||
.idea/** | ||
#Microsoft VSCode | ||
.vscode/** | ||
#Microsoft VS | ||
.vs/** | ||
|
||
##Build | ||
*.exe | ||
|
||
##Settings | ||
*/settings?.json |
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,15 @@ | ||
FROM golang:1.19 as builder | ||
FROM golang:1.19 AS builder | ||
WORKDIR /app | ||
COPY ./src ./src | ||
COPY ./config ./config | ||
COPY ./validatornode ./validatornode | ||
COPY ./accessnode ./accessnode | ||
ADD go.mod . | ||
ADD go.sum . | ||
|
||
RUN CGO_ENABLED=0 go build -o node src/node/main.go | ||
RUN CGO_ENABLED=0 go build -o ui src/ui/main.go | ||
RUN CGO_ENABLED=0 go build -o validatornode validatornode/main.go | ||
RUN CGO_ENABLED=0 go build -o accessnode accessnode/main.go | ||
|
||
FROM gcr.io/distroless/static-debian11 | ||
FROM debian:11.9 | ||
USER nonroot | ||
WORKDIR /app | ||
COPY ./templates /app/templates | ||
COPY --from=builder /app/config /app/config | ||
COPY --from=builder /app/node /app | ||
COPY --from=builder /app/ui /app | ||
COPY --from=builder /app/validatornode /app | ||
COPY --from=builder /app/accessnode /app |
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.