Browse Source

add myservices mpi

master
zeus 3 years ago
parent
commit
c002494c90
  1. 1
      docs/modules/myservices/nav.adoc
  2. 127
      docs/modules/myservices/pages/nodevuejs.adoc

1
docs/modules/myservices/nav.adoc

@ -2,6 +2,7 @@
** xref:overview-labrooms.adoc[Labrooms]
*** xref:linux.adoc[Linux]
*** xref:mpi.adoc[MPI]
*** xref:nodevuejs.adoc[Node+Vue]
** xref:overview-storage.adoc[Storage]
*** xref:mongo.adoc[Mongo]

127
docs/modules/myservices/pages/nodevuejs.adoc

@ -0,0 +1,127 @@
= NodeVue
Swarmlab
:idprefix:
:idseparator: -
:!example-caption:
:!table-caption:
:page-pagination:
:experimental:
This is the area where you will quide you to use labroom *Node VueJS*
== Default Configuration
.Linux network
image::swarmlab-network.png[linux network,700,float=center]
=== Working Directory
[source,bash]
----
/project
----
=== Default user
[source,bash]
----
docker
----
=== Default password
[source,bash]
----
docker
----
=== Default password4root
[source,bash]
----
pass
----
== Directory Map
You can find it in *Hybrid*: menu:Instances[More > Connect > Directory Maps]
== Logs
You can find it in *Hybrid*: menu:Instances[More > Logs]
== Connect
TIP: Connect Info in *Hybrid*: menu:Instances[More > Connect > Open a terminal and Run]
=== Connect via SSH
[source,bash]
----
ssh docker@[IP]
----
=== Connect via exec
Open a terminal and Run:
[source,bash]
----
docker exec -it -udocker hybrid-nodevuejs_master_1 /bin/bash
----
== Find lab workers
NOTE: Commands inside container
[source,bash]
----
ifconfig
nmap -sP 172.130.0.0/24 # eth0 ip
----
or
[source,bash]
----
/project/bin/swarmlab-nmap
----
== Create a Project
NOTE: Commands inside container
Vue CLI Documentation
https://cli.vuejs.org/guide/creating-a-project.html#vue-create
.Creating a Project
[source,bash]
----
vue create hello-world
----
=== Run it!
[source,bash]
----
npm run serve
----
=== Open it!
[source,bash]
----
http://IP:8080 # IP= eth0
----
=== Find Published ports
Info in *Hybrid*: menu:Instances[More > Ports]
Loading…
Cancel
Save