fix keyringer script

bump psql
This commit is contained in:
vilorij 2023-12-08 18:29:07 +07:00 committed by GitHub
parent 24e79edfc5
commit fe5be42fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -9,7 +9,9 @@ RUN ./clone-proto-modules.sh /repos
FROM docker.io/library/erlang:${OTP_VERSION}
RUN apt-get --yes update \
RUN curl -fSsL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /usr/share/keyrings/postgresql.gpg > /dev/null \
&& echo deb [arch=amd64,arm64,ppc64el signed-by=/usr/share/keyrings/postgresql.gpg] http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main | tee /etc/apt/sources.list.d/postgresql.list \
&& apt-get --yes update \
&& apt-get --yes --no-install-recommends install \
curl \
bind9-dnsutils \
@ -21,9 +23,11 @@ RUN apt-get --yes update \
nano \
netcat-openbsd \
jq \
postgresql-client-13 \
python3-pip \
postgresql-client-15 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& pip install six
# step-cli
ARG STEP_VERSION

View File

@ -58,7 +58,7 @@ def call(args, raw=False, stdin=""):
def call_keyring(cds_address, func, *args):
thrift_port = os.environ["THRIFT_PORT"]
thrift_port = os.environ.get("THRIFT_PORT",8022)
json_args = [json.dumps(arg) for arg in args]
woorl_args = \
[
@ -136,7 +136,7 @@ def get_state(cds_address):
def main(argv):
address = os.environ["CDS"]
address = os.environ.get("CDS","kds")
help_promt = "usage: keyring.py {init | unlock | state}" \
" [-h | --help | -a <woorl address>| --address <woorl address>]"
try: