Skip to content

Commit

Permalink
take out pgadmin4 since no noarch package available?
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Mar 2, 2024
1 parent f8fa306 commit 5382ed2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,19 @@ RUN openssl req -new -nodes -newkey rsa:2048 -subj "/commonName=localhost.locald

# Install pgAdmin (ref: https://www.pgadmin.org/download/pgadmin-4-rpm/)

RUN rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-2-1.noarch.rpm \
&& dnf -y install pgadmin4-web
#RUN rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-redhat-repo-2-1.noarch.rpm \
# && dnf -y install pgadmin4-web

# We will overwrite the generated database with almost the same, but with the server entry added
COPY container_files/pgadmin/ /tmp/base/pgadmin/

RUN PGADMIN_SETUP_EMAIL=postgres@localhost.localdomain PGADMIN_SETUP_PASSWORD='Example123' /usr/pgadmin4/bin/setup-web.sh --yes \
&& /usr/bin/cp -p /tmp/base/pgadmin/pgadmin4.db /var/lib/pgadmin/pgadmin4.db \
&& chown apache:apache /var/lib/pgadmin/pgadmin4.db \
&& httpd \
&& curl http://127.0.0.1/pgadmin4/ \
&& pkill httpd \
&& rm -f /run/httpd/httpd.pid
#COPY container_files/pgadmin/ /tmp/base/pgadmin/

#RUN PGADMIN_SETUP_EMAIL=postgres@localhost.localdomain PGADMIN_SETUP_PASSWORD='Example123' /usr/pgadmin4/bin/setup-web.sh --yes \
# && /usr/bin/cp -p /tmp/base/pgadmin/pgadmin4.db /var/lib/pgadmin/pgadmin4.db \
# && chown apache:apache /var/lib/pgadmin/pgadmin4.db \
# && httpd \
# && curl http://127.0.0.1/pgadmin4/ \
# && pkill httpd \
# && rm -f /run/httpd/httpd.pid



Expand Down

0 comments on commit 5382ed2

Please sign in to comment.