[Tutoriel Folio] Configuration Docker pour le déploiement sur un seul serveur

Dit: Tutoriel de déploiement de serveur unique

vagrant@vagrant:~$ sudo docker network ls
NETWORK ID          NAME                DRIVER              SCOPE
4b9e777b151e        bridge              bridge              local
43dd173da09a        host                host                local
39427dd0a321        kafka-zk_default    bridge              local
31d9e4c66c6c        none                null                local

Inspectez le pont (interface réseau) pour obtenir une liste d'adresses IP pour tous les conteneurs.

vagrant@vagrant:~$ sudo docker network inspect bridge
[
    {
        "Name": "bridge",
        "Id": "4b9e777b151e20249f70a1c75870cb830d5b5ab8d717cd0649468d4117e468a5",
        "Created": "2020-09-01T01:01:44.816937392Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.17.0.0/16",
                    "Gateway": "172.17.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "0e1a233336e323fbd8828d3cc7d3669c2f6f7d40a8f112876c5800898c098419": {
                "Name": "objective_robinson",
                "EndpointID": "fc54806947d27672a6a8e6c34589a49d20e7cfb61d9c516ea0c33c549571608e",
                "MacAddress": "02:42:ac:11:00:0c",
                "IPv4Address": "172.17.0.12/16",
                "IPv6Address": ""
            },
            "191d0c0fcf12d6ef457dc937dfdb36eea6d79b289df069804bcaa8dc99054111": {
                "Name": "peaceful_gates",
                "EndpointID": "5fceb30f876f8d273cfa3fff17e0348498ff7613dedc0d0cd684083252911c46",
                "MacAddress": "02:42:ac:11:00:1a",
                "IPv4Address": "172.17.0.26/16",
                "IPv6Address": ""
            },
            "251afb0b1871afa1785c8b669c6037d7d68040306bf721ba3b9542dd10d4889f": {
                "Name": "confident_easley",
                "EndpointID": "635f45369afbbfeb35818a0c5627f2b0f8057cd4611cfcb14f01e9b3e5b95398",
                "MacAddress": "02:42:ac:11:00:1b",
                "IPv4Address": "172.17.0.27/16",
                "IPv6Address": ""
            },
            "4223cb996f34fd48cbb4cf2a77329dec19d2d669cfc4c1ad08ae81356d23a3b2": {
                "Name": "eloquent_pascal",
                "EndpointID": "626d2d41791bcbed9c6064d620fe43027363a58fdbe79e1813c360592a8b8c00",
                "MacAddress": "02:42:ac:11:00:0d",
                "IPv4Address": "172.17.0.13/16",
                "IPv6Address": ""
            },
            "452d50a00964b823ea47cd586c4fae6e600d6cea597424a2419bfa48b271c81d": {
                "Name": "heuristic_turing",
                "EndpointID": "e9fa6eabefd5696d5a47d637d300f9555577e3865ef4853517f8f31699d529bc",
                "MacAddress": "02:42:ac:11:00:0b",
                "IPv4Address": "172.17.0.11/16",
                "IPv6Address": ""
            },
            "4651e5760aacc608473a1b7fb3c9442549cc720b02f6d3868647a96c49503f06": {
                "Name": "silly_ishizaka",
                "EndpointID": "743583955f599901beb4d74171b5b76a55d151cd308dd1fc5670e473cc0b632c",
                "MacAddress": "02:42:ac:11:00:12",
                "IPv4Address": "172.17.0.18/16",
                "IPv6Address": ""
            },
            "4971d95057259dc974c231448ba808730bea877a5dee28e5cc7a5923c49ae20d": {
                "Name": "adoring_jang",
                "EndpointID": "bc56409a5f3d6b93da67b954d9e8bba5ba7df8f701a41475e1e06320239dca80",
                "MacAddress": "02:42:ac:11:00:0e",
                "IPv4Address": "172.17.0.14/16",
                "IPv6Address": ""
            },
            "4fadb8e09728b3715c203de67c752af78ecb03f5cea46066b3fa71acfe2601b3": {
                "Name": "jovial_sinoussi",
                "EndpointID": "ec764397b342e86171ad5fe9b6bd73991bb2191aac10b9a04991e33544b6941f",
                "MacAddress": "02:42:ac:11:00:06",
                "IPv4Address": "172.17.0.6/16",
                "IPv6Address": ""
            },
            "66267eabe23c4c05440329210888a79723580ba9dd5b4bb589d1f47eedc49a2e": {
                "Name": "peaceful_gould",
                "EndpointID": "92f75d5ca7784a72ccd67ffcf9443ac7ddf9228373cdeadb8d1505566b14a5e7",
                "MacAddress": "02:42:ac:11:00:03",
                "IPv4Address": "172.17.0.3/16",
                "IPv6Address": ""
            },
            "6745ee25cf3199f3b70a862d3a126c2d3ca216935f8d310275b790d31db1f443": {
                "Name": "charming_elgamal",
                "EndpointID": "e455df6d69020d40706aa735d94cca093c397d9691590c1c5925c71ca6ad5815",
                "MacAddress": "02:42:ac:11:00:17",
                "IPv4Address": "172.17.0.23/16",
                "IPv6Address": ""
            },
            "6f874ca3327260c005d9a4ca643820815eed327b30a3106134557e392db4896d": {
                "Name": "quizzical_jepsen",
                "EndpointID": "db21f9a7a18ca821fdbb02c545279cdd9b3d2b6e3c5d0bdb3ae8e756d535415f",
                "MacAddress": "02:42:ac:11:00:13",
                "IPv4Address": "172.17.0.19/16",
                "IPv6Address": ""
            },
            "9289009ebaca3adf02c34345b738bd5ada7aec1aa90ce48475439ff9280d5741": {
                "Name": "dreamy_hoover",
                "EndpointID": "146688aee32635f4335d25e190afca2ddcac77908d57ba9b4724d6bbab49c6c7",
                "MacAddress": "02:42:ac:11:00:0f",
                "IPv4Address": "172.17.0.15/16",
                "IPv6Address": ""
            },
            "93f2aea91256d631ccba9442cc19b9e3d5a6e9f004df50bafd41e609aab06e22": {
                "Name": "brave_heisenberg",
                "EndpointID": "0a3de1a6e3cf7489f38952fe031e814efe74d84f8712d231db38bcafcece1f71",
                "MacAddress": "02:42:ac:11:00:07",
                "IPv4Address": "172.17.0.7/16",
                "IPv6Address": ""
            },
            "9e5a00480cbf41fd717e0ba3863735e3fd5896aebcba09b849f0c4032ae9a1b6": {
                "Name": "blissful_chatterjee",
                "EndpointID": "c12d1c02789c19672cde1b1e0b9da38677408b296dfb086d94f99070f4913dc0",
                "MacAddress": "02:42:ac:11:00:11",
                "IPv4Address": "172.17.0.17/16",
                "IPv6Address": ""
            },
            "a0116f396c159fc490f6e0539c88a7b122d962f202820537c636a22ec377515d": {
                "Name": "fervent_chatelet",
                "EndpointID": "32df4ea58a5f6883cedff8b610f1be16d7f646da670ecf44f2c16a74ebea3004",
                "MacAddress": "02:42:ac:11:00:16",
                "IPv4Address": "172.17.0.22/16",
                "IPv6Address": ""
            },
            "a4ff73e4981c72be989df3a78273b6c78bd3f2f3368842f56f4d6d2197bbcf22": {
                "Name": "elegant_lichterman",
                "EndpointID": "62885ffe66cced543cd2a1b23aec1d2298f61cba7ebb269f3cc7ca24044edcde",
                "MacAddress": "02:42:ac:11:00:09",
                "IPv4Address": "172.17.0.9/16",
                "IPv6Address": ""
            },
            "a6ae071eca9ac88f8fb986d3054019e548404242b3957e2ab9b7c80ece2a680a": {
                "Name": "jovial_antonelli",
                "EndpointID": "df4084f82c129e46583146ccc94dc617d26a5c9db18efe26137b698cb90f6aee",
                "MacAddress": "02:42:ac:11:00:18",
                "IPv4Address": "172.17.0.24/16",
                "IPv6Address": ""
            },
            "a9af647a7900eca0e1f7a82befebf0ff02d9665899ce92f554418f6c7b36e578": {
                "Name": "naughty_mahavira",
                "EndpointID": "5b9527fd45b152a8f768fd1fd7099652649cda9cf84dfaf896459474010cc51e",
                "MacAddress": "02:42:ac:11:00:19",
                "IPv4Address": "172.17.0.25/16",
                "IPv6Address": ""
            },
            "ad437edefef9ef64b9b8424bac11cfc36255874a045f492d53c4f9d3e0659214": {
                "Name": "nervous_feynman",
                "EndpointID": "f0607d4780be88876d4d36aa9f33a8c899a44539357cd41f31eb3cee00b727a7",
                "MacAddress": "02:42:ac:11:00:10",
                "IPv4Address": "172.17.0.16/16",
                "IPv6Address": ""
            },
            "ae25987f2ee1e9fa17c43a6626b2c0a699d1bcd8178fa8a1b4dbcb34c79a1095": {
                "Name": "pensive_poitras",
                "EndpointID": "9358bd8f52eb95e022d2d9d04f425f315dc8bcf3b312f1e1f00b69566ed3b6c9",
                "MacAddress": "02:42:ac:11:00:15",
                "IPv4Address": "172.17.0.21/16",
                "IPv6Address": ""
            },
            "cf32114a2755eef82d592135023782b7c62ab2abcaecd8a121ce5e4bb413b72c": {
                "Name": "objective_kepler",
                "EndpointID": "0ae3ef8fc9387c686e6c2db7f1a1e5ce94005a5ea45dbed6ef51b2db237f2922",
                "MacAddress": "02:42:ac:11:00:05",
                "IPv4Address": "172.17.0.5/16",
                "IPv6Address": ""
            },
            "d61359072ff951c8661de246aa39da6fce76818f80b72765be41ca29831f9002": {
                "Name": "stoic_einstein",
                "EndpointID": "c419087dbdd72a6fa7ac7fdc2955ce0f00004bcabc2088c3c089c53422a4f9e2",
                "MacAddress": "02:42:ac:11:00:0a",
                "IPv4Address": "172.17.0.10/16",
                "IPv6Address": ""
            },
            "da36ef453673a24ae15603001855ce032d3c30f07fa912412c59ab842434921b": {
                "Name": "cranky_kalam",
                "EndpointID": "aba6d92f2e68a5d3b63ec117530300f81ee1ef9bf487e3b82b0d85315b8782c0",
                "MacAddress": "02:42:ac:11:00:02",
                "IPv4Address": "172.17.0.2/16",
                "IPv6Address": ""
            },
            "f41bb340477ff9ac2882af36dfa0dda3d6dce064dcdef8ff63d84cc27c8117fc": {
                "Name": "zen_banach",
                "EndpointID": "48f4d645a2bef42fd3d84aa067bce02687e9e94b6d72af2e932f6f999f5856bf",
                "MacAddress": "02:42:ac:11:00:14",
                "IPv4Address": "172.17.0.20/16",
                "IPv6Address": ""
            },
            "fc284b99d6fd35c26752e82144c054d77c1442841fd4cd9e8d7d58963c63cdd0": {
                "Name": "practical_benz",
                "EndpointID": "efb716c1ed896d188f51db5026b42ca6dd4f07e61edb058a4f0dc58d3db3dff6",
                "MacAddress": "02:42:ac:11:00:08",
                "IPv4Address": "172.17.0.8/16",
                "IPv6Address": ""
            },
            "ff2ad408c8c0208edf919979b62ad4f50339eb792f7db618bd39a3cca5e45d46": {
                "Name": "compassionate_euclid",
                "EndpointID": "9bceb35e6b863411bc645859dc006f483ab1c564f70b59ed89a73472b8e88689",
                "MacAddress": "02:42:ac:11:00:04",
                "IPv4Address": "172.17.0.4/16",
                "IPv6Address": ""
            }
        },
        "Options": {
            "com.docker.network.bridge.default_bridge": "true",
            "com.docker.network.bridge.enable_icc": "true",
            "com.docker.network.bridge.enable_ip_masquerade": "true",
            "com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
            "com.docker.network.bridge.name": "docker0",
            "com.docker.network.driver.mtu": "1500"
        },
        "Labels": {}
    }
]

Liste des images de conteneurs

vagrant@vagrant:~$ sudo docker ps -a
CONTAINER ID        IMAGE                                      COMMAND                  CREATED             STATUS              PORTS                                                NAMES
251afb0b1871        folioorg/mod-codex-inventory:1.7.0         "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9156->8081/tcp                               confident_easley
191d0c0fcf12        folioorg/mod-login-saml:2.0.1              "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9155->8081/tcp                               peaceful_gates
a9af647a7900        folioorg/mod-tags:0.6.0                    "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9154->8081/tcp                               naughty_mahavira
a6ae071eca9a        folioorg/mod-notes:2.9.0                   "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9153->8081/tcp                               jovial_antonelli
6745ee25cf31        folioorg/mod-users-bl:6.0.0                "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9152->8081/tcp                               charming_elgamal
a0116f396c15        folioorg/mod-authtoken:2.5.1               "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9151->8081/tcp                               fervent_chatelet
ae25987f2ee1        folioorg/mod-password-validator:1.7.0      "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9150->8081/tcp                               pensive_poitras
f41bb340477f        folioorg/mod-codex-mux:2.8.0               "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9149->8081/tcp                               zen_banach
6f874ca33272        folioorg/mod-circulation:19.0.14           "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9148->9801/tcp                               quizzical_jepsen
4651e5760aac        folioorg/mod-patron-blocks:1.0.7           "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9147->8081/tcp                               silly_ishizaka
9e5a00480cbf        folioorg/mod-feesfines:15.8.2              "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9146->8081/tcp                               blissful_chatterjee
ad437edefef9        folioorg/mod-inventory:16.0.2              "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9145->9403/tcp                               nervous_feynman
9289009ebaca        folioorg/mod-source-record-storage:4.0.3   "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9144->8081/tcp                               dreamy_hoover
4971d9505725        folioorg/mod-pubsub:1.2.5                  "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9143->8081/tcp                               adoring_jang
4223cb996f34        folioorg/mod-permissions:5.11.3            "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9142->8081/tcp                               eloquent_pascal
0e1a233336e3        folioorg/mod-login:7.0.1                   "./run-java.sh verif…"   2 hours ago         Up 2 hours          0.0.0.0:9141->8081/tcp                               objective_robinson
452d50a00964        folioorg/mod-notify:2.6.0                  "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9140->8081/tcp                               heuristic_turing
d61359072ff9        folioorg/mod-sender:1.3.1                  "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9139->8081/tcp                               stoic_einstein
a4ff73e4981c        folioorg/mod-email:1.8.0                   "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9138->8081/tcp                               elegant_lichterman
fc284b99d6fd        folioorg/mod-template-engine:1.9.0         "./run-java.sh verif…"   2 hours ago         Up 2 hours          0.0.0.0:9137->8081/tcp                               practical_benz
93f2aea91256        folioorg/mod-configuration:5.4.2           "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9136->8081/tcp                               brave_heisenberg
4fadb8e09728        folioorg/mod-event-config:1.5.0            "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9135->8081/tcp                               jovial_sinoussi
cf32114a2755        folioorg/mod-users:17.1.0                  "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9134->8081/tcp                               objective_kepler
ff2ad408c8c0        folioorg/mod-circulation-storage:12.0.3    "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9133->8081/tcp                               compassionate_euclid
66267eabe23c        folioorg/mod-inventory-storage:19.3.2      "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9132->8081/tcp                               peaceful_gould
da36ef453673        folioorg/mod-calendar:1.9.1                "./run-java.sh"          2 hours ago         Up 2 hours          0.0.0.0:9131->8081/tcp                               cranky_kalam
4f403fe5bf6e        wurstmeister/kafka                         "start-kafka.sh"         3 hours ago         Up 3 hours          0.0.0.0:9092->9092/tcp, 0.0.0.0:29092->29092/tcp     kafka
ac9ae59a4c9f        wurstmeister/zookeeper                     "/bin/sh -c '/usr/sb…"   3 hours ago         Up 3 hours          22/tcp, 2888/tcp, 3888/tcp, 0.0.0.0:2181->2181/tcp   zookeeper

Entrez Docker (quittez en sortant) ※mod-inventory

vagrant@vagrant:~$ sudo docker exec -it  nervous_feynman sh
~ $ pwd
/usr/verticles
~ $ ls -la
total 54108
drwxr-xr-x    1 folio    folio         4096 Sep  1 08:06 .
drwxr-xr-x    1 root     root          4096 Nov 25  2019 ..
-rw-------    1 folio    folio           11 Sep  1 08:06 .ash_history
drwxr-xr-x    4 folio    folio         4096 Sep  1 01:34 .vertx
-rwxr-xr-x    1 folio    folio          465 Nov  9  2018 debug-options
drwxr-xr-x    2 folio    folio         4096 Sep  1 01:45 file-uploads
-rwxr-xr-x    1 folio    folio         2860 Nov  9  2018 java-default-options
-rw-rw-r--    1 root     root      55366787 Aug 10 21:20 mod-inventory.jar
-rwxr-xr-x    1 folio    folio         6398 Nov 13  2019 run-java.sh

Recommended Posts

[Tutoriel Folio] Configuration Docker pour le déploiement sur un seul serveur