Skip to content

Commit

Permalink
Cleanup some container assets
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Sep 19, 2023
1 parent 49be51b commit 0951496
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 34 deletions.
4 changes: 0 additions & 4 deletions images/Containerfile.core.base
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,11 @@ 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
COPY images/assets/wait_on_database_migrations.sh /usr/bin/wait_on_database_migrations.sh
COPY images/assets/pulp-common-entrypoint.sh /pulp-common-entrypoint.sh
COPY images/assets/pulp-api /usr/bin/pulp-api
COPY images/assets/pulp-content /usr/bin/pulp-content
COPY images/assets/pulp-resource-manager /usr/bin/pulp-resource-manager
COPY images/assets/pulp-worker /usr/bin/pulp-worker

# Need to precreate when running pulp as the pulp user
RUN touch /var/log/galaxy_api_access.log && \
chown pulp:pulp /var/log/galaxy_api_access.log && \
chmod u+rw /var/log/galaxy_api_access.log

ENTRYPOINT ["/pulp-common-entrypoint.sh"]
14 changes: 0 additions & 14 deletions images/assets/pulp-common-entrypoint.sh

This file was deleted.

14 changes: 0 additions & 14 deletions images/assets/pulp-resource-manager

This file was deleted.

1 change: 0 additions & 1 deletion images/assets/pulp-worker
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
/usr/bin/wait_on_postgres.py
/usr/bin/wait_on_database_migrations.sh

export PULP_SETTINGS=/etc/pulp/settings.py
export PATH=/usr/local/bin:/usr/bin/
exec pulpcore-worker
2 changes: 1 addition & 1 deletion images/assets/readyz.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def is_content_healthy(path):
The cmdline value for this PID looks like:
```
# pip installation
gunicorn: master \[pulp-{content,api,worker,resource-manager}\]
gunicorn: master \[pulp-{content,api}\]
```
OR
```
Expand Down
4 changes: 4 additions & 0 deletions images/pulp-minimal/stable/Containerfile.core
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ RUN pip3 install --upgrade \
pulp-ostree${PULP_OSTREE_VERSION} && \
rm -rf /root/.cache/pip

# Prevent pip-installed /usr/local/bin/pulp-content from getting run instead of
# our /usr/bin/pulp-content script.
RUN rm -r /usr/local/bin/pulp-content

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

0 comments on commit 0951496

Please sign in to comment.