1 FROM onap/integration-python:8.0.0
3 LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
8 ENV http_proxy ${http_proxy}
9 ENV https_proxy ${https_proxy}
10 ENV PIP_EXTRA_OPTS ${https_proxy:+"--trusted-host pypi.org --trusted-host files.pythonhosted.org --proxy=${https_proxy}"}
11 ENV PIP_EXTRA_OPTS ${PIP_EXTRA_OPTS:-""}
14 COPY ansible-server/requirements.txt ansible-server/requirements.txt
16 RUN echo "https_proxy is ${https_proxy} ; PIP_EXTRA_OPTS is ${PIP_EXTRA_OPTS}"
18 RUN apk add --no-cache curl \
22 curl https://sh.rustup.rs -sSf | sh -s -- -y &&\
23 source $HOME/.cargo/env &&\
24 apk add --no-cache --virtual .build-deps build-base \
28 pip3 install --no-cache-dir --upgrade pip ${PIP_EXTRA_OPTS} && \
29 pip3 install --no-cache-dir -r ansible-server/requirements.txt ${PIP_EXTRA_OPTS} &&\
32 RUN addgroup -S ansible && adduser -S ansible -G ansible
34 COPY --chown=ansible:ansible ansible-server ansible-server
35 COPY --chown=ansible:ansible configuration/ansible.cfg /etc/ansible/ansible.cfg
37 WORKDIR /opt/ansible-server
39 RUN mkdir /opt/onap ; ln -s /opt/ansible-server /opt/onap/ccsdk
40 RUN echo > /var/log/ansible-server.log
41 RUN chown -R ansible:ansible /var/log
42 RUN chown ansible:ansible /opt/ansible-server
49 ##ENTRYPOINT ["python2", "RestServer.py"]