drop unused vagrant boxes

This commit is contained in:
Dag Heyman 2018-11-05 09:41:28 +01:00
parent 28e399a885
commit 3372dcfadd
No known key found for this signature in database
GPG Key ID: 06FC004369E7D338
14 changed files with 0 additions and 451 deletions

View File

@ -1,51 +0,0 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Use Ubuntu 16.04 Xenial as a base box.
config.vm.box = "ubuntu/xenial64"
# Install dependencies needed for yubioath-desktop development.
config.vm.provision "shell", path: "provision.sh"
# Sync repository to /vagrant
config.vm.synced_folder '../..', '/vagrant'
# VirtualBox configuration
config.vm.provider "virtualbox" do |vb|
vb.name = "yubioath-desktop:development"
# Enable GUI
vb.gui = true
# Set memory
vb.memory = 2048
# Enable shared clipboard
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# Enable drag-n-drop
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end
# Uncomment this to add a USB filter for YubiKeys.
# This will connect the YubiKey to the VM when re-inserted.
# This filter usess VirtualBox as provider.
# Modify the paramters as needed depending on the device.
FILTER_NAME="YubiKey"
MANUFACTURER="Yubico"
VENDOR_ID="0x1050"
PRODUCT_ID="0x0407"
PRODUCT="Yubikey 4 OTP+U2F+CCID"
config.vm.provider "virtualbox" do |vb|
vb.customize ['modifyvm', :id, '--usb', 'on']
vb.customize ['usbfilter', 'add', '0',
'--target', :id,
'--name', FILTER_NAME,
'--manufacturer', MANUFACTURER,
'--vendorid', VENDOR_ID,
'--productid', PRODUCT_ID,
'--product', PRODUCT]
end
end

View File

@ -1,5 +0,0 @@
#! /usr/bin/env bash
sudo apt-get install -qq gnome-shell
sudo systemctl enable gdm
sudo systemctl start gdm

View File

@ -1,44 +0,0 @@
#! /usr/bin/env bash
# Install development dependencies
sudo apt-get update -qq
sudo apt-get install -qq software-properties-common
sudo add-apt-repository -y ppa:yubico/stable
sudo apt-get update -qq && apt-get -qq upgrade
sudo apt-get install -qq \
virtualbox-guest-dkms \
libpcsclite-dev \
libssl-dev \
libffi-dev \
libykpers-1-1 \
libu2f-host0 \
qtbase5-dev \
qtdeclarative5-dev \
libqt5svg5-dev \
python3-dev \
python3-pip \
python3-pyscard \
qt5-default \
qml-module-qtquick-controls \
qml-module-qtquick-dialogs \
qml-module-io-thp-pyotherside \
qml-module-qt-labs-settings \
python3-pip \
python3-dev \
yubikey-manager \
xfce4 \
firefox
pip3 install --upgrade pip
# Install flake8 for linting
pip3 install pre-commit flake8
# Fix permissions in repo, install pre-commit hook
cd /vagrant && chown -R ubuntu . && pre-commit install
# Set a root password to enable login from GUI
# Do startx after login to launch xfce4
sudo echo "root:root" | sudo chpasswd
# Make ubuntu user passwordless
sudo passwd -d ubuntu

View File

@ -1,48 +0,0 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "fedora/26-cloud-base"
config.vm.provision "shell", path: "provision.sh"
# Sync repository to /vagrant
config.vm.synced_folder '../..', '/vagrant'
# VirtualBox configuration
config.vm.provider "virtualbox" do |vb|
vb.name = "yubioath-desktop:fedora"
# Enable GUI
vb.gui = true
# Set memory
vb.memory = 2048
# Enable shared clipboard
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# Enable drag-n-drop
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end
# This will connect the YubiKey to the VM when re-inserted.
# This filter uses VirtualBox as provider.
# Modify the paramters as needed depending on the device.
FILTER_NAME="YubiKey"
MANUFACTURER="Yubico"
VENDOR_ID="0x1050"
PRODUCT_ID="0x0407"
PRODUCT="Yubikey 4 OTP+U2F+CCID"
config.vm.provider "virtualbox" do |vb|
vb.customize ['modifyvm', :id, '--usb', 'on']
vb.customize ['usbfilter', 'add', '0',
'--target', :id,
'--name', FILTER_NAME,
'--manufacturer', MANUFACTURER,
'--vendorid', VENDOR_ID,
'--productid', PRODUCT_ID,
'--product', PRODUCT]
end
end

View File

@ -1,13 +0,0 @@
#!/bin/bash
sudo yum install -y \
@xfce-desktop-environment \
gcc-c++\
pcsc-lite \
pyotherside \
qt5-devel \
qt5-qtquickcontrols \
yubioath-desktop
# Make vagrant user passwordless
sudo passwd -d vagrant

View File

@ -1,40 +0,0 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Vagrant box used for building debian packages for the PPA.
#
Vagrant.configure("2") do |config|
# Use Ubuntu 16.04 Xenial as a base box.
config.vm.box = "ubuntu/xenial64"
config.vm.provision "shell", path: "provision.sh"
# Sync repository
config.vm.synced_folder '../..', '/home/ubuntu/yubioath-desktop'
# Uncomment this to add a USB filter for YubiKeys.
# This will connect the YubiKey to the VM when re-inserted.
# This filter usess VirtualBox as provider.
# Modify the paramters as needed depending on the device.
# FILTER_NAME="YubiKey"
# MANUFACTURER="Yubico"
# VENDOR_ID="0x1050"
# PRODUCT_ID="0x0407"
# PRODUCT="Yubikey 4 OTP+U2F+CCID"
config.vm.provider "virtualbox" do |vb|
vb.name = "yubioath-desktop:ppa"
vb.customize ['modifyvm', :id, '--usb', 'on']
# vb.customize ['usbfilter', 'add', '0',
# '--target', :id,
# '--name', FILTER_NAME,
# '--manufacturer', MANUFACTURER,
# '--vendorid', VENDOR_ID,
# '--productid', PRODUCT_ID,
# '--product', PRODUCT]
end
end

View File

@ -1,42 +0,0 @@
#! /usr/bin/env bash
#
# Vagrant box used to release to ppa
#
sudo apt-get update -qq && apt-get -qq upgrade
sudo apt-get install -qq python-pyscard
sudo apt-get install -qq \
git \
pcscd \
python\
python3 \
python-all \
python3-all \
python-pip \
python3-pip \
python-setuptools \
python3-setuptools \
python3-pyscard \
python-usb \
python3-usb \
python-six \
python3-six \
python-cryptography \
python3-cryptography \
python-click \
python3-click \
python-openssl \
python3-openssl \
python-setuptools \
python3-setuptools \
python-enum34 \
libykpers-1-1 \
libu2f-host0 \
debhelper \
devscripts \
dh-make \
gnupg2 \
gnupg-agent \
scdaemon
sudo -u ubuntu git clone https://github.com/dainnilsson/scripts

View File

@ -1,28 +0,0 @@
Setup
===
1. Run `vagrant up` and wait for provisioning to finish
2. Log in with password: `vagrant`
3. Open _Programs and Features_ -> _Microsoft Visual Studio Community 2015_ ->
_Change_. Click _Modify_, _Add or remove components_ and add the following
components:
- Programming Languages -> Visual C++ -> Common Tools for Visual C++ 2015
- Windows and Web Development -> ClickOnce Publishing Tools
- Windows and Web Development -> Universal Windows App Development Tools ->
Windows 10 SDK
4. Open command prompt as administrator
5. Run `Z:\vagrant\windows\install-qt.bat`. Accept all the defaults, except for
the components selection page. Deselect all and then select the following
components:
- Qt -> Qt 5.9.3 -> msvc2015 32-bit
6. Run `Z:\vagrant\windows\install-pyotherside.bat`
7. Run `choco install -y git`. This should ideally be done by the provisioning
script, but it fails for some reason.

View File

@ -1,55 +0,0 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Use Windows 10 as a base box.
config.vm.box = "senglin/win-10-enterprise-vs2015community"
config.vm.box_version = "1.0.0"
# Install dependencies needed for yubioath-desktop development.
# config.vm.provision "file", source: "qt-installer-noninteractive.qs", destination: "C:\Users\vagrant\qt-installer-noninteractive.qs"
config.vm.provision "shell", path: "provision.bat"
# Sync repository to /vagrant
config.vm.synced_folder '../..', '/vagrant'
config.vm.communicator = "winrm"
# VirtualBox configuration
config.vm.provider "virtualbox" do |vb|
vb.name = "yubioath-desktop:windows"
# Enable GUI
vb.gui = true
# Set memory
vb.memory = 2048
# Enable shared clipboard
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# Enable drag-n-drop
vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end
# This will connect the YubiKey to the VM when re-inserted.
# This filter uses VirtualBox as provider.
# Modify the paramters as needed depending on the device.
FILTER_NAME="YubiKey"
MANUFACTURER="Yubico"
VENDOR_ID="0x1050"
PRODUCT_ID="0x0407"
PRODUCT="Yubikey 4 OTP+U2F+CCID"
config.vm.provider "virtualbox" do |vb|
vb.customize ['modifyvm', :id, '--usb', 'on']
vb.customize ['usbfilter', 'add', '0',
'--target', :id,
'--name', FILTER_NAME,
'--manufacturer', MANUFACTURER,
'--vendorid', VENDOR_ID,
'--productid', PRODUCT_ID,
'--product', PRODUCT]
end
end

View File

@ -1,68 +0,0 @@
SET LIBU2F_HOST_VERSION=1.1.3
SET YKPERS_VERSION=1.18.0
SET LIBUSB_VERSION=1.0.21
SET PY_VERSION=3.6.2
SET QT_VERSION=5.9.3
REM Needed for jom to work.
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"\vcvarsall.bat x86
REM Add python and Qt to PATH
SET "PATH=%PATH%;C:\Python36\Scripts;C:\Qt\%QT_VERSION%\msvc2015\bin;C:\Qt\Tools\QtCreator\bin;"
SET RELEASE_DIR=".\release"
REM Clean build
git clean -dfx --exclude .vagrant
git -C vendor\yubikey-manager reset --hard
git -C vendor\yubikey-manager clean -dfx
mkdir "%RELEASE_DIR%"
REM Build
qmake
jom
REM Package
wget "https://developers.yubico.com/libu2f-host/Releases/libu2f-host-%LIBU2F_HOST_VERSION%-win32.zip" -O "libu2f-host-%LIBU2F_HOST_VERSION%-win32.zip"
7z x libu2f-host-%LIBU2F_HOST_VERSION%-win32.zip -o".\libu2f-host"
powershell -Command "Copy-Item .\libu2f-host\bin\*.dll %RELEASE_DIR% -Force"
wget "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-%YKPERS_VERSION%-win32.zip" -O "ykpers-%YKPERS_VERSION%-win32.zip"
7z x ykpers-%YKPERS_VERSION%-win32.zip -o".\ykpers"
powershell -Command "Copy-Item .\ykpers\bin\*.dll %RELEASE_DIR% -Force"
REM powershell -Command "Invoke-WebRequest \"http://prdownloads.sourceforge.net/libusb/libusb-%LIBUSB_VERSION%.7z\" -O \"libusb-%LIBUSB_VERSION%.7z\" -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::Chrome"
wget "http://prdownloads.sourceforge.net/libusb/libusb-%LIBUSB_VERSION%.7z" -O "libusb-%LIBUSB_VERSION%.7z"
7z x libusb-%LIBUSB_VERSION%.7z -o".\libusb"
powershell -Command "Copy-Item .\libusb\MS32\dll\*.dll %RELEASE_DIR% -Force"
wget "https://www.python.org/ftp/python/%PY_VERSION%/python-%PY_VERSION%-embed-win32.zip" -O "python-%PY_VERSION%-embed-win32.zip"
7z x "python-%PY_VERSION%-embed-win32.zip" -o%RELEASE_DIR%
REM Use Qt deployment tool on executable
windeployqt "%RELEASE_DIR%"\yubioath-desktop.exe --qmldir=qml --no-translations --angle --release
REM Workaround:
REM Manually add pyotherside plugin to release folder.
REM Should be handled by windeployqt, but doesn't seem to be when QML Settings are used (?).
powershell -Command "Copy-Item C:\Qt\%QT_VERSION%\msvc2015\qml\io %RELEASE_DIR% -Recurse -Force"
REM Add python dependencies to release folder
powershell -Command "Copy-Item .\pymodules %RELEASE_DIR% -Recurse"
REM Remove .pyc files from release folder
powershell -Command "Get-ChildItem -Path %RELEASE_DIR% -File -Include *.pyc -Recurse | Remove-Item -Force"
powershell -Command "Get-ChildItem -Path %RELEASE_DIR% -Include __pycache__ -Recurse | Remove-Item -Force"
REM Remove .cpp source files
powershell -Command "Get-ChildItem -Path %RELEASE_DIR% -Include *.cpp -Recurse | Remove-Item -Force"
REM Remove object files
powershell -Command "Get-ChildItem -Path %RELEASE_DIR% -Include *.obj -Recurse | Remove-Item -Force"
REM Remove vcruntime140.dll and sqllite3.dll from python-embed
powershell -Command "Get-ChildItem -Path %RELEASE_DIR% -Include vcruntime140.dll -Recurse | Remove-Item -Force"
powershell -Command "Get-ChildItem -Path %RELEASE_DIR% -Include sqlite3.dll -Recurse | Remove-Item -Force"
powershell -Command "Get-ChildItem -Path %RELEASE_DIR% -Include _sqlite3.pyd -Recurse | Remove-Item -Force"

View File

@ -1,16 +0,0 @@
SET QT_VERSION=5.9.3
REM Needed for jom to work.
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC"\vcvarsall.bat x86
REM Add python and Qt to PATH
SET "PATH=%PATH%;C:\Python36\Scripts;C:\Qt\%QT_VERSION%\msvc2015\bin;C:\Qt\Tools\QtCreator\bin;"
REM Install pyotherside
cd vendor\pyotherside
powershell -Command "(Get-Content .\src\qmldir).replace('pyothersideplugin', 'pyothersideplugin1') | Set-Content .\src\qmldir"
powershell -Command "Clear-Content python.pri
powershell -Command "Add-Content python.pri \"PYTHON_CONFIG = python3-config`nQMAKE_LIBS += -LC:\Python36\libs -lpython36`nQMAKE_CXXFLAGS += -IC:\Python36\include`n\""
qmake
jom
jom install
cd ..\..

View File

@ -1,3 +0,0 @@
REM Dowload and install Qt for Windows
REM powershell -Command "(New-Object Net.WebClient).DownloadFile('http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe', 'C:\Users\vagrant\Downloads\qt-unified-windows-x86-online.exe')"
C:\Users\vagrant\Downloads\qt-unified-windows-x86-online.exe

View File

@ -1,22 +0,0 @@
net use Z: \\VBOXSVR\vagrant
REM Install Chocolatey
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install -y 7zip
REM choco install -y git
choco install -y gpg4win
choco install -y nsis
choco install -y python3 --x86
choco install -y swig
choco install -y wget
REM Install NSIS and nsProcess plugin
powershell -Command "(New-Object Net.WebClient).DownloadFile('http://forums.winamp.com/attachment.php?attachmentid=48936&d=1309248568', 'C:\Users\vagrant\Downloads\nsProcess_1_6.7z')"
7z e -oC:\"Program Files (x86)"\NSIS\Include C:\Users\vagrant\Downloads\nsProcess_1_6.7z Include\nsProcess.nsh
7z e -oC:\"Program Files (x86)"\NSIS\Plugins\x86-ansi C:\Users\vagrant\Downloads\nsProcess_1_6.7z Plugin\nsProcess.dll
REM Download Qt installer for manual usage later
wget "http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe" -O "C:\Users\vagrant\Downloads\qt-unified-windows-x86-online.exe"

View File

@ -1,16 +0,0 @@
SET VERSION="%1"
ECHO "Building release of version: %VERSION%"
SET RELEASE_DIR=".\release"
SET "PATH=%PATH%;C:\Program Files (x86)\NSIS"
REM Download Appveyor build
REM powershell -Command "(New-Object Net.WebClient).DownloadFile('https://yubico-builds.s3-eu-west-1.amazonaws.com/yubioath-desktop/yubioath-desktop-yubioath-desktop-%VERSION%-win.zip', 'C:\Users\vagrant\Downloads\yubioath-desktop-%VERSION%-win.zip')"
REM 7z x -o"%RELEASE_DIR%" C:\Users\vagrant\Downloads\yubioath-desktop-%VERSION%-win.zip
signtool sign /fd SHA256 /t http://timestamp.verisign.com/scripts/timstamp.dll "%RELEASE_DIR%"\yubioath-desktop.exe
makensis -D"VERSION=%VERSION%" resources\win\win-installer.nsi
signtool sign /fd SHA256 /t http://timestamp.verisign.com/scripts/timstamp.dll "yubioath-desktop-%VERSION%-win.exe"
gpg --detach-sign "yubioath-desktop-%VERSION%-win.exe"