Skip to content

Commit

Permalink
Fix broken curl and pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardocc committed Oct 26, 2022
1 parent 8738873 commit 08d67f0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM public.ecr.aws/amazonlinux/amazonlinux:2022

RUN yum -y update
RUN yum install -y tar net-tools curl vim unzip less libevent-devel openssl-devel python-devel libtool git patch make
RUN yum -y update
RUN yum install -y tar net-tools curl vim unzip less libevent-devel openssl-devel python-devel libtool git patch make gcc --allowerasing
RUN git clone https://github.com/pgbouncer/pgbouncer.git --branch "pgbouncer_1_15_0" && \
git clone https://github.com/awslabs/pgbouncer-rr-patch.git && \
cd pgbouncer-rr-patch && \
Expand All @@ -10,13 +10,14 @@ RUN git clone https://github.com/pgbouncer/pgbouncer.git --branch "pgbouncer_1_1
git submodule init && \
git submodule update && \
./autogen.sh && \
./configure --prefix=/usr/local && \
ln -s /usr/bin/x86_64-amazon-linux-gnu-pkg-config /usr/bin/x86_64-redhat-linux-gnu-pkg-config && \
./configure --prefix=/usr/local --exec-prefix=/usr/bin && \
make && \
make install

RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
RUN chmod +x ./kubectl && \
mv kubectl /usr/sbin
mv kubectl /usr/sbin
RUN chmod 777 -R /usr/local/

# Installed with pgbouncer
Expand All @@ -29,7 +30,7 @@ WORKDIR /home/pgbouncer

#Install aws cli
RUN cd /home/pgbouncer
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN mkdir /home/pgbouncer/.aws
Expand Down

0 comments on commit 08d67f0

Please sign in to comment.