-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Docker Configuration and Base Image #11
Open
arkaprovob
wants to merge
2
commits into
spaship:master
Choose a base branch
from
arkaprovob:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3-298.1618432845 | ||
FROM registry.access.redhat.com/ubi9:9.2-755 | ||
|
||
LABEL name="spaship/httpd" \ | ||
summary="Apache Http Server for SPAship" \ | ||
description="This a runtime image for SPAship apps" \ | ||
maintainer="Kun Yan <kyan@redhat.com>" | ||
maintainer="Arkaprovo Bhattacharjee <arbhatta@redhat.com>" | ||
|
||
EXPOSE 8080 | ||
|
||
RUN microdnf install -y --nodocs httpd && microdnf clean all | ||
|
||
RUN sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf \ | ||
&& sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf \ | ||
&& chgrp -R 0 /var/log/httpd /var/run/httpd \ | ||
&& chmod -R g=u /var/log/httpd /var/run/httpd | ||
RUN dnf install -y --nodocs --allowerasing coreutils httpd vim-minimal && \ | ||
arkaprovob marked this conversation as resolved.
Show resolved
Hide resolved
|
||
dnf clean all && \ | ||
sed -i 's/Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf && \ | ||
sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf && \ | ||
chgrp -R 0 /var/log/httpd /var/run/httpd && \ | ||
chmod -R g=u /var/log/httpd /var/run/httpd && \ | ||
ln -sf /dev/stdout /var/log/httpd/access_log && \ | ||
ln -sf /dev/stderr /var/log/httpd/error_log | ||
|
||
ADD ./httpd.conf /etc/httpd/conf/ | ||
ADD ./conf.d/ /etc/httpd/conf.d/ | ||
|
||
# forward request and error logs to docker log collector | ||
RUN ln -sf /dev/stdout /var/log/httpd/access_log \ | ||
&& ln -sf /dev/stderr /var/log/httpd/error_log | ||
|
||
USER 1001 | ||
|
||
CMD httpd -D FOREGROUND |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are no important dependency requirement, I still recommend use the UBI minimal image.
Less size means less code and less security leak.
I think ubi8-mininal has been verified all features we need are supported.
PS: I have't check if there has any duplicate packages had been installed in ubi base image, but will install again along with httpd installation.
IMO, this is not a big problem, but we should choose the better one for our situation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you talking about this ?
registry.access.redhat.com/ubi9/ubi-minimal:9.2-750.1696515534
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is the latest version of ubi9 minimal https://catalog.redhat.com/software/containers/ubi9-minimal/61832888c0d15aff4912fe0d?architecture=amd64&image=651ecb34cd44fe7d45c78c47&container-tabs=overview
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
registry.access.redhat.com/ubi9-minimal:9.2-750.1696515534