""" import collections import json import logging import os import shutil import urllib import zipfile import utils utils.AptGetInstall( ['git', 'python-pip', 'qemu-utils', 'parted', 'kpartx', 'debootstrap', 'python-yaml']) utils.PipInstall( ['termcolor', 'fysom', 'jsonschema', 'docopt', 'functools32']) import yaml # noqa: E402,I202 BVZ_DIR = '/bvz' REPOS = ['stable', 'unstable', 'staging'] def main(): # Get Parameters. bvz_manifest = utils.GetMetadataAttribute( 'bootstrap_vz_manifest', raise_on_not_found=True) bvz_version = utils.GetMetadataAttribute( 'bootstrap_vz_version', raise_on_not_found=True) repo = utils.GetMetadataAttribute('google_cloud_repo', raise_on_not_found=True).strip()
import collections import json import logging import os import shutil import urllib import zipfile import utils utils.AptGetInstall( ['git', 'python-pip', 'qemu-utils', 'parted', 'kpartx', 'debootstrap', 'python-yaml']) utils.PipInstall( ['termcolor', 'fysom', 'jsonschema', 'docopt', 'functools32', 'google-cloud-storage']) import yaml BVZ_DIR = '/bvz' REPOS = ['stable', 'unstable', 'staging'] def main(): # Get Parameters. bvz_manifest = utils.GetMetadataAttribute( 'bootstrap_vz_manifest', raise_on_not_found=True) bvz_version = utils.GetMetadataAttribute( 'bootstrap_vz_version', raise_on_not_found=True) repo = utils.GetMetadataAttribute('google_cloud_repo',
# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Saves the build logs and synopsis files to GCS from an EL install.""" import logging import os import utils utils.AptGetInstall(['python-pip']) utils.PipInstall(['google-cloud-storage']) def main(): raise_on_not_found = True logs_path = utils.GetMetadataAttribute('daisy-logs-path', raise_on_not_found) outs_path = utils.GetMetadataAttribute('daisy-outs-path', raise_on_not_found) # Mount the installer disk. utils.Execute(['mount', '-t', 'ext4', '/dev/sdb1', '/mnt']) logging.info('Installer root: %s' % os.listdir('/mnt')) logging.info('Build logs: %s' % os.listdir('/mnt/build-logs'))
import collections import json import logging import os import shutil import urllib.request import zipfile import utils utils.AptGetInstall([ 'git', 'python-pip', 'qemu-utils', 'parted', 'kpartx', 'debootstrap', 'python-yaml', 'python3-yaml' ]) utils.PipInstall(['termcolor', 'fysom', 'jsonschema', 'docopt', 'json_minify']) import yaml # noqa: E402,I202 BVZ_DIR = '/bvz' REPOS = ['stable', 'unstable', 'staging'] def main(): # Get Parameters. bvz_manifest = utils.GetMetadataAttribute('bootstrap_vz_manifest', raise_on_not_found=True) bvz_version = utils.GetMetadataAttribute('bootstrap_vz_version', raise_on_not_found=True) repo = utils.GetMetadataAttribute('google_cloud_repo', raise_on_not_found=True).strip()
""" import collections import json import logging import os import shutil import urllib.request import zipfile import utils utils.AptGetInstall( ['python-pip', 'python-termcolor', 'python-fysom', 'python-jsonschema', 'python-yaml', 'python-docopt']) utils.PipInstall( ['json_minify']) import yaml # noqa: E402,I202 BVZ_DIR = '/bvz' REPOS = ['stable', 'unstable', 'staging'] def main(): # Get Parameters. bvz_manifest = utils.GetMetadataAttribute( 'bootstrap_vz_manifest', raise_on_not_found=True) bvz_url = utils.GetMetadataAttribute( 'bootstrap_vz_version', raise_on_not_found=True) repo = utils.GetMetadataAttribute('google_cloud_repo', raise_on_not_found=True).strip()