Compare commits

...

3 Commits

Author SHA1 Message Date
Cristi Ene a670d9d15e add node for all users 2021-10-07 11:43:20 +03:00
Cristi Ene 8dc145875d update install witn nvm 2021-10-07 11:30:58 +03:00
Sergiu Toma 4c797f915e test vagrant 2021-10-07 10:31:35 +03:00
11 changed files with 50 additions and 11 deletions

View File

@ -0,0 +1 @@
{"dependencies":[["log4r",[">= 0"]],["concurrent-ruby",["~> 1.0"]],["i18n",[">= 0"]],["micromachine",[">= 2","< 4"]],["vagrant-vbguest",["= 0.30.0"]]],"checksum":"11b1b35cf79113cc49e78dfeea4aabc6746d1df7877ec4f5145f0b7b96ad3af1","vagrant_version":"2.2.18"}

View File

@ -0,0 +1 @@
1633592300

View File

@ -0,0 +1 @@
{"name":"ubuntu/xenial64","version":"20210804.0.0","provider":"virtualbox","directory":"boxes/ubuntu-VAGRANTSLASH-xenial64/20210804.0.0/virtualbox"}

View File

@ -0,0 +1 @@
501

View File

@ -0,0 +1 @@
f5f76f97-2f67-49df-83e1-835cbb87625e

View File

@ -0,0 +1 @@
cf5295e73d3d40e6a3647df3a5a41f89

View File

@ -0,0 +1 @@
/Users/cristi/work/git-projects/LINX/linx-simulator2

View File

@ -0,0 +1,9 @@
# This file loads the proper rgloader/loader.rb file that comes packaged
# with Vagrant so that encoded files can properly run with Vagrant.
if ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"]
require File.expand_path(
"rgloader/loader", ENV["VAGRANT_INSTALLER_EMBEDDED_DIR"])
else
raise "Encoded files can't be read outside of the Vagrant installer."
end

View File

@ -6,6 +6,7 @@ RUN apt-get install -y build-essential
RUN apt-get install -y curl
RUN apt-get install -y python-minimal
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
RUN apt-get install -y nodejs
WORKDIR /simulator

30
Vagrantfile vendored
View File

@ -12,7 +12,7 @@ Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "bento/ubuntu-16.04"
config.vm.box = "ubuntu/xenial64"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@ -47,6 +47,7 @@ Vagrant.configure("2") do |config|
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"
config.vm.synced_folder ".", "/vagrant_data"
# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
@ -55,14 +56,14 @@ Vagrant.configure("2") do |config|
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
# vb.gui = true
vb.customize [
"modifyvm", :id,
"--audio", "coreaudio",
"--audiocontroller", "hda"
]
# vb.customize [
# "modifyvm", :id,
# "--audio", "coreaudio",
# "--audiocontroller", "hda"
# ]
# Customize the amount of memory on the VM:
vb.memory = "1024"
vb.memory = "2024"
end
#
# View the documentation for the provider you are using for more
@ -75,5 +76,18 @@ Vagrant.configure("2") do |config|
# apt-get update
# apt-get install -y apache2
# SHELL
# config.vm.provision "shell", inline: <<-SHELL
# sudo apt-get update
# sudo apt-get -y install dkms
# #https://wiki.ubuntu.com/Audio/UpgradingAlsa/DKMS
# wget http://ppa.launchpad.net/ubuntu-audio-dev/alsa-daily/ubuntu/pool/main/o/oem-audio-hda-daily-dkms/oem-audio-hda-daily-dkms_0.201509251532~ubuntu14.04.1_all.deb
# sudo dpkg -i oem-audio-hda-daily-dkms_0.201509251532~ubuntu14.04.1_all.deb
# rm oem-audio-hda-daily-dkms_0.201509251532~ubuntu14.04.1_all.deb
# sudo apt-get -y install python-dev ipython python-numpy python-matplotlib python-scipy cython alsa-utils paman
# sudo usermod -a -G audio vagrant
# SHELL
config.vm.provision "shell", path: "install.sh", privileged: true
end
end

View File

@ -5,10 +5,18 @@ apt-get -qq update
apt-get install -y build-essential
apt-get install -y curl
apt-get install -y python-minimal
curl -sL https://deb.nodesource.com/setup_8.x | bash
apt-get install -y nodejs
# install node 8
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install v8.17.0
# add node 8 for all users
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/node" "/usr/local/bin/node"
sudo ln -s "$NVM_DIR/versions/node/$(nvm version)/bin/npm" "/usr/local/bin/npm"
sudo apt install -y alsa-utils
sudo apt-get install -y libasound2-dev
sudo npm i -g node-gyp
mkdir simulator
# mkdir simulator
# scp -P 2222 ./ vagrant@127.0.0.1:.