-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add s2i-core version #121
Add s2i-core version #121
Conversation
base/Dockerfile
Outdated
RUN rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \ | ||
INSTALL_PKGS="autoconf \ | ||
automake \ | ||
bsdtar \ |
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.
i think you need bsdtar in core (needed for s2i).
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.
Thanks, added.
@@ -6,7 +6,7 @@ | |||
# IMAGE_NAME specifies a name of the candidate image used for testing. | |||
# The image has to be available before this script is executed. | |||
# | |||
IMAGE_NAME=${IMAGE_NAME-openshift/base-centos7-candidate} | |||
IMAGE_NAME=${IMAGE_NAME-centos/s2i-base-centos7-candidate} |
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.
Just out of curiosity, what's the reason behind this change?
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.
This image is no longer built to openshift/ namespace. It is built as centos/s2i-base-centos7
. This changes was forgotten to be done in #114
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.
Ah, thanks!
base/Dockerfile
Outdated
# This is the list of basic dependencies that all language Docker image can | ||
# consume. | ||
# Also setup the 'openshift' user that is used for the build execution and for the | ||
# application runtime execution. |
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.
The user is not being set in the base so the comment should be removed. Also in tho .rhel7 version
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.
Thanks, updated.
base/Dockerfile
Outdated
# Also setup the 'openshift' user that is used for the build execution and for the | ||
# application runtime execution. | ||
# TODO: Use better UID and GID values | ||
RUN rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 && \ |
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.
I believe this can be omitted since it's already in core.
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.
Thanks, updated.
base/Dockerfile
Outdated
which \ | ||
zlib-devel" && \ | ||
mkdir -p ${HOME}/.pki/nssdb && \ | ||
chown -R 1001:0 ${HOME}/.pki && \ |
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.
I've tested it and it seems these two lines above can also be safely removed from the base.
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.
Thanks, updated.
base/Dockerfile.rhel7
Outdated
# application runtime execution. | ||
# TODO: Use better UID and GID values | ||
RUN yum repolist > /dev/null && \ | ||
yum-config-manager --enable rhel-7-server-optional-rpms && \ |
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.
These two lines above should be able to be omitted as well.
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.
Thanks, updated.
I've tried building s2i-python-container on top of the new base image and everything went well, all tests are passing. But let's see how dbs do when build against the core. Just a note: I would have appreciated splitting the change into more commits so the diffs are easier to navigate. I've made a few comments, however, overall the PR looks good to me. 👍 |
@torsava Thanks for the review.
Github CI for container images is testing changes also for all images which uses this image as a base. So if CI pass tests for current s2i based images are passing too. I'll try to test PRs for database images manually.
Sorry. I've split it into more commits. I hope it is easier to review now. |
core/README.md
Outdated
`docker exec ... /bin/bash` command, the collection will be automatically enabled. | ||
|
||
*Note*: | ||
The language interpreter executables in the collection (e.g., `ruby`) |
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.
As this is s2i-core
this should not mention language interpreter executables as none of the language images will be built directly upon s2i-core
afaik.
Maybe write it in a general manner, something along the lines "Executables provided by the image layered upon s2i-core
might not be present in a directory named in the PATH
..."
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.
Thanks. I've made it more generic.
@omron93 Thanks for the commit split, it's much more readable now. And the changes look good as well! |
Pull requests with adding s2i support for database images (sclorg/mongodb-container#239 and sclorg/mariadb-container#32) are working with |
LGTM, however we need to wait with merging this until after we manage to sync up in the rhel space. |
@omron93 Regarding the movement from the |
@torsava I can add the change into this PR. |
Rebased + |
Sorry, I broke your PR again by merging #118. Anyway, there are two another issues, that make the tests fail:
|
c539c79
to
cb30e6d
Compare
Rebased.
Thanks. It is fixed now.
This PR adds using of https://github.com/sclorg/container-common-scripts . So squashing should be updated there. (it needs to be fixed too... hopefully I'll do it next week) |
@omron93 It looks like it is a good time for merging, so once you have some time to make the final rebase, please do and merge. Review is done I guess. |
Fix missing indentation
71b5eee
to
9e09ce6
Compare
Tests are passing. So merging. |
Discussed in #115
(npm not added yet)
Which rpm packages should be installed in
s2i-core
and which ins2i-base
?I've choosed
findutils, gettext, scl-utils, tar, yum-utils
forcore
version. (installed in by database images or used in s2i scripts)@bparees @hhorak @jsvgoncalves @torsava @GrahamDumpleton @pkubatrh Please take a look. Which rpms to install in
s2i-core
?