Setup build env on instance
[integration.git] / test / mocks / mass-pnf-sim / deployment / heat / cloud-config.yaml
1 #cloud-config
2 package_upgrade: true
3 packages:
4   - apt-transport-https
5   - ca-certificates
6   - gnupg-agent
7   - software-properties-common
8   - docker-ce
9   - docker-ce-cli
10   - containerd.io
11   - docker-compose
12   - python3-virtualenv
13   - python3-pip
14   - maven
15   - openjdk-8-jdk-headless
16 # Docker's apt key needs to be injected early in the boot as 'apt' cloud-init
17 # module doesn't support configuring key from file
18 bootcmd:
19   - [curl, "https://download.docker.com/linux/ubuntu/gpg", -o, /run/docker.key]
20   - [apt-key, add, /run/docker.key]
21 apt:
22   sources:
23     docker:
24       source: "deb [arch=amd64] https://download.docker.com/linux/ubuntu $RELEASE stable"
25 runcmd:
26   - [pip3, install, tox]
27   - [mkdir, /root/.m2]
28   - [curl, "https://git.onap.org/oparent/plain/settings.xml", -o, /root/.m2/settings.xml]
29   - [update-java-alternatives, -s, java-1.8.0-openjdk-amd64]
30   - [bash, /root/mass-pnf-sim_run.sh]