Loadtest test (#6218)
* testing * another fix * Revert "add changes file" This reverts commit bc2402348e2e6d6e7252ef899dd899b758379003. * revert 71e1639531832217500fafcec32df781f22d85e7 Co-authored-by: Roberto Dip <dip.jesusr@gmail.com>
This commit is contained in:
co-authored by
Roberto Dip
parent
d61df9a920
commit
34bfe71674
@@ -1,4 +1,7 @@
|
||||
FROM golang:1.18.0
|
||||
ARG TAG
|
||||
RUN apt update && apt upgrade -y && apt install npm yarnpkg -y && ln -s /usr/bin/yarnpkg /usr/bin/yarn
|
||||
RUN git clone -b $TAG https://github.com/fleetdm/fleet.git && cd fleet && make deps && make generate && make build
|
||||
RUN git clone -b $TAG https://github.com/fleetdm/fleet.git && cd /go/fleet/cmd/osquery-perf/ && go build .
|
||||
|
||||
FROM golang:1.18.0
|
||||
COPY --from=0 /go/fleet/cmd/osquery-perf/osquery-perf /go/osquery-perf
|
||||
|
||||
@@ -47,9 +47,9 @@ resource "aws_ecs_task_definition" "loadtest" {
|
||||
awslogs-stream-prefix = "loadtest"
|
||||
}
|
||||
},
|
||||
workingDirectory = "/go/fleet",
|
||||
workingDirectory = "/go",
|
||||
command = [
|
||||
"go", "run", "/go/fleet/cmd/osquery-perf/agent.go",
|
||||
"/go/osquery-perf",
|
||||
"-enroll_secret", data.aws_secretsmanager_secret_version.enroll_secret.secret_string,
|
||||
"-host_count", "5000",
|
||||
"-server_url", "http://${aws_lb.internal.dns_name}",
|
||||
|
||||
Reference in New Issue
Block a user