Skip to content

Commit

Permalink
Update the README and add labels to link the images to the GitHub repo
Browse files Browse the repository at this point in the history
  • Loading branch information
azlyth committed Jun 7, 2024
1 parent 1d135cd commit c7c526c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ As a common example, if you sleep all of your staging/ephemeral deployments for

- **Ingress controller awareness**: Snorlax determines which ingress controller you're running so it can create the correct ingress routes for sleep.
- **Stays awake until next sleep cycle**: If a request is received during the sleep time, the deployment will stay awake until the next sleep cycle
- **Ignores ELB health checks**: Snorlax ignores health checks from ELBs so that they don't wake up the deployment

## Try it yourself locally

Expand Down
4 changes: 4 additions & 0 deletions operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 GOOS=${TARGETO
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot

# Link the GitHub package to this repo
LABEL org.opencontainers.image.source https://github.com/moonbeam-nyc/snorlax

WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532
Expand Down
3 changes: 3 additions & 0 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build CGO_ENABLED=0 go build -o sn
#### SECOND STAGE ####
FROM alpine:latest

# Link the GitHub package to this repo
LABEL org.opencontainers.image.source https://github.com/moonbeam-nyc/snorlax

# Set the directory
WORKDIR /app

Expand Down

0 comments on commit c7c526c

Please sign in to comment.