Skip to content

Commit

Permalink
Merge remote-tracking branch 'emoflon-ibex-vm/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkratz committed Nov 15, 2022
2 parents aa77d18 + bcb7799 commit 6d7c77c
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 3 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/vagrant-up.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
name: vm-provision

on: [push]
on:
push:
branches:
- main
- 'testing/**'
- 'feature/**'
- 'hotfix/**'
# Run pipeline for release tags
tags:
- 'v*.*.*'

schedule:
# Weekly builds on Monday morning 4:42
# Github doc:
# "The schedule event can be delayed during periods of high loads of GitHub Actions workflow runs.
# High load times include the start of every hour.
# To decrease the chance of delay, schedule your workflow to run at a different time of the hour."
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
- cron: '42 4 * * 1'

jobs:
vagrant-provision:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

.vagrant/
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ This repository is used to automatically build a [GIPS](https:/Echtz
- Use the credentials `vagrant:vagrant` to login.
- Use the Eclipse icon on the desktop to start [GIPS](https:/Echtzeitsysteme/gips).

**Please notice:**
- The default configuration for this VM image consists 8GB of RAM and 2 vCPU cores.
You need at least 8GB to run the full [eMoflon::IBeX test suite](https:/eMoflon/emoflon-ibex-tests). If your PC only has 8GB of RAM available, reduce the RAM capacity of the VM within VirtualBox
- It is recommend to change the settings to at least 4 vCPU cores.


## Runner requirements

Expand Down
4 changes: 3 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Vagrant.configure("2") do |config|
config.vm.box = "gusztavvargadr/ubuntu-desktop"
config.vm.box = "gusztavvargadr/ubuntu-desktop-2004-lts-xfce"
config.vm.define 'ubuntu'
config.vm.provider :virtualbox do |vb|
vb.name = "gips"
vb.memory = 8192
vb.cpus = 2
end
config.vm.provision "shell", path: "prov.sh", privileged: false

Expand Down
37 changes: 36 additions & 1 deletion prov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ log "Installing OpenJDK."
sudo apt-get install -y openjdk-17-jdk
#java --version

# Packages for building a new kernel
sudo apt-get install -y gcc make perl

# GIPS Eclipse
log "Installing GIPS Eclipse."
sudo apt-get install -y graphviz
Expand All @@ -59,7 +62,7 @@ fi
unzip -qq -o $ECLIPSE_ARCHIVE.zip
rm -f $ECLIPSE_ARCHIVE.zip

# Create desktop launcher
# Create desktop launchers
mkdir -p /home/vagrant/Desktop
touch /home/vagrant/Desktop/gips.desktop
printf "
Expand All @@ -77,6 +80,38 @@ StartupNotify=true\n
" > /home/vagrant/Desktop/gips.desktop
chmod u+x /home/vagrant/Desktop/gips.desktop

touch /home/vagrant/Desktop/emoflon-website.desktop
printf "
[Desktop Entry]
Encoding=UTF-8
Name=eMoflon::IBeX Website
Type=Link
URL=https://emoflon.org/ibex
Icon=web-browser
" > /home/vagrant/Desktop/emoflon-website.desktop

touch /home/vagrant/Desktop/emoflon-tutorial.desktop
printf "
[Desktop Entry]
Encoding=UTF-8
Name=eMoflon::IBeX Tutorial
Type=Link
URL=https:/eMoflon/emoflon-ibex-tutorial/releases/latest
Icon=web-browser
" > /home/vagrant/Desktop/emoflon-tutorial.desktop

touch /home/vagrant/Desktop/emoflon-tests.desktop
printf "
[Desktop Entry]
Encoding=UTF-8
Name=eMoflon::IBeX Test Suite
Type=Link
URL=https:/eMoflon/emoflon-ibex-tests
Icon=web-browser
" > /home/vagrant/Desktop/emoflon-tests.desktop

chmod u+x /home/vagrant/Desktop/*.desktop

log "Clean-up"
sudo apt-get remove -yq \
snapd \
Expand Down

0 comments on commit 6d7c77c

Please sign in to comment.