test2
5 years ago
1 changed files with 97 additions and 0 deletions
@ -0,0 +1,97 @@ |
|||
= Swarm deploy ! |
|||
Apostolos rootApostolos@swarmlab.io |
|||
:description: IoT Εισαγωγή στο Cloud |
|||
:keywords: Cloud, swarm |
|||
:data-uri: |
|||
:toc: right |
|||
:toc-title: Πίνακας περιεχομένων |
|||
:toclevels: 4 |
|||
:source-highlighter: highlight |
|||
:icons: font |
|||
:sectnums: |
|||
|
|||
include::header.adoc[] |
|||
|
|||
|
|||
{empty} + |
|||
|
|||
== Create Swarm Service |
|||
|
|||
https://git.swarmlab.io:3000/swarmlab/examples-mpi2/src/branch/master[^] |
|||
|
|||
|
|||
== Κατεβάζω το παράδειγμα |
|||
|
|||
wget -r -np http://docs.swarmlab.io/lab/DockerSwarm/pada/ |
|||
|
|||
.Reminder |
|||
[NOTE] |
|||
==== |
|||
Eχουμε κάνει σύνδεση στον manager |
|||
==== |
|||
|
|||
|
|||
|
|||
== Ανοίγουμε το αρχείο Dockerfile.pada.web |
|||
|
|||
Ανοίγουμε το αρχείο Dockerfile.pada.web |
|||
|
|||
με vi ή όπως άλλο τρόπο |
|||
|
|||
Διαβάζουμε τα σχόλια |
|||
|
|||
|
|||
== Τρέχουμε το Dockerfile.pada.web.build |
|||
|
|||
[source,sh] |
|||
---- |
|||
chmod +x ./Dockerfile.pada.web.build |
|||
./Dockerfile.pada.web.build |
|||
docker images |
|||
---- |
|||
|
|||
== run image |
|||
|
|||
[source,sh] |
|||
---- |
|||
docker images |
|||
docker run -d -it --name padaweb -p 8978:80 pada-web /bin/bash |
|||
Οταν βγάλει ubuntu$_ |
|||
exit |
|||
---- |
|||
|
|||
|
|||
== swarm deploy |
|||
|
|||
[source,sh] |
|||
---- |
|||
docker stack deploy -c run.yml ondemand_mpi2 |
|||
ή το |
|||
./run.yml.sh |
|||
docker service ls |
|||
docker service ps onoma |
|||
---- |
|||
|
|||
.Reminder |
|||
[NOTE] |
|||
==== |
|||
Διαβάζουμε τα σχόλια |
|||
==== |
|||
|
|||
|
|||
== Demo |
|||
|
|||
open in Browser |
|||
|
|||
https://ip:55522/vnc.html?path=websockify?token=s3 |
|||
|
|||
=== Open Terminal |
|||
|
|||
run get_hosts |
|||
|
|||
To Virtual Lab είναι έτοιμο |
|||
|
|||
|
|||
== Ασκηση |
|||
|
|||
Βρείτε που είναι ο Web Server και προσθέστε κάτι |
Loading…
Reference in new issue