-
Notifications
You must be signed in to change notification settings - Fork 116
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 #366 from sublime-security/cd.rework-mod
Single Go Mod
- Loading branch information
Showing
16 changed files
with
26 additions
and
391 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 |
---|---|---|
|
@@ -6,11 +6,12 @@ LABEL maintainer="Target Brands, Inc. [email protected]" | |
|
||
# Copy source files and set the working directory | ||
COPY ./src/go/ /go/src/github.com/target/strelka/src/go/ | ||
WORKDIR /go/src/github.com/target/strelka/src/go/cmd/strelka-fileshot | ||
WORKDIR /go/src/github.com/target/strelka/src/go/ | ||
COPY go.* /go/src/github.com/target/strelka | ||
|
||
# Statically compile and output to tmp | ||
RUN go mod download && \ | ||
CGO_ENABLED=0 go build -o /tmp/strelka-fileshot . | ||
CGO_ENABLED=0 go build -o /tmp/strelka-fileshot cmd/strelka-fileshot/main.go | ||
|
||
# Initialize runtime container | ||
FROM alpine | ||
|
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 |
---|---|---|
|
@@ -6,11 +6,12 @@ LABEL maintainer="Target Brands, Inc. [email protected]" | |
|
||
# Copy source files and set the working directory | ||
COPY ./src/go/ /go/src/github.com/target/strelka/src/go/ | ||
WORKDIR /go/src/github.com/target/strelka/src/go/cmd/strelka-filestream | ||
WORKDIR /go/src/github.com/target/strelka/src/go/ | ||
COPY go.* /go/src/github.com/target/strelka | ||
|
||
# Statically compile and output to tmp | ||
RUN go mod download && \ | ||
CGO_ENABLED=0 go build -o /tmp/strelka-filestream . | ||
CGO_ENABLED=0 go build -o /tmp/strelka-filestream cmd/strelka-filestream/main.go | ||
|
||
# Initialize runtime container | ||
FROM alpine | ||
|
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 |
---|---|---|
|
@@ -6,11 +6,12 @@ LABEL maintainer="Target Brands, Inc. [email protected]" | |
|
||
# Copy source files and set the working directory | ||
COPY ./src/go/ /go/src/github.com/target/strelka/src/go/ | ||
WORKDIR /go/src/github.com/target/strelka/src/go/cmd/strelka-frontend | ||
WORKDIR /go/src/github.com/target/strelka/src/go/ | ||
COPY go.* /go/src/github.com/target/strelka | ||
|
||
# Statically compile and output to tmp | ||
RUN go mod download && \ | ||
CGO_ENABLED=0 go build -o /tmp/strelka-frontend . | ||
CGO_ENABLED=0 go build -o /tmp/strelka-frontend cmd/strelka-frontend/main.go | ||
|
||
# Initialize runtime container | ||
FROM alpine | ||
|
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 |
---|---|---|
|
@@ -6,11 +6,12 @@ LABEL maintainer="Target Brands, Inc. [email protected]" | |
|
||
# Copy source files and set the working directory | ||
COPY ./src/go/ /go/src/github.com/target/strelka/src/go/ | ||
WORKDIR /go/src/github.com/target/strelka/src/go/cmd/strelka-manager | ||
WORKDIR /go/src/github.com/target/strelka/src/go/ | ||
COPY go.* /go/src/github.com/target/strelka | ||
|
||
# Statically compile and output to /tmp | ||
RUN go mod download && \ | ||
CGO_ENABLED=0 go build -o /tmp/strelka-manager . | ||
CGO_ENABLED=0 go build -o /tmp/strelka-manager cmd/strelka-manager/main.go | ||
|
||
# Initialize runtime container with non-root user | ||
FROM alpine | ||
|
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 |
---|---|---|
|
@@ -6,11 +6,12 @@ LABEL maintainer="Target Brands, Inc. [email protected]" | |
|
||
# Copy source files and set the working directory | ||
COPY ./src/go/ /go/src/github.com/target/strelka/src/go/ | ||
WORKDIR /go/src/github.com/target/strelka/src/go/cmd/strelka-oneshot | ||
WORKDIR /go/src/github.com/target/strelka/src/go/ | ||
COPY go.* /go/src/github.com/target/strelka | ||
|
||
# Statically compile and output to tmp | ||
RUN go mod download && \ | ||
CGO_ENABLED=0 go build -o /tmp/strelka-oneshot . | ||
CGO_ENABLED=0 go build -o /tmp/strelka-oneshot cmd/strelka-oneshot/main.go | ||
|
||
# Initialize runtime container | ||
FROM alpine | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.