summaryrefslogtreecommitdiffstats
path: root/packages/pom.xml
blob: cf8535cbf9f574b7f3f6295bc29e8f156505c1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!--
  ============LICENSE_START=======================================================
  ONAP Policy Engine
  ================================================================================
  Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
  Modifications Copyright (C) 2019 Bell Canada.
  ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  ============LICENSE_END=========================================================
  -->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.onap.policy.engine</groupId>
        <artifactId>PolicyEngineSuite</artifactId>
        <version>1.5.3-SNAPSHOT</version>
    </parent>
    <artifactId>packages</artifactId>
    <packaging>pom</packaging>
    <name>Policy Packages</name>
    <description>D2 ONAP Policy Installation Packages</description>
    <profiles>
        <!-- DO NOT CHANGE THE *ORDER* IN WHICH THESE PROFILES ARE DEFINED! -->
        <profile>
            <id>default</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
        </profile>
        <profile>
            <id>docker</id>
            <modules>
                <module>base</module>
                <module>install</module>
                <module>docker</module>
            </modules>
            <properties>
                <docker.skip.push>false</docker.skip.push>
            </properties>
        </profile>
        <profile>
            <id>with-integration-tests</id>
            <modules>
                <module>base</module>
                <module>install</module>
            </modules>
        </profile>
    </profiles>
</project>
################################################ # Go back to execution folder cd $path # if the script is running during the image build skip the rest of it # as required software is installed already. if $BUILDTIME then # we need to update PATH with chromium-chromedriver echo "Adding in-container chromedriver to PATH" ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver echo "Skipping desktop steps, building container image..." else # # Get the appropriate chromedriver. Default to linux64 # CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/75.0.3770.140 CHROMEDRIVER_ZIP=chromedriver_linux64.zip CHROMEDRIVER_TARGET=chromedriver.zip # Handle mac and windows OS=`uname -s` case $OS in MINGW*_NT*) CHROMEDRIVER_ZIP=chromedriver_win32.zip ;; Darwin*) CHROMEDRIVER_ZIP=chromedriver_mac64.zip ;; *) echo "Defaulting to Linux 64" ;; esac if [ $CHROMEDRIVER_ZIP == 'chromedriver_linux64.zip' ] then curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o $CHROMEDRIVER_TARGET unzip chromedriver.zip -d /usr/local/bin else curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o $CHROMEDRIVER_TARGET unzip $CHROMEDRIVER_TARGET fi rm -rf $CHROMEDRIVER_TARGET fi