然後就是頁面的 package,clone, dmeo up 之後,就會開始拉 image,docker 啟動。
beaver:~/integration-2.6.0$ ./demo up Pulling mender-gui ... done Pulling mender-mongo ... done Pulling mender-useradm ... done Pulling mender-inventory ... done Pulling mender-workflows-worker ... done Pulling mender-deployments ... done Pulling mender-workflows-server ... done Pulling mender-device-auth ... done Pulling mender-create-artifact-worker ... done Pulling mender-api-gateway ... done Starting the Mender demo environment... Creating network "integration260_mender" with the default driver Pulling mender-nats (nats:2.1.9-alpine3.12)... 2.1.9-alpine3.12: Pulling from library/nats 801bfaa63ef2: Already exists ac4f83c9bcde: Pull complete 57817554b320: Pull complete 0da7ddd1cbb1: Pull complete Digest: sha256:6aeb085e155fdf6e26686f84b6bbda85decabb26618cf9a4a9a6e60fb2ddedd4 Status: Downloaded newer image for nats:2.1.9-alpine3.12 Pulling minio (minio/minio:RELEASE.2018-09-25T21-34-43Z)... RELEASE.2018-09-25T21-34-43Z: Pulling from minio/minio c67f3896b22c: Pull complete 28537c0b7408: Pull complete 57b9c24c4fa7: Pull complete Digest: sha256:635d93e85eaf126ac855ed1287b0eedaf0c041e63b010eeb1fc82daada9bdcb0 Status: Downloaded newer image for minio/minio:RELEASE.2018-09-25T21-34-43Z Pulling storage-proxy (openresty/openresty:1.13.6.2-0-alpine)... 1.13.6.2-0-alpine: Pulling from openresty/openresty ff3a5c916c92: Already exists ede0a2a1012b: Already exists 0e0a11843023: Already exists 246b2c6f4992: Already exists Digest: sha256:23ff32a1e7d5a10824ab44b24a0daf86c2df1426defe8b162d8376079a548bf2 Status: Downloaded newer image for openresty/openresty:1.13.6.2-0-alpine Pulling mender-deviceconnect (mendersoftware/deviceconnect:mender-2.6.0)... mender-2.6.0: Pulling from mendersoftware/deviceconnect 801bfaa63ef2: Already exists 25798b78a38d: Already exists 0b338ec2571f: Pull complete 75ebc69b42cb: Pull complete e71672d9a5af: Pull complete Digest: sha256:42bfbfe567dfee285be895df2c8eba0319b7fedd0fd717831ecee5ccb010595e Status: Downloaded newer image for mendersoftware/deviceconnect:mender-2.6.0 Creating integration260_mender-mongo_1 ... Creating integration260_mender-gui_1 ... Creating integration260_minio_1 ... Creating integration260_mender-nats_1 ... Creating integration260_mender-mongo_1 Creating integration260_mender-gui_1 Creating integration260_minio_1 Creating integration260_mender-mongo_1 ... done Creating integration260_mender-create-artifact-worker_1 ... Creating integration260_mender-useradm_1 ... Creating integration260_mender-workflows-worker_1 ... Creating integration260_mender-inventory_1 ... Creating integration260_mender-workflows-server_1 ... Creating integration260_mender-create-artifact-worker_1 Creating integration260_mender-useradm_1 Creating integration260_mender-workflows-worker_1 Creating integration260_mender-inventory_1 Creating integration260_mender-nats_1 ... done Creating integration260_mender-deviceconnect_1 ... Creating integration260_mender-workflows-server_1 ... done Creating integration260_mender-device-auth_1 ... Creating integration260_mender-device-auth_1 ... done Creating integration260_storage-proxy_1 ... Creating integration260_storage-proxy_1 ... done Creating integration260_mender-deployments_1 ... Creating integration260_mender-deployments_1 ... done Creating integration260_mender-api-gateway_1 ... Creating integration260_mender-api-gateway_1 ... done It does not seem the useradm service is up and running yet. Retrying... Creating a new user... **************************************** Username: mender-demo@example.com Login password: A2A502B25725 **************************************** Please keep the password available, it will not be cached by the login script. Mender demo server ready and running in the background. Copy credentials above and log in at https://localhost Press Enter to show the logs. Press Ctrl-C to stop the backend and quit.這個 username password 會跟著這個 image,不刪除,每次 ./demo up,都會啟動鄉同的 container image。用一樣的 username password。而且下次不會再show...
到 https://localhost, 舊可以看到 mender.io 一樣的 server login 畫面。
看一下啟動的 container 有..
beaver:~$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 396265c9b707 mendersoftware/api-gateway:mender-2.6.0 "/entrypoint.sh" 2 minutes ago Up 2 minutes 80/tcp, 0.0.0.0:443->443/tcp integration260_mender-api-gateway_1 804700b88d66 mendersoftware/deployments:mender-2.6.0 "/entrypoint.sh --co…" 2 minutes ago Up 2 minutes 8080/tcp integration260_mender-deployments_1 6c6d3951fc42 openresty/openresty:1.13.6.2-0-alpine "/usr/local/openrest…" 2 minutes ago Up 2 minutes 0.0.0.0:9000->9000/tcp integration260_storage-proxy_1 d6d575f6f36d mendersoftware/deviceauth:mender-2.6.0 "/usr/bin/deviceauth…" 3 minutes ago Up 3 minutes 8080/tcp integration260_mender-device-auth_1 cb6f1e5c0a57 mendersoftware/deviceconnect:mender-2.6.0 "/usr/bin/deviceconn…" 3 minutes ago Up 3 minutes 8080/tcp integration260_mender-deviceconnect_1 23603e599242 mendersoftware/workflows:mender-2.6.0 "/usr/bin/workflows …" 3 minutes ago Up 3 minutes 8080/tcp integration260_mender-workflows-server_1 2a83ec69a76b mendersoftware/inventory:mender-2.6.0 "/usr/bin/inventory …" 3 minutes ago Up 3 minutes 8080/tcp integration260_mender-inventory_1 da910c62cc8f mendersoftware/workflows-worker:mender-2.6.0 "/usr/bin/workflows …" 3 minutes ago Up 3 minutes integration260_mender-workflows-worker_1 c0fd411536f8 mendersoftware/useradm:mender-2.6.0 "/usr/bin/useradm --…" 3 minutes ago Up 3 minutes 8080/tcp integration260_mender-useradm_1 e394d4ce5400 mendersoftware/create-artifact-worker:mender-2.6.0 "/usr/bin/workflows …" 3 minutes ago Up 3 minutes 8080/tcp integration260_mender-create-artifact-worker_1 c59304ee734d nats:2.1.9-alpine3.12 "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 4222/tcp, 6222/tcp, 8222/tcp integration260_mender-nats_1 bfbbc8b40e74 mendersoftware/gui:mender-2.6.0 "/entrypoint.sh nginx" 3 minutes ago Up 3 minutes (healthy) 80/tcp, 8080/tcp integration260_mender-gui_1 b93c1579ac59 mongo:4.4 "docker-entrypoint.s…" 3 minutes ago Up 3 minutes 27017/tcp integration260_mender-mongo_1 3008f0926911 minio/minio:RELEASE.2018-09-25T21-34-43Z "/usr/bin/docker-ent…" 3 minutes ago Up 3 minutes (healthy) 9000/tcp integration260_minio_1Ctrl-C 會停止這個 container,但是下次開機會自動開起來。
用 ./demo down 會 stop and remove container,但是image 部會刪。
Username: mender-demo@example.com Login password: 358B822BDA78 0226: 5D9048D7091B 0303: 3D33B3E6B036
沒有留言:
張貼留言