Skip to content

Commit

Permalink
make it possible to use rhel9-2-els image in Brew build
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Jul 2, 2024
1 parent 16f9a23 commit 13d3158
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dependencies/che-plugin-registry/build/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

# https://registry.access.redhat.com/rhel8/postgresql-15
FROM registry.redhat.io/rhel8/postgresql-15:1-50.1708914865
# rhel9-2-els is used for the build in Brew
# FROM registry.redhat.io/rhel9-2-els/rhel:9.2-1222
USER 0
WORKDIR /

Expand Down Expand Up @@ -42,6 +44,9 @@ COPY ./build/dockerfiles/content_set*.repo /etc/yum.repos.d/
COPY ./build/dockerfiles/rhel.install.sh /tmp
RUN /tmp/rhel.install.sh && rm -f /tmp/rhel.install.sh

# Install postgresql and nodejs into rhel9-2-els
# RUN dnf module install postgresql:15/server nodejs:18/development -y

# Copy OpenVSX server files
COPY --chown=0:0 /openvsx-server.tar.gz .
RUN tar --no-same-owner -xf openvsx-server.tar.gz && rm openvsx-server.tar.gz
Expand Down Expand Up @@ -135,8 +140,8 @@ RUN chmod 777 /var/run/postgresql && \

RUN \
echo "Change permissions for postgres user" && \
chmod -R g+rwx /var/lib/pgsql/15 /var/lib/pgsql/data /var/lib/pgsql/backups && \
chgrp -R 0 /var/lib/pgsql/15 /var/lib/pgsql/data /var/lib/pgsql/backups && \
chmod -R g+rwx /var/lib/pgsql/15 /var/lib/pgsql/15 /var/lib/pgsql/data /var/lib/pgsql/backups && \
chgrp -R 0 /var/lib/pgsql/15 /var/lib/pgsql/15 /var/lib/pgsql/data /var/lib/pgsql/backups && \
mv /var/lib/pgsql/15/data/database /var/lib/pgsql/15/data/old

ARG DS_BRANCH=devspaces-3-rhel-8
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[rhel-9-for-appstream-rpms-pulp]
name=rhel-9-for-appstream-rpms-pulp
baseurl=https://rhsm-pulp.corp.redhat.com/content/dist/rhel9/9/$basearch/appstream/os
enabled=0
gpgcheck=0
skip_if_unavailable=True

[rhel-9-for-baseos-rpms-pulp]
name=rhel-9-for-baseos-rpms-pulp
baseurl=https://rhsm-pulp.corp.redhat.com/content/dist/rhel9/9/$basearch/baseos/os
enabled=0
gpgcheck=0
skip_if_unavailable=True

0 comments on commit 13d3158

Please sign in to comment.