Skip to content

Commit

Permalink
Remove installing pulpcore in non-s6 base image
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
gerrod3 committed Oct 8, 2024
1 parent 52ea4e6 commit f8be370
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions images/Containerfile.core.base
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ RUN pip install \
gunicorn \
python-nginx \
"django-storages[boto3,azure]>=1.12.2" \
"requests[use_chardet_on_py3]" \
pulpcore
"requests[use_chardet_on_py3]"

RUN groupadd -g 700 --system pulp
RUN useradd -d /var/lib/pulp --system -u 700 -g pulp pulp
Expand All @@ -82,12 +81,6 @@ RUN mkdir -p /etc/pulp/certs \
# https://github.com/python-ldap/python-ldap/issues/432#issuecomment-1016756358
RUN ln -s /usr/lib64/libldap.so /usr/lib64/libldap_r.so

RUN PULP_STATIC_ROOT=/var/lib/operator/static/ PULP_CONTENT_ORIGIN=localhost \
/usr/local/bin/pulpcore-manager collectstatic --clear --noinput --link

RUN chown pulp:pulp -R /var/lib/pulp \
/var/lib/operator/static

COPY images/assets/readyz.py /usr/bin/readyz.py
COPY images/assets/route_paths.py /usr/bin/route_paths.py
COPY images/assets/wait_on_postgres.py /usr/bin/wait_on_postgres.py
Expand Down
2 changes: 1 addition & 1 deletion images/galaxy/stable/Containerfile.core
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN PULP_STATIC_ROOT=/var/lib/operator/static/ PULP_CONTENT_ORIGIN=localhost \
USER root:root

RUN chmod 2775 /var/lib/pulp/{scripts,media,tmp,assets}
RUN chown :root /var/lib/pulp/{scripts,media,tmp,assets}
RUN chown -R :root /var/lib/pulp/{scripts,media,tmp,assets} /var/lib/operator/static
2 changes: 1 addition & 1 deletion images/pulp/stable/Containerfile.core
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ RUN PULP_STATIC_ROOT=/var/lib/operator/static/ PULP_CONTENT_ORIGIN=localhost \
USER root:root

RUN chmod 2775 /var/lib/pulp/{scripts,media,tmp,assets}
RUN chown :root /var/lib/pulp/{scripts,media,tmp,assets}
RUN chown -R :root /var/lib/pulp/{scripts,media,tmp,assets} /var/lib/operator/static

0 comments on commit f8be370

Please sign in to comment.