diff options
author | sebdet <sebastien.determe@intl.att.com> | 2020-09-21 22:13:05 +0200 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2021-05-12 10:27:10 +0000 |
commit | df353be353e1ec25ac2a0e64a9eb617dcbc87703 (patch) | |
tree | e79c636bc4f67bdd8392b24c85f2f6cb26e3c67a /catalog-be/sdc-backend-init/Dockerfile | |
parent | 936781153118364e60662529dbd7217416a26148 (diff) |
Use integration-java11 Dockerfile
Use onap/integration-java11:7.1.0 as a source for the images requiring JDK 11 in SDC
Issue-ID: SDC-3298
Change-Id: Ifee3d2942dcb9c078f2ebb686bdabc0ecca857b3
Signed-off-by: xuegao <xue.gao@intl.att.com>
Diffstat (limited to 'catalog-be/sdc-backend-init/Dockerfile')
-rw-r--r-- | catalog-be/sdc-backend-init/Dockerfile | 57 |
1 files changed, 47 insertions, 10 deletions
diff --git a/catalog-be/sdc-backend-init/Dockerfile b/catalog-be/sdc-backend-init/Dockerfile index 3ffcbe691a..35e485b197 100644 --- a/catalog-be/sdc-backend-init/Dockerfile +++ b/catalog-be/sdc-backend-init/Dockerfile @@ -1,22 +1,59 @@ -FROM onap/base_sdc-python:1.7.0 +FROM onap/integration-python:8.0.0 + +USER root + +# Needed for pycurl +ENV PYCURL_SSL_LIBRARY=openssl + +# Install packages only needed for building +RUN apk update && \ + apk add binutils jq libpng && \ + apk add --no-cache \ + libcurl \ + ruby && \ + apk add --no-cache --virtual .build-dependencies \ + libressl-dev \ + ruby-dev \ + libffi-dev \ + libxml2-dev \ + build-base \ + curl-dev && \ + # needed libcurl to install correctly + pip install 'pycurl==7.43.0.1' && \ + set -ex && \ + gem install \ + chef:13.8.5 \ + berkshelf:6.3.1 \ + io-console:0.4.6 \ + etc webrick \ + --no-document && \ + apk del .build-dependencies + +ENV ONAP_LOG=/home/onap/logs +RUN mkdir $ONAP_LOG && chown onap:onap $ONAP_LOG + +# user/group are the same as in integration/docker/onap-python base image +ENV user=onap group=onap + +USER onap # user/group args are inherited from base_sdc-python base image -COPY --chown=$user:$group scripts /home/$user/scripts +COPY --chown=onap:onap scripts /home/onap/scripts -RUN chmod 770 -R /home/$user/scripts && \ - cd /home/$user/scripts && \ +RUN chmod 770 -R /home/onap/scripts && \ + cd /home/onap/scripts && \ python setup.py install --user -ENV PATH=$PATH:/home/$user/.local/bin +ENV PATH=$PATH:/home/onap/.local/bin -COPY --chown=$user:$group chef-solo /home/$user/chef-solo/ +COPY --chown=onap:onap chef-solo /home/onap/chef-solo/ -COPY --chown=$user:$group chef-repo/cookbooks /home/$user/chef-solo/cookbooks/ +COPY --chown=onap:onap chef-repo/cookbooks /home/onap/chef-solo/cookbooks/ -COPY --chown=$user:$group startup.sh /home/$user/ +COPY --chown=onap:onap startup.sh /home/onap/ -RUN chmod 770 /home/$user/startup.sh +RUN chmod 770 /home/onap/startup.sh -WORKDIR /home/$user/ +WORKDIR /home/onap/ ENTRYPOINT /home/${user}/startup.sh |