Skip to content

Commit 956895d

Browse files
committed
Added mimimal-dev example, add staff-favorites.bash for post VM install customization
1 parent 4ce9822 commit 956895d

12 files changed

+113
-82
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This repositories includes the follow example virtual machines
1010
setup and configurations.
1111

1212
start-minimal-vm.bash, minimal-init.yaml
13-
: This is a minimal cloud init YAML just a demo of a configuration
13+
: This is a minimal cloud init YAML just a demo of a configuration, it includes the Debian build-essentials package
1414

1515
start-dev-server-vm.bash, dev-server-init.yaml
1616
: This is a server like development environment for Golang 1.18
@@ -84,6 +84,11 @@ Stop all the VM, delete them and purge them from disk.
8484
multipass purge
8585
```
8686

87+
Move a file (e.g. staff-favorites.absh) to the "dev-server" VM
88+
89+
```
90+
multipass transfer staff-favorites.bash dev-server:.
91+
```
8792

8893
Cloud Init Files
8994
----------------

faasd-init.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.

minimal-dev-init.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package_update: true
2+
package_upgrade: true
3+
package:
4+
- build-essential

minimal-py-init.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
package:
22
- build-essential
33
- python3
4+
- python3-dev
45
- python3-pip

staff-favorites.bash

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
#
4+
# This file adds some Staff favorites developer tools and
5+
# optimization including, e.g. emacs, tcsh.
6+
#
7+
sudo apt vim
8+
sudo apt install emacs
9+
sudo apt install tcsh

start-dev-gui-vm.bash

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ if [ -d Sites ]; then
5757
multipass mount Sites $MACHINE:Sites
5858
fi
5959

60+
#
61+
# Make sure tcsh is installed and is set to the user shell
62+
#
63+
if [ -f staff-favorites.bash ]; then
64+
multipass transfer staff-favorites.bash $MACHINE:.
65+
fi
66+
67+
6068
#
6169
# Display state of machine
6270
#

start-dev-server-vm.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ if [ -d Sites ]; then
5757
multipass mount Sites $MACHINE:Sites
5858
fi
5959

60+
#
61+
# Make sure tcsh is installed and is set to the user shell
62+
#
63+
if [ -f staff-favorites.bash ]; then
64+
multipass transfer staff-favorites.bash $MACHINE:.
65+
fi
66+
6067
#
6168
# Display state of machine
6269
#

start-faasd-vm.bash

Lines changed: 0 additions & 63 deletions
This file was deleted.

start-invenio-gui-vm.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ fi
6262
multipass transfer InvenioRDM-setup.md $MACHINE:.
6363
multipass transfer InvenioRDM-setup.html $MACHINE:Public/
6464

65+
#
66+
# Make sure tcsh is installed and is set to the user shell
67+
#
68+
if [ -f staff-favorites.bash ]; then
69+
multipass transfer staff-favorites.bash $MACHINE:.
70+
fi
71+
6572
#
6673
# Display state of machine
6774
#

start-invenio-server-vm.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ fi
6262
multipass transfer InvenioRDM-setup.md $MACHINE:.
6363
multipass transfer InvenioRDM-setup.html $MACHINE:Public/
6464

65+
#
66+
# Make sure tcsh is installed and is set to the user shell
67+
#
68+
if [ -f staff-favorites.bash ]; then
69+
multipass transfer staff-favorites.bash $MACHINE:.
70+
fi
71+
6572
#
6673
# Display state of machine
6774
#

0 commit comments

Comments
 (0)