Update mirror-image

  * Allign to offline-build example

Change-Id: I96448007b75ef98dd8f658b0be14c0b56c8117ba
diff --git a/mirror-image/run.example.sh b/mirror-image/run.example.sh
new file mode 100644
index 0000000..9b50ebc
--- /dev/null
+++ b/mirror-image/run.example.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+# pre-requirments:
+# apt-get install cloud-localds
+# Cloudimg: wget https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
+# Packer: https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_linux_amd64.zip
+
+# Those script - only example for variables, which should be passed to packer and
+# overwrite variables under /scripts/ directory
+
+# External script sources:
+# http/bootstrap.saltstack.com.sh https://github.com/saltstack/salt-bootstrap
+#
+
+export CLUSTER_MODEL="https://github.com/Mirantis/mcp-offline-model.git"
+export CLUSTER_MODEL_REF="master"
+export CLUSTER_NAME="mcp-offline"
+
+export MCP_VERSION="nightly"
+export FORMULA_VERSION="nightly"
+
+BINARY_MCP_VERSION="nightly"
+export UBUNTU_BASEURL="http://mirror.mirantis.com/${BINARY_MCP_VERSION}/ubuntu/"
+export SALTSTACK_REPO="http://apt.mirantis.com/xenial/salt/2016.3/ ${BINARY_MCP_VERSION} main"
+export APT_MIRANTIS_GPG="http://apt.mirantis.com/public.gpg"
+export SALTSTACK_GPG="${APT_MIRANTIS_GPG}"
+export APT_MIRANTIS_SALT_REPO="http://apt.mirantis.com/xenial/ ${BINARY_MCP_VERSION} salt "
+#
+export GIT_SALT_FORMULAS_SCRIPTS="https://github.com/salt-formulas/salt-formulas-scripts.git"
+#
+export APT_REPOSITORY=" deb [arch=amd64] ${APT_MIRANTIS_SALT_REPO} "
+export APT_REPOSITORY_GPG=${APT_MIRANTIS_GPG}
+
+# Openstack-related variables
+export VM_FLAVOR="3c4fe514-3eb6-464d-a419-7be09d72cf1e"
+export VM_FLOATING_IP_POOL="095f43ed-65ba-48ce-8185-d4080e430a88"
+export IMAGE_NAME="mcp-offline-mirror-$(date '+%Y-%m-%d-%H-%M-%S')"
+export VM_IMAGE="9953a40d-1fa2-4f26-b146-0507dbc912dc"
+export OS_TENANT_ID=$OS_PROJECT_ID
+export OS_DOMAIN_NAME="ldap"
+export OS_TENANT_NAME="azvyagintsev"
+
+#rm -rf images/
+#cloud-localds  --hostname ubuntu --dsmode local config-drive/cloudata.iso  config-drive/user-data.yaml
+rm -rf ~/.packer.d/
+
+export PACKER_LOG=1
+#packer build -only=qemu -parallel=false -on-error=ask template.openstack.json
+packer build -only=openstack -parallel=false -on-error=ask template.json
+#packer build -only=openstack -parallel=false -on-error=ask template.json