Skip to content

odraghi/app-demo-vcd

Repository files navigation

GitHub

app-demo-vcd

Demo vcd

Env ubuntu16

Create 'web' virtual Machine

Custom script web:

echo "nameserver 8.8.8.8" > /etc/resolv.conf
> /etc/apt/apt.conf
apt-get -y update
apt-get -y install nginx
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
apt-get install -y nodejs

Use the file nginx-default-web.conf to setup de nginx service.

Create 'back' virtual Machine

Custom script back:

echo "nameserver 8.8.8.8" >> /etc/resolv.conf

> /etc/apt/apt.conf

apt-get -y update

apt-get -y install nginx

echo "* *  * * *  root  lsblk -bJSo NAME,SIZE > /var/www/html/lsblk.json"  > /etc/cron.d/lsblk-info
echo "* *  * * *  root  sleep 30 && lsblk -bJSo NAME,SIZE > /var/www/html/lsblk.json"  >> /etc/cron.d/lsblk-info

echo "* *  * * *  root  [ -f /sys/class/block/sdb/device/rescan ] && echo 1 > /sys/class/block/sdb/device/rescan" >> /etc/cron.d/lsblk-info
echo "* *  * * *  root  sleep 30 && [ -f /sys/class/block/sdb/device/rescan ] && echo 1 > /sys/class/block/sdb/device/rescan" >> /etc/cron.d/lsblk-info

Use the file nginx-default-back.conf to setup de nginx service.

Devel env

On devel vm add this:

apt-get install git
ln -s /usr/bin/nodejs /usr/local/bin/node
npm install -g @angular/cli

On devel vm, create a personnal account and work with it

useradd odraghi -m -s /bin/bash
su - odraghi
git clone https://github.com/odraghi/app-demo-vcd.git
cd app-demo-vcd/src
npm install
ng serve

About

Demo vcd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published