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 webrick --no-document && \
28 gem install etc -v 1.3.0 --no-document && \
29 apk del .build-dependencies && \
32 ENV ONAP_LOG=/home/onap/logs
33 RUN mkdir $ONAP_LOG && chown onap:onap $ONAP_LOG
35 # user/group are the same as in integration/docker/onap-python base image
36 ENV user=onap group=onap
40 # user/group args are inherited from base_sdc-python base image
41 COPY --chown=onap:onap scripts /home/onap/scripts
43 RUN chmod 770 -R /home/onap/scripts && \
44 cd /home/onap/scripts && \
45 python setup.py install --user
47 ENV PATH=$PATH:/home/onap/.local/bin
49 COPY --chown=onap:onap chef-solo /home/onap/chef-solo/
50 COPY --chown=onap:onap chef-repo/cookbooks /home/onap/chef-solo/cookbooks/
51 COPY --chown=onap:onap startup.sh /home/onap/
53 RUN chmod 770 /home/onap/startup.sh
57 ENTRYPOINT /home/${user}/startup.sh