Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ubi8 container base image #195

Merged
merged 10 commits into from
May 19, 2022
Merged
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ tests-unit: validate_go ## Unit tests

.PHONY: tests-e2e
tests-e2e: validate_go $(KIND) ## End-to-end tests
go test -p 1 -v -timeout 1200s -race $$(go list ./... | grep /e2e)
go test -p 1 -v -timeout 20m -race $$(go list ./... | grep /e2e)

.PHONY: tests-all
tests-all: validate_go tests-unit tests-e2e ## All tests
Expand Down
10 changes: 5 additions & 5 deletions contrib/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ RUN git status --porcelain
RUN make build_code

# final stage
FROM ubuntu
RUN apt-get update && apt-get install -y \
netbase \
FROM registry.access.redhat.com/ubi8/ubi-minimal
RUN microdnf install -y \
iputils \
curl \
net-tools \
&& rm -rf /var/lib/apt/lists/*
&& microdnf -y clean all && rm -rf /var/cache

COPY --from=builder /app/flowlogs-pipeline /app/
COPY --from=builder /app/confgenerator /app/

# expose ports
EXPOSE 2055

ENTRYPOINT ["/app/flowlogs-pipeline"]
ENTRYPOINT ["/app/flowlogs-pipeline"]