Bulk update to deployment
[dcaegen2/deployments.git] / cm-container / Dockerfile
1 # ============LICENSE_START=======================================================
2 # org.onap.dcae
3 # ================================================================================
4 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
18 #
19 # ECOMP is a trademark and service mark of AT&T Intellectual Property.
20 FROM cloudifyplatform/community:18.7.23
21 MAINTAINER maintainer
22
23 ENV TYPE_REPO https://nexus.onap.org/service/local/repositories/raw/content/org.onap.dcaegen2.platform.plugins/R3
24 ENV CCSDK_REPO https://nexus.onap.org/service/local/repositories/raw/content/org.onap.ccsdk.platform.plugins
25
26 # Store type files locally
27 RUN mkdir scripts
28 COPY get-type-files.sh dcae-cleanup.sh scripts/
29 # Load our type files and the Cloudify 3.4 type files
30 RUN scripts/get-type-files.sh ${TYPE_REPO} ${CCSDK_REPO}\
31     && mkdir /opt/manager/resources/spec/cloudify/3.4\
32     && curl -Ss https://cloudify.co/spec/cloudify/3.4/types.yaml > /opt/manager/resources/spec/cloudify/3.4/types.yaml\
33     && chown -R cfyuser:cfyuser /opt/manager/resources/spec/cloudify/3.4\
34     && chmod +x scripts/*.sh
35 # Create mount point for CM config file
36 RUN mkdir -p /opt/onap && chown cfyuser:cfyuser /opt/onap
37
38 # For HEAT environment, install software needed to use Cloudify CLI 4.2 to install plugins & deploy blueprints locally
39 # Install python development-related packages
40 RUN yum install -y gcc python-devel python-virtualenv python-pip
41
42 # Install jq (used for cleanup--parsing output of CM API call)
43 RUN curl -Ss -L "https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64"  > /bin/jq \
44 && chmod +x /bin/jq
45
46 # Set up virtualenv and install Cloudify CLI 4.2
47 RUN pip install --upgrade pip==9.0.3 \
48     && virtualenv cfy42 \
49     && source cfy42/bin/activate \
50     && pip install cloudify==4.2