Skip to content

Conversation

@alaye-ms
Copy link
Contributor

@alaye-ms alaye-ms commented Sep 5, 2025

No description provided.

RUN --mount=type=cache,target=/root/.cache/go-build ./scripts/build.sh

# Step 2: build the image to be actually run
FROM golang:1-alpine
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this what CNPG does? Or could we go distroless?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do distroless, cnpg uses gcr.io/distroless/static-debian12:nonroot

// Plugin parameter keys
const (
ImageParam = "image" // string
ReplicationHostParam = "replicationHost" // Required: primary host
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't that implicit in CNPG?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CNPG also takes an optional image name

)

const (
defaultImage = "ghcr.io/cloudnative-pg/postgresql:16"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have an image with just the wal reciever?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try to make that, yeah

"--port", "5432",
"--username", "postgres",
"--no-password",
"--verbose",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that should probbaly depend on log level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants