You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# hybrid-NodeVuejs !
|
|
|
|
|
|
|
|
|
|
|
|
## LabInstance Node VueJS
|
|
|
|
|
|
|
|
|
|
|
|
![alt text](images/swarmlab-network.png "")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Quickstart
|
|
|
|
|
|
|
|
This is a quickstart guide of howto use this *LabInstance to deploy Vue js applications*
|
|
|
|
|
|
|
|
### HowTo use it
|
|
|
|
|
|
|
|
|
|
|
|
### Default Configuration
|
|
|
|
|
|
|
|
- Working Directory
|
|
|
|
|
|
|
|
> /project
|
|
|
|
|
|
|
|
- Default user
|
|
|
|
|
|
|
|
> docker
|
|
|
|
|
|
|
|
- Default password
|
|
|
|
|
|
|
|
> docker
|
|
|
|
|
|
|
|
- Default password4root
|
|
|
|
|
|
|
|
> pass
|
|
|
|
|
|
|
|
|
|
|
|
#### Find lab workers
|
|
|
|
|
|
|
|
|
|
|
|
> ifconfig
|
|
|
|
>
|
|
|
|
> nmap -sP 172.130.0.0/24
|
|
|
|
>
|
|
|
|
> or
|
|
|
|
>
|
|
|
|
> /project/bin/swarmlab-nmap
|
|
|
|
|
|
|
|
|
|
|
|
#### connect to workers
|
|
|
|
|
|
|
|
```bash
|
|
|
|
ssh docker@[IP]
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
#### Create hosts file
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
/project/bin/swarmlab-nmap > /project/hosts
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
**NOTE:** copy files to all clients
|
|
|
|
|
|
|
|
```bash
|
|
|
|
while read -r line;
|
|
|
|
do
|
|
|
|
scp /project/file docker@$line:/some_dir/file
|
|
|
|
done < /project/hosts
|
|
|
|
```
|
|
|
|
---
|
|
|
|
|
|
|
|
### Vue CLI Documentation
|
|
|
|
|
|
|
|
https://cli.vuejs.org/guide/creating-a-project.html#vue-create
|
|
|
|
|
|
|
|
|