diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..8d03f71 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,14 @@ +# http://editorconfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = tab +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{adoc,yml}] +indent_size = 2 +indent_style = space diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a822d2d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +dist: bionic +sudo: required +language: minimal +addons: + apt: + packages: + - qemu-utils +script: + - sudo ./alpine-make-vm-image + --image-format qcow2 + --image-size 2G + --repositories-file example/repositories + --packages "$(cat example/packages)" + --script-chroot + alpine-virthardened-$(date +%Y-%m-%d).qcow2 -- ./example/configure.sh +#deploy: +# provider: releases +# api_key: +# secure: +# file: "*.qcow2" +# file_glob: true +# skip_cleanup: true +# on: +# tags: true diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..784b697 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License + +Copyright 2017-2020 Jakub Jirutka . + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..669d40e --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +This builds a tiny test VM for running against Marvin smoketests. +Builds on any GNU/Linux env with qemu/kvm installed: `bash -x build.sh` diff --git a/alpine-make-vm-image b/alpine-make-vm-image new file mode 100755 index 0000000..eeeec50 --- /dev/null +++ b/alpine-make-vm-image @@ -0,0 +1,515 @@ +#!/bin/sh +# vim: set ts=4: +#---help--- +# Usage: alpine-make-vm-image [options] [--] [