Skip to content

Commit

Permalink
Merge pull request #2 from maxkratz/feature/adapt-ci-to-neo
Browse files Browse the repository at this point in the history
WIP: Changes "IBeX" and all related URLs to "Neo"
  • Loading branch information
maxkratz committed Nov 10, 2022
2 parents da9679b + 54bcefa commit 056269d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 21 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# eMoflon::IBeX VM
# eMoflon::Neo VM

[![Build eMoflon::IBeX VM](https://github.com/eMoflon/emoflon-ibex-vm/actions/workflows/vagrant-up.yml/badge.svg?branch=main&event=push)](https://github.com/eMoflon/emoflon-ibex-vm/actions/workflows/vagrant-up.yml)
[![Build eMoflon::Neo VM](https://github.com/maxkratz/emoflon-neo-vm/actions/workflows/vagrant-up.yml/badge.svg?branch=main&event=push)](https://github.com/maxkratz/emoflon-neo-vm/actions/workflows/vagrant-up.yml)

This repository is used to automatically build an [eMoflon](https://emoflon.org) virtual machine (VM).
This repository is used to automatically build an [eMoflon::Neo](https://emoflon.org/neo/) virtual machine (VM).


## Packages/Configuration

- [Ubuntu 20.04](https://app.vagrantup.com/gusztavvargadr/boxes/ubuntu-desktop)
- [OpenJDK 17](https://openjdk.org/projects/jdk/17/)
- [Graphviz](https://graphviz.org/)
- [eMoflon IBeX Eclipse build](https://github.com/eMoflon/emoflon-ibex-eclipse-build) (variant: *eclipse-emoflon-linux-user*)
- [eMoflon Neo Eclipse build](https://github.com/maxkratz/emoflon-neo-eclipse-build) (variant: *eclipse-emoflon-linux-user*)
- [Neo4j](https://neo4j.com/)


## Usage/Installation

- Download the latest version from the [release page](https://github.com/eMoflon/emoflon-ibex-vm/releases/latest).
- Download the latest version from the [release page](https://github.com/maxkratz/emoflon-neo-vm/releases/latest).
- Install [VirtualBox](https://www.virtualbox.org/) (or another Hypervisor compatible to `OVA` files).
- Import the `OVA` file as new VM in VirtualBox. (More detailed description can be found [here](https://docs.oracle.com/cd/E26217_01/E26796/html/qs-import-vm.html).)
- Use the credentials `vagrant:vagrant` to login.
- Use the Eclipse icon on the desktop to start [eMoflon](https://emoflon.org).

**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://github.com/eMoflon/emoflon-ibex-tests). If your PC only has 8GB of RAM available, reduce the RAM capacity of the VM within VirtualBox
You need at least 8GB to run the full [eMoflon::Neo test suite](https://github.com/eMoflon/emoflon-neo/blob/master/projectSetRuntime.psf). 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.


Expand All @@ -35,7 +36,7 @@ There are two ways to provide this project with runners.

Unfortunately, only the macOS-based GitHub-hosted action runners do support nested virtualization: https://github.com/actions/runner-images/issues/433

Therefore, we've adapted the CI-configuration to provision the **eMoflon-IBeX-VM** on a macOS-based runner until nested virtualization support gets added to the Linux-based runners.
Therefore, we've adapted the CI-configuration to provision the **eMoflon-Neo-VM** on a macOS-based runner until nested virtualization support gets added to the Linux-based runners.

### Self-hosted Linux-based runners

Expand Down
47 changes: 33 additions & 14 deletions prov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cd ~/eclipse-apps
# Get eclipse
if [[ ! -f "./$ECLIPSE_ARCHIVE.zip" ]]; then
log "Downloading latest eMoflon Eclipse archive from Github."
curl -s https://api.github.com/repos/eMoflon/emoflon-ibex-eclipse-build/releases/latest \
curl -s https://api.github.com/repos/maxkratz/emoflon-neo-eclipse-build/releases/latest \
| grep "$ECLIPSE_ARCHIVE.zip" \
| cut -d : -f 2,3 \
| tr -d \" \
Expand All @@ -68,9 +68,9 @@ touch /home/vagrant/Desktop/emoflon-app.desktop
printf "
[Desktop Entry]
Version=1.0
Name=eMoflon::IBeX Eclipse
Comment=Use eMoflon::IBeX Eclipse
GenericName=eMoflon::IBeX Eclipse
Name=eMoflon::Neo Eclipse
Comment=Use eMoflon::Neo Eclipse
GenericName=eMoflon::Neo Eclipse
Exec=bash -c \"cd /home/vagrant/eclipse-apps/eclipse && ./eclipse\"
Terminal=false
X-MultipleArgs=false
Expand All @@ -83,34 +83,53 @@ touch /home/vagrant/Desktop/emoflon-website.desktop
printf "
[Desktop Entry]
Encoding=UTF-8
Name=eMoflon::IBeX Website
Name=eMoflon::Neo Website
Type=Link
URL=https://emoflon.org/ibex
URL=https://emoflon.org/neo
Icon=web-browser
" > /home/vagrant/Desktop/emoflon-website.desktop

touch /home/vagrant/Desktop/emoflon-tutorial.desktop
#touch /home/vagrant/Desktop/emoflon-tutorial.desktop
#printf "
#[Desktop Entry]
#Encoding=UTF-8
#Name=eMoflon::IBeX Tutorial
#Type=Link
#URL=https://github.com/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 Tutorial
Name=eMoflon::Neo Test Suite
Type=Link
URL=https://github.com/eMoflon/emoflon-ibex-tutorial/releases/latest
URL=https://github.com/eMoflon/emoflon-neo/blob/master/projectSetRuntime.psf
Icon=web-browser
" > /home/vagrant/Desktop/emoflon-tutorial.desktop
" > /home/vagrant/Desktop/emoflon-tests.desktop

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

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

# Neo4j installation
# https://debian.neo4j.com/
log "Install Neo4j."
wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.com stable latest' | sudo tee /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
sudo apt-get install -y neo4j
sudo systemctl enable neo4j

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

0 comments on commit 056269d

Please sign in to comment.