1 FROM onap/integration-python:8.0.0
6 ENV PYCURL_SSL_LIBRARY=openssl
8 # Install packages only needed for building
10 apk add binutils jq libpng && \
14 apk add --no-cache --virtual .build-dependencies \
21 # needed libcurl to install correctly \
22 python -m pip install --upgrade pip \
23 pip install 'pycurl==7.44.1' && \
25 gem install public_suffix -v 4.0.7 --no-document && \
26 gem install multipart-post -v 2.2.0 --no-document && \
27 gem install chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 etc webrick --no-document && \
28 apk del .build-dependencies && \
31 ENV ONAP_LOG=/home/onap/logs
32 RUN mkdir $ONAP_LOG && chown onap:onap $ONAP_LOG
34 # user/group are the same as in integration/docker/onap-python base image
35 ENV user=onap group=onap
39 # user/group args are inherited from base_sdc-python base image
40 COPY --chown=onap:onap scripts /home/onap/scripts
42 RUN chmod 770 -R /home/onap/scripts && \
43 cd /home/onap/scripts && \
44 python setup.py install --user
46 ENV PATH=$PATH:/home/onap/.local/bin
48 COPY --chown=onap:onap chef-solo /home/onap/chef-solo/
49 COPY --chown=onap:onap chef-repo/cookbooks /home/onap/chef-solo/cookbooks/
50 COPY --chown=onap:onap startup.sh /home/onap/
52 RUN chmod 770 /home/onap/startup.sh
56 ENTRYPOINT /home/${user}/startup.sh