THREESCALE-11393: Upgrade the Dockefile for system image based on RHEL8#1
THREESCALE-11393: Upgrade the Dockefile for system image based on RHEL8#1
Conversation
| ENV LD_LIBRARY_PATH=/opt/oracle/instantclient/:$LD_LIBRARY_PATH \ | ||
| ENV LD_LIBRARY_PATH=/opt/oracle/instantclient/ \ |
There was a problem hiding this comment.
apparently, it was causing some issues when building: https://issues.redhat.com/browse/THREESCALE-11393?focusedId=25700046&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-25700046
| RUN ./script/oracle/install-instantclient-packages.sh \ | ||
| && source /opt/app-root/etc/scl_enable \ | ||
| && DB=oracle bundle install --local --deployment --jobs $(grep -c processor /proc/cpuinfo) --retry=5 | ||
| RUN dnf install wget unzip make ruby-devel gcc gcc-c++ redhat-rpm-config libaio -y \ | ||
| && ./script/oracle/install-instantclient-packages.sh \ | ||
| && ln -s /usr/lib64/libnsl.so.2 /usr/lib64/libnsl.so.1 \ | ||
| && DB=oracle bundle install --jobs $(grep -c processor /proc/cpuinfo) --retry=5 |
There was a problem hiding this comment.
I assume this is the ultimate fix. The root of the issue is that when building the system image, we now remove most build dependencies to have a slimmer image.
I don't know if we support disconnected environments. But installing these deps during build will not work in such.
So the above is a valid solution for internet connected builds. Although I'm concerned about the nsl linking.
An alternative solution would be to ship also a builder image that will be used for this kind of builds 🤔
b682b67 to
8047970
Compare
akostadinov
left a comment
There was a problem hiding this comment.
If we are ok that image build requires internet connection to work, then it is a sound solution. Thank you.
Update the
Dockerfilefor building a system image with Oracle dependencies, based on the system image from 3scale 2.15.https://issues.redhat.com/browse/THREESCALE-11393