Browse Source

Update 'project_info.adoc'

master
Iro_Val 4 years ago
parent
commit
4efa3ae4f6
  1. 43
      project_info.adoc

43
project_info.adoc

@ -41,26 +41,21 @@ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
``` ```
==== error ==== error
==== ```
----
Get https ://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate Get https ://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate
Pulling ... Pulling ...
ERROR: Get https://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate signed by unknown authority ERROR: Get https://registry.vlabs.uniwa.gr:5080/v2/: x509: certificate signed by unknown authority
---- ```
====
* run * run
==== ```
----
$ sudo su $ sudo su
# touch set-ca.sh # touch set-ca.sh
---- ```
====
* copy-paste into file * copy-paste into file
==== ```
----
registry_address=registry.vlabs.uniwa.gr registry_address=registry.vlabs.uniwa.gr
registry_port=5043 registry_port=5043
mkdir -p /etc/docker/certs.d/$registry_address:$registry_port mkdir -p /etc/docker/certs.d/$registry_address:$registry_port
@ -77,39 +72,35 @@ openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/nul
registry_port=5480 registry_port=5480
mkdir -p /etc/docker/certs.d/$registry_address:$registry_port mkdir -p /etc/docker/certs.d/$registry_address:$registry_port
openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt openssl s_client -showcerts -connect $registry_address:$registry_port < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /etc/docker/certs.d/$registry_address:$registry_port/ca.crt
---- ```
====
* exec file * exec file
====
---- ```
sudo bash ./set-ca.sh sudo bash ./set-ca.sh
---- ```
====
=== Δημιουργία σμήνους (swarm) από Docker === Δημιουργία σμήνους (swarm) από Docker
==== Δημιουργία cluster ==== Δημιουργία cluster
* Make a new directory to store the project + * Make a new directory to store the project +
==== ```
----
mkdir myproject mkdir myproject
cd myproject cd myproject
../install/usr/share/swarmlab.io/sec/swarmlab-sec create ../install/usr/share/swarmlab.io/sec/swarmlab-sec create
---- ```
====
* Spin up the cluster (5 clusters shown here) + * Spin up the cluster (5 clusters shown here) +
==== ```
----
cd myproject #if not already on the directory cd myproject #if not already on the directory
../install/usr/share/swarmlab.io/sec/swarmlab-sec up size=5 ../install/usr/share/swarmlab.io/sec/swarmlab-sec up size=5
---- ```
====
* Login to the cluster + * Login to the cluster +
==== ====
---- ```
cd myproject #if not already on the directory cd myproject #if not already on the directory
../install/usr/share/swarmlab.io/sec/swarmlab-sec login ../install/usr/share/swarmlab.io/sec/swarmlab-sec login
---- ```
NOTE: When you are inside a container: + NOTE: When you are inside a container: +
`ssh docker@<IP>` + `ssh docker@<IP>` +
User password: docker + User password: docker +

Loading…
Cancel
Save