Change-Id: If34b5f0196dbc1ce113747f49f3d40857f99b42d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
alias=juju/$series/amd64
lxc delete $container -f || true
+ lxc image copy ubuntu:$series local: --alias clean-$series
lxc launch ubuntu:$series $container
sleep 15 # wait for network
lxc stop $container
lxc image delete $alias || true
+ lxc image delete clean-$series || true
lxc publish $container --alias $alias description="$series juju dev image ($(date +%Y%m%d))"
lxc delete $container -f || true