Skip to content

Commit

Permalink
Update .gitmodules to point at release branch release-v0.1.0
Browse files Browse the repository at this point in the history
Update Dockerfile.perses-operator with redhat certified images and instructions to build the application (this is based on perses/perses-operator/Dockerfile.dev)
  • Loading branch information
zhuje committed Jan 31, 2025
1 parent ee47648 commit 9388753
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,4 @@
[submodule "perses-operator"]
path = perses-operator
url = https://github.com/perses/perses-operator.git
#branch = TBD release brach
# sub-module should point to tag v0.1.0
ignore = all #ignore all `git submodule updates` to this submodule (will be manually updated to accomdate usage of tags)
branch = release-v0.1.0
17 changes: 12 additions & 5 deletions Dockerfile.perses-operator
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
FROM alpine AS build-env
RUN apk add --update --no-cache mailcap
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_8_golang_1.22 as build-env

FROM gcr.io/distroless/static-debian12
RUN apk add --update --no-cache make bash mailcap

WORKDIR /app

COPY perses-operator/ .

RUN make build

FROM registry.redhat.io/ubi8/ubi-minimal:8.10-1130

LABEL maintainer="The Perses Authors <[email protected]>"

USER nobody

COPY --chown=nobody:nobody perses-operator/bin/manager /bin/manager
COPY --chown=nobody:nobody perses-operator/LICENSE /LICENSE
COPY --from=build-env --chown=nobody:nobody /app/bin/manager /bin/manager
COPY --chown=nobody:nobody LICENSE /LICENSE
COPY --from=build-env --chown=nobody:nobody /etc/mime.types /etc/mime.types

EXPOSE 8080
Expand Down

0 comments on commit 9388753

Please sign in to comment.