6 apk --no-cache add bash curl gcc wget mysql-client openssl-dev
7 apk --no-cache add python3-dev libffi-dev musl-dev py3-virtualenv
9 # get binary zip from nexus - modeling-etsicatalog
11 wget -q -O modeling-etsicatalog.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.modeling.etsicatalog&a=modeling-etsicatalog&e=zip&v=${pkg_version}-SNAPSHOT&e=zip" && \
12 unzip modeling-etsicatalog.zip && \
13 rm -rf modeling-etsicatalog.zip && \
14 pip install --upgrade setuptools pip && \
15 pip install --no-cache-dir --pre -r /service/modeling/etsicatalog/requirements.txt
16 find /service -name '*.sh'|xargs chmod a+x
21 addgroup -g 1000 -S onap && \
22 adduser onap -D -G onap -u 1000 && \
23 chown onap:onap -R /service
28 if [ ! -d "/var/log/onap" ]; then
32 chown onap:onap -R /var/log/onap
33 chmod g+s /var/log/onap
39 rm -rf /var/cache/apk/*
40 rm -rf /root/.cache/pip/*