[TryMOS] Rearrange installation folder structure in the image
Related-Prod: PRODX-53425
Change-Id: I1f51b2ff3b215152d1f12ad062f8b1f0fc8a9668
diff --git a/trymos/image_build/template.json b/trymos/image_build/template.json
index cc8e575..db18625 100644
--- a/trymos/image_build/template.json
+++ b/trymos/image_build/template.json
@@ -6,50 +6,40 @@
"images_cache": "{{ env `PACKER_IMAGES_CACHE` }}",
"image_base_url": "{{ env `IMAGE_BASE_URL` }}",
"image_md5_url": "{{ env `IMAGE_MD5_URL` }}",
- "vm_name": "{{ env `VM_NAME` }}",
- "inventory_file": "{{ env `INVENTORY_FILE` }}"
+ "vm_name": "{{ env `VM_NAME` }}"
},
"provisioners": [
{
"type": "shell",
"inline": [
- "mkdir -p /usr/share/trymos /srv/trymos"
+ "mkdir -p /srv/trymosk/image_build"
]
},
{
"type": "file",
- "source": "{{user `inventory_file`}}",
- "destination": "/srv/single_node.yaml"
- },
- {
- "type": "file",
"sources": [
- "../rockoon/charts",
- "../rockoon/virtual_lab"
+ "../rockoon"
],
- "destination": "/srv/"
- },
- {
- "type": "file",
- "source": "./scripts/launch.sh",
- "destination": "/usr/share/trymos/"
+ "destination": "/srv/trymosk/"
},
{
"type": "file",
"sources": [
"./ansible",
- "./scripts/build-image.sh",
- "./scripts/install-trymos.sh"
+ "./scripts/build-image.sh"
],
- "destination": "/srv/trymos/"
+ "destination": "/srv/trymosk/image_build/"
+ },
+ {
+ "type": "file",
+ "source": "./scripts/launch.sh",
+ "destination": "/srv/trymosk/"
},
{
"type": "shell",
- "environment_vars": [
- "INVENTORY_FILE=/srv/single_node.yaml"
- ],
"inline": [
- "/srv/trymos/build-image.sh"
+ "/srv/trymosk/image_build/build-image.sh",
+ "rm -rf /srv/trymosk/image_build"
]
}
],