-
Notifications
You must be signed in to change notification settings - Fork 118
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 option to build image using source code directly #304
Conversation
/test-integration |
prepare-image.sh
Outdated
# SOURCE install # | ||
if [[ $INSTALL_TYPE == "source" ]]; then | ||
dnf upgrade -y | ||
dnf install -y python3-pip python3-devel gcc |
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.
You'll probably need a few other development libraries: ffi, ssl, etc.
3afc4c0
to
ca5d42a
Compare
/test-integration |
ca5d42a
to
f7bb5ae
Compare
/test-integration |
/retest |
/test-integration |
f7bb5ae
to
24a4609
Compare
/test-inteagration |
/test-integration |
24a4609
to
25d0175
Compare
/test-integration |
25d0175
to
1bdb8ea
Compare
/test-integration |
1bdb8ea
to
e80e05d
Compare
/test-integration |
1 similar comment
/test-integration |
it works! \o/ |
dnf upgrade -y | ||
dnf install -y python3-pip python3-devel gcc | ||
pip3 install --upgrade pip | ||
pip3 install --prefix /usr -r $IRONIC_PKG_LIST -c https://raw.githubusercontent.com/openstack/requirements/master/upper-constraints.txt |
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, so you use the upstream constraints. This is fine, but do you realize that the services and vendor dependencies are not there?
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.
yeah, this being a PoC does not include everything
in the final version we'll have to add the rest of the dependencies that are not strictly needed in CI but instead for the real final image
e80e05d
to
89f77db
Compare
/test-integration |
c787744
to
6b6a5c4
Compare
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.
Look good to me. Just one comment below
6b6a5c4
to
855baf8
Compare
/test-v1b1-integration |
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.
/lgtm
/hold I need one more test |
855baf8
to
39c5b7d
Compare
/unhold |
/test-v1b1-integration |
/test-v1b1-centos-integration |
/test-v1b1-centos-integration |
/lgtm |
if [[ ! -z ${EXTRA_PKGS_LIST:-} ]]; then | ||
if [[ -s /tmp/${EXTRA_PKGS_LIST} ]]; then | ||
xargs -rtd'\n' dnf install -y < /tmp/${EXTRA_PKGS_LIST} | ||
fi | ||
fi | ||
dnf install -y --enablerepo=epel inotify-tools | ||
|
||
dnf install -y --enablerepo=epel inotify-tools python3-gunicorn |
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.
gunicorn can be installed from pypi just as well
if [[ $INSTALL_TYPE == "source" ]]; then | ||
dnf upgrade -y | ||
dnf install -y python3-pip python3-devel gcc git-core | ||
pip3 install --upgrade pip |
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'd rather avoid an unconditional upgrade of pip, we've had enough issues with it upstream
# SOURCE install # | ||
if [[ $INSTALL_TYPE == "source" ]]; then | ||
dnf upgrade -y | ||
dnf install -y python3-pip python3-devel gcc git-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.
Should be removed from the final image
/approve Works as a proof of concept, although I'd see a few things cleaned up next. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtantsur The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Allow dnsmasq to work as a DNS forwarder
This patch adds a build-time argument that allows to build the ironic container image using source code instead of RPMs
At the moment this option should only be used for testing purpose, to simplify building images using the latest code or local patches
It is possible to test it using metal3-dev-env with the patch metal3-io/metal3-dev-env#839