Setup build env on instance 13/110413/2
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 21 Jul 2020 12:22:05 +0000 (14:22 +0200)
committerPaweł Wieczorek <p.wieczorek2@samsung.com>
Mon, 27 Jul 2020 12:46:58 +0000 (12:46 +0000)
Required to build simulator image

Change-Id: If323b9cd8c76eaba3a16dc588382f1c86e15f1b1
Issue-ID: INT-1661
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
test/mocks/mass-pnf-sim/deployment/heat/cloud-config.yaml

index 583c1a5..8203a84 100644 (file)
@@ -11,6 +11,8 @@ packages:
   - docker-compose
   - python3-virtualenv
   - python3-pip
+  - maven
+  - openjdk-8-jdk-headless
 # Docker's apt key needs to be injected early in the boot as 'apt' cloud-init
 # module doesn't support configuring key from file
 bootcmd:
@@ -22,4 +24,7 @@ apt:
       source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable"
 runcmd:
   - [pip3, install, tox]
+  - [mkdir, /root/.m2]
+  - [curl, "https://git.onap.org/oparent/plain/settings.xml", -o, /root/.m2/settings.xml]
+  - [update-java-alternatives, -s, java-1.8.0-openjdk-amd64]
   - [bash, /root/mass-pnf-sim_run.sh]