Skip to content

Commit

Permalink
Use even simpler go.mod in repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-dunn-sublime committed Apr 18, 2023
1 parent ffaa60d commit b5c8ef1
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ echo 'include "./rules/index.yar"' > configs/python/backend/yara/rules.yara

```bash
docker-compose -f build/docker-compose-no-build.yaml up -d && \
go build -C src/go github.com/target/strelka/src/go/cmd/strelka-oneshot
go build github.com/target/strelka/src/go/cmd/strelka-oneshot
```

#### Step 4b: Build and start Strelka
Expand All @@ -67,7 +67,7 @@ go build -C src/go github.com/target/strelka/src/go/cmd/strelka-oneshot
```bash
docker-compose -f build/docker-compose.yaml build && \
docker-compose -f build/docker-compose.yaml up -d && \
go build -C src/go github.com/target/strelka/src/go/cmd/strelka-oneshot
go build github.com/target/strelka/src/go/cmd/strelka-oneshot
```

#### Step 5: Prepare a file to analyze
Expand All @@ -81,7 +81,7 @@ wget https://github.com/ytisf/theZoo/raw/master/malware/Binaries/Win32.Emotet/Wi
#### Step 6: Analyze the file with Strelka using the dockerized oneshot
```bash
./src/go/strelka-oneshot -f samples/Win32.Emotet.zip -l - | jq
./strelka-oneshot -f samples/Win32.Emotet.zip -l - | jq
```
#### What's happening here?
Expand Down
1 change: 1 addition & 0 deletions build/go/fileshot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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/
COPY go.* /go/src/github.com/target/strelka

# Statically compile and output to tmp
RUN go mod download && \
Expand Down
1 change: 1 addition & 0 deletions build/go/filestream/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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/
COPY go.* /go/src/github.com/target/strelka

# Statically compile and output to tmp
RUN go mod download && \
Expand Down
1 change: 1 addition & 0 deletions build/go/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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/
COPY go.* /go/src/github.com/target/strelka

# Statically compile and output to tmp
RUN go mod download && \
Expand Down
1 change: 1 addition & 0 deletions build/go/manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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/
COPY go.* /go/src/github.com/target/strelka

# Statically compile and output to /tmp
RUN go mod download && \
Expand Down
1 change: 1 addition & 0 deletions build/go/oneshot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ 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/
COPY go.* /go/src/github.com/target/strelka

# Statically compile and output to tmp
RUN go mod download && \
Expand Down
2 changes: 1 addition & 1 deletion src/go/go.mod → go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/target/strelka/src/go
module github.com/target/strelka

go 1.19

Expand Down
File renamed without changes.

0 comments on commit b5c8ef1

Please sign in to comment.