aboutsummaryrefslogtreecommitdiffstats
path: root/integration-tests/integration-tests-init/Dockerfile
diff options
context:
space:
mode:
authorJvD_Ericsson <jeff.van.dam@est.tech>2023-06-13 08:48:16 +0100
committerVasyl Razinkov <vasyl.razinkov@est.tech>2023-06-29 19:59:09 +0000
commit2cecd886d08bd2f97426746aa19b581568c38954 (patch)
treeed46432cde31c929393bf62dc09c54bbd8fcd110 /integration-tests/integration-tests-init/Dockerfile
parentcf0a8b21e85ec41260da802a2b923fabe89c9aaa (diff)
Create test model
Issue-ID: SDC-4471 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I49d6721b9c60cf62ddcdc47beed70db08ba0a031
Diffstat (limited to 'integration-tests/integration-tests-init/Dockerfile')
-rw-r--r--integration-tests/integration-tests-init/Dockerfile55
1 files changed, 55 insertions, 0 deletions
diff --git a/integration-tests/integration-tests-init/Dockerfile b/integration-tests/integration-tests-init/Dockerfile
new file mode 100644
index 0000000000..76e502ab16
--- /dev/null
+++ b/integration-tests/integration-tests-init/Dockerfile
@@ -0,0 +1,55 @@
+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 \
+ python -m pip install --upgrade pip \
+ pip install 'pycurl==7.44.1' && \
+ set -ex && \
+ gem update --system --no-document && \
+ gem install --no-update-sources public_suffix:4.0.7 multipart-post:2.2.0 etc:1.3.0 bundler:2.3.26 chef:13.8.5 berkshelf:6.3.1 io-console:0.4.6 webrick --no-document && \
+ apk del .build-dependencies && \
+ gem cleanup
+
+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=onap:onap scripts /home/onap/scripts
+
+RUN chmod 770 -R /home/onap/scripts && \
+ cd /home/onap/scripts && \
+ python setup.py install --user
+
+ENV PATH=$PATH:/home/onap/.local/bin
+
+COPY --chown=onap:onap chef-solo /home/onap/chef-solo/
+COPY --chown=onap:onap chef-repo/cookbooks /home/onap/chef-solo/cookbooks/
+COPY --chown=onap:onap startup.sh /home/onap/
+
+RUN chmod 770 /home/onap/startup.sh
+
+WORKDIR /home/onap/
+
+ENTRYPOINT /home/${user}/startup.sh