Compare commits

...

15 Commits

Author SHA1 Message Date
Alexey Rogachevskiy
0ced4b306d build, travis: Produce less dots 2020-07-20 22:56:13 +03:00
Alexey Rogachevskiy
0fad6726f5 travis-ci: Don't use upload folders 2020-07-20 22:55:15 +03:00
Alexey Rogachevskiy
c70fc8dd0b travis: Use proper bucket name 2020-07-09 21:26:47 +03:00
Alexey Rogachevskiy
d9fc21773b travis: Use S3 key stored in travis environment 2020-07-09 21:14:38 +03:00
Alexey Rogachevskiy
8ef93c928a travis: Set actual S3 endpoint 2020-07-09 20:02:28 +03:00
Alexey Rogachevskiy
848e4b33f7 travis: Try enabling deployments 2020-07-09 18:50:41 +03:00
Alexey Rogachevskiy
11196f0c7d scripts: Allow apt to finish doing initial updates 2020-07-09 17:03:44 +03:00
Alexey Rogachevskiy
46064eafe2 ros_ide_vm: Be even more CI-friendly 2020-07-05 22:16:18 +03:00
Alexey Rogachevskiy
72f35a0b04 ros_ide_vm: Allocate less resources for build 2020-07-05 22:05:57 +03:00
Alexey Rogachevskiy
246ba6e5fb travis: Download base VM instead of building it 2020-07-05 22:04:16 +03:00
Alexey Rogachevskiy
9d2830bfeb base_vm: Try building in headless mode 2020-07-05 20:29:26 +03:00
Alexey Rogachevskiy
31db396477 base_vm: Use simplier hardware config 2020-07-05 18:22:54 +03:00
Alexey Rogachevskiy
8709ec5873 build: Download Packer in CI environment (hack) 2020-07-05 18:05:59 +03:00
Alexey Rogachevskiy
691cdde431 travis: Bump Virtualbox version 2020-07-05 17:58:23 +03:00
Alexey Rogachevskiy
e2c6d709db travis: Try running Packer in CI 2020-07-05 17:54:11 +03:00
5 changed files with 39 additions and 7 deletions

23
.travis.yml Normal file
View File

@@ -0,0 +1,23 @@
language: generic
dist: bionic
before_install:
- wget https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key
add - && sudo sh -c "echo deb https://download.virtualbox.org/virtualbox/debian
bionic contrib >> /etc/apt/sources.list" && sudo apt-get update && sudo apt-get
install build-essential gcc make linux-headers-$(uname -r) virtualbox-6.1 && sudo
usermod -aG vboxusers $(whoami)
- mkdir output-virtualbox-iso && pushd output-virtualbox-iso && wget --progress=dot:giga https://github.com/sfalexrog/clever_vm/releases/download/v0_base_vm/clever-devel.ova
&& popd
script:
- "./build.sh"
deploy:
provider: s3
access_key_id: XOJXX4IOM66XN7VZAFYX
secret_access_key: $S3_SECRET_KEY
bucket: clovervm
local-dir: output-virtualbox-ovf
acl: public_read
on:
all_branches: true
skip_cleanup: true
endpoint: https://ams3.digitaloceanspaces.com

View File

@@ -13,10 +13,12 @@
"disk_size": "30000",
"hard_drive_interface": "sata",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "4096", "--vram", "128", "--mouse", "usbtablet", "--accelerate3d", "on", "--apic", "on", "--rtcuseutc", "on", "--graphicscontroller", "vmsvga", "--nictype1", "virtio"],
["modifyvm", "{{.Name}}", "--memory", "2048", "--mouse", "usbtablet", "--apic", "on", "--rtcuseutc", "on", "--nictype1", "virtio"],
["storageattach", "{{.Name}}", "--storagectl", "SATA Controller", "--port", "0", "--nonrotational", "on", "--discard", "on"]
],
"headless": "true",
"iso_url": "http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso",
"iso_checksum": "bed8a55ae2a657f8349fe3271097cff3a5b8c3d1048cf258568f1601976fa30d",
"iso_checksum_type": "sha256",

View File

@@ -1,20 +1,22 @@
#!/bin/bash
PACKER=$(which packer)
# FIXME: Use system Packer if possible
#PACKER=$(which packer)
if [ "x${PACKER}" == "x" ]; then
#if [ "x${PACKER}" == "x" ]; then
PACKER="./packer"
if [ ! -f ${PACKER} ]; then
echo "Packer not found; downloading v1.5.4 from Hashicorp"
wget https://releases.hashicorp.com/packer/1.5.4/packer_1.5.4_linux_amd64.zip
wget --progress=dot:giga https://releases.hashicorp.com/packer/1.5.4/packer_1.5.4_linux_amd64.zip
unzip packer_1.5.4_linux_amd64.zip
rm packer_1.5.4_linux_amd64.zip
PACKER="./packer"
fi
echo "--- Using Packer version $(${PACKER} --version)"
echo "--- Building base image"
${PACKER} build base_vm.json
${PACKER} build -only=virtualbox-iso base_vm.json
echo "--- Building extended image"

View File

@@ -13,8 +13,10 @@
"format": "ova",
"guest_additions_mode": "disable",
"headless": "true",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "8192", "--vram", "128", "--mouse", "usbtablet", "--rtcuseutc", "on", "--usb", "on", "--usbxhci", "on", "--nictype1", "virtio"],
["modifyvm", "{{.Name}}", "--memory", "6144", "--vram", "128", "--mouse", "usbtablet", "--rtcuseutc", "on", "--nictype1", "virtio"],
["storageattach", "{{.Name}}", "--storagectl", "SATA Controller", "--port", "0", "--nonrotational", "on", "--discard", "on"]
],
"import_opts": "importtovdi",

View File

@@ -8,6 +8,9 @@ echo "--- Current environment:"
echo "Enabling passwordless sudo"
echo "${PASSWORD}" | sudo -E -S sh -c 'echo "clever ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers'
echo "--- Allowing apt to perform its updates"
sudo -E sh -c 'apt update; while fuser /var/lib/dpkg/lock ; do sleep 0.5 ; done'
echo "--- Installing open-vm-tools"
echo "${PASSWORD}" | sudo -E -S sh -c 'apt update; apt install -y open-vm-tools open-vm-tools-desktop'