hapostgres / hapostgres/pg_auto_failover

pg_autoctl: unrecognized option on Alpine Linux

Open
#905 2 comments 0 reactions 0 assignees View on GitHub
good first issue Packaging and CI
Dominant language
C
Stars
1.4k
Forks
142
Avg merge
5h 8m
Merged PRs (30d)
1

Description

When running the following Dockerfile

```
FROM alpine:3.15.4

RUN apk add postgresql-dev openssl-dev krb5-dev ncurses-dev \
build-base linux-headers \
libxml2-dev lz4-dev libxslt-dev libedit-dev readline-dev \
postgresql14 git

RUN git clone --depth 1 --branch v1.6.4 https://github.com/citusdata/pg_auto_failover && \
cd pg_auto_failover && \
make install -j8

RUN /usr/libexec/postgresql14/pg_autoctl create monitor \
--auth trust \
--ssl-self-signed \
--pgdata monitor \
--pgctl /usr/bin/pg_ctl
```

The `pg_autoctl` command results with
```
/usr/libexec/postgresql14/pg_autoctl: unrecognized option: auth
/usr/libexec/postgresql14/pg_autoctl: unrecognized option: ssl-self-signed
/usr/libexec/postgresql14/pg_autoctl: unrecognized option: pgdata
/usr/libexec/postgresql14/pg_autoctl: unrecognized option: pgctl
pg_autoctl: pg_auto_failover control tools and service
usage: pg_autoctl [ --verbose --quiet ]

Available commands:
pg_autoctl
+ create Create a pg_auto_failover node, or formation
+ drop Drop a pg_auto_failover node, or formation
+ config Manages the pg_autoctl configuration
+ show Show pg_auto_failover information
+ enable Enable a feature on a formation
+ disable Disable a feature on a formation
+ get Get a pg_auto_failover node, or formation setting
+ set Set a pg_auto_failover node, or formation setting
+ perform Perform an action orchestrated by the monitor
run Run the pg_autoctl service (monitor or keeper)
watch Display a dashboard to watch monitor's events and state
stop signal the pg_autoctl service for it to stop
reload signal the pg_autoctl for it to reload its configuration
status Display the current status of the pg_autoctl service
help print help message
version print pg_autoctl version
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.