Skip to content

Commit

Permalink
dockerfiles:bugfix - fixing error with diferent migration binary name (
Browse files Browse the repository at this point in the history
…#500)

Signed-off-by: Nathan Martins <[email protected]>

Co-authored-by: Wilian Gabriel <[email protected]>
  • Loading branch information
nathanmartinszup and wiliansilvazup authored Dec 29, 2021
1 parent 5477336 commit 2fb0855
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions analytic/deployments/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ WORKDIR /analytic
RUN go get -t -v -d ./...

RUN GOOS=linux go build -a -o horusec-analytic-main ./cmd/app/main.go
RUN GOOS=linux go build -a -o horusec-analytic-v1-to-v2-migrate ./cmd/migration/v2/main.go
RUN GOOS=linux go build -a -o horusec-analytic-migrate-v1-v2 ./cmd/migration/v2/main.go

FROM alpine:3.15.0

COPY --from=builder /analytic/horusec-analytic-main .
COPY --from=builder /analytic/horusec-analytic-v1-to-v2-migrate .
COPY --from=builder /analytic/horusec-analytic-migrate-v1-v2 .

ENTRYPOINT ["./horusec-analytic-main"]
3 changes: 3 additions & 0 deletions analytic/deployments/dockerfiles/Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM alpine

COPY horusec-analytic /

# migration bin name is used in horusec operator, any change should be reflected there.
COPY horusec-analytic-migrate-v1-v2 /

ENTRYPOINT ["./horusec-analytic"]
4 changes: 2 additions & 2 deletions api/deployments/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ WORKDIR /api
RUN go get -t -v -d ./...

RUN GOOS=linux go build -a -o horusec-api-main ./cmd/app/main.go
RUN GOOS=linux go build -a -o horusec-api-v1-to-v2-migrate ./cmd/migration/v2/main.go
RUN GOOS=linux go build -a -o horusec-api-migrate-v1-v2 ./cmd/migration/v2/main.go

FROM alpine:3.15.0

COPY --from=builder /api/horusec-api-main .
COPY --from=builder /api/horusec-api-v1-to-v2-migrate .
COPY --from=builder /api/horusec-api-migrate-v1-v2 .

ENTRYPOINT ["./horusec-api-main"]
3 changes: 3 additions & 0 deletions api/deployments/dockerfiles/Dockerfile.goreleaser
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM alpine

COPY horusec-api /

# migration bin name is used in horusec operator, any change should be reflected there.
COPY horusec-api-migrate-v1-v2 /

ENTRYPOINT ["./horusec-api"]
2 changes: 1 addition & 1 deletion e2e/cypress/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ migrate-horusec-postgresql:
$(CD) ../.. && $(MAKE) migrate-drop && $(MAKE) migrate-up && $(CD) ./e2e/cypress

test-e2e-install:
$(NPM) install && $(NPX) browserslist@latest --update-db
$(NPM) install && npm_config_yes=true $(NPX) browserslist@latest --update-db

test-e2e-auth-horusec-without-application-admin: test-e2e-install compose-e2e-auth-horusec-without-application-admin
$(NPM) run test::auth-horusec::without-application-admin
Expand Down

0 comments on commit 2fb0855

Please sign in to comment.