HPCCloud-deploy icon indicating copy to clipboard operation
HPCCloud-deploy copied to clipboard

npm install issues if run with DEVELOPMENT=1 and hpccloud directory is not present

Open kotfic opened this issue 8 years ago • 0 comments

cumulus role conditions on development variable (e.g. here and here) but it is possible to run in DEVELOPMENT=1 without the hpccloud or cumulus directories being mounted (e.g. if they are not checked out as siblings to this repo). Instead we should be checking whether these are mounted folders. e.g.

vagrant@vagrant-ubuntu-trusty-64:~$ mount
/dev/sda1 on / type ext4 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
vagrant on /vagrant type vboxsf (uid=1000,gid=1000,rw)
opt_hpccloud_cumulus on /opt/hpccloud/cumulus type vboxsf (uid=1002,gid=1003,rw)

then we should be setting individual cumulus_mounted and hpccloud_mounted conditional variables and using those.

kotfic avatar May 11 '16 14:05 kotfic