Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions api/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Build the manager binary

# Define a default value for GO_VERSION if not passed
ARG GO_VERSION=1.25

FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-bookworm

WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

# Copy the go source
RUN mkdir -p /root/.kube
#COPY /tmp/kubeconfig $HOME/.kube/config
COPY main.go main.go
COPY cmd/ cmd/
COPY apis/ apis/
COPY controllers/ controllers/
COPY internal/ internal/
COPY docs/ docs/

#RUN CGO_ENABLED=0 go build -a -o manager main.go
RUN CGO_ENABLED=0 go build -a -o pac-go-server ./cmd/pac-go-server
#RUN CGO_ENABLED=0 go build -a -o event-notifier ./cmd/event-notifier

ENTRYPOINT ["./pac-go-server"]

7 changes: 6 additions & 1 deletion keycloak-infra/keycloak/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ services:
POSTGRES_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak:26.5.7
command: start-dev
command: start-dev --import-realm
environment:
KC_HOSTNAME_URL: "http://localhost:8080"
KC_HOSTNAME_ADMIN_URL: "http://localhost:8080"
KC_HOSTNAME_STRICT: "false"
KC_HOSTNAME_STRICT_BACKCHANNEL: "false"
KC_DB: postgres
KC_DB_URL_HOST: postgres
KC_DB_URL_DATABASE: keycloak
Expand All @@ -31,5 +35,6 @@ services:
- 8080:8080
volumes:
- ./theme/:/opt/keycloak/themes
- ./pac/realm-export.json:/opt/keycloak/data/import/pac-realm.json
depends_on:
- postgres
Loading
Loading