8월, 2019의 게시물 표시

Docker-Compose ? Docker-Swarm ?

docker상에서  superset  분산 실행  몇 가지 정의 #docker-compose 관련 컨테이너 그룹을 구성하고 관리하는데 사용 되는 명령입니다. docker cli에서 사용하는 것과 동일한 API에 대한 프론트 엔드이므로 docker run과 같은 명령으로 동작을 재현 할 수 있습니다. #docker-compose.yml docker-compose 및 swarm 모드에서도 사용되는 컨테이너 그룹의 정의 파일입니다. #swarm 모드 docker 엔진 그룹을 단일 엔티티로 관리하고 오케스트레이션을 제공하는 데 사용됩니다 #service 하나 또는 동일한 환경의 swarm 컨테이너 또는 다수 컨테이너에 확장성을 제공합니다. #bridge network 복수개의 컨테이너가 서로 통신 할 수 있는 단일 도커 엔진으로 관리되는 네트워크입니다. 엔진에서 여러 네트워크를 관리 할 수 ​​있으며 컨테이너를 0 개 이상의 네트워크에 연결할 수 있습니다.

starting superset, mysql, redis

이미지
docker상에서  superset(server-worker), mysql, redis  분산 실행  ## Environment     centos 7.6     docker 1.13.1 ## architecture ## starting mysql [root@kylin docker-files]# docker run --name mysql --rm --env-file .env -d -p 3306:3306 docker.io/mysql:5.7 d399db893198be4ef8cea8b47dbbd27357795bec7b5d1426dc0ea63a6fb20d33 [root@kylin docker-files]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d399db893198 docker.io/mysql:5.7 "docker-entrypoint..." 5 seconds ago Up 4 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp mysql [root@kylin docker-files]# [root@kylin docker-files]# docker inspect d399db893198 "Networks": { "bridge": { "IPAMConfig": null, "Links": null, "Aliases": null, "Network

install kylin(#4 excute)

docker상에서 kylin 설치 그리고 superset으로 데이터 확인 1. 환경준비     centos 7.6     docker 2. kylin 설치 확인 ##  지난 post(#2 kylin)에서 만들어진  docker images [root@kylin client-conf]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE sungminyun/kylin-docker 101 c2b10010123b About an hour ago 2.98 GB <none> <none> 2a2f553239a3 2 hours ago 714 MB <none> <none> 0d2144e6aa11 2 hours ago 146 MB <none> <none> abf10a4befb2 2 hours ago 120 MB <none> <none> 2c0f973a58ad 2 hours ago 256 MB <none> <none> 3ec37054afd8 6 hours ago 2.14 GB docker.io/ubuntu 16.04 5e13f8dd4c1a 3 weeks ago 120 MB [root

install kylin(#3 superset)

이미지
docker상에서 kylin 설치 그리고 superset으로 데이터 확인 1. 환경준비     centos 7.6     docker 2. kylin 설치 확인 ##  지난 post에서 만들어진  docker images [root@kylin client-conf]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE sungminyun/kylin-docker 101 3. install superset [root@kylin super]# git clone https://github.com/apache/incubator-superset.git Cloning into 'incubator-superset'... remote: Enumerating objects: 9, done. remote: Counting objects: 100% (9/9), done. remote: Compressing objects: 100% (9/9), done. remote: Total 48445 (delta 0), reused 2 (delta 0), pack-reused 48436 Receiving objects: 100% (48445/48445), 107.31 MiB | 11.14 MiB/s, done. Resolving deltas: 100% (34295/34295), done. [root@kylin super]# cd incubator-superset/ [root@kylin incubator-superset]# ls CHANGELOG.md INSTALL.md README.md babel-node gen_changelog.sh requirements-dev.txt setup.py CODE_OF_CONDUCT.md LICENSE.txt RELEASING

install kylin(#2 install)

docker상에서 kylin 설치 그리고 superset으로 데이터 확인 1. 환경준비     centos 7.6     docker 2. Install and Execute ## make file & folder [root@kylin kylin-docker]# docker build -t sungminyun/kylin-docker:152 . Sending build context to Docker daemon 234.5 kB Step 1/39 : FROM ubuntu:16.04 Trying to pull repository docker.io/library/ubuntu ... 16.04: Pulling from docker.io/library/ubuntu f7277927d38a: Pull complete 8d3eac894db4: Pull complete edf72af6d627: Pull complete 3e4f86211d23: Pull complete Digest: sha256:97b54e5692c27072234ff958a7442dde4266af21e7b688e7fca5dc5acc8ed7d9 Status: Downloaded newer image for docker.io/ubuntu:16.04 ---> 5e13f8dd4c1a Step 2/39 : MAINTAINER sungminyun ---> Running in a59282f3b3f5 ---> af92d9f062e1 Removing intermediate container a59282f3b3f5 Step 3/39 : WORKDIR /tmp ---> 47074a3af534 Removing intermediate container e89b332271c8 Step 4/39 : RUN set -x && apt-get update && apt-get install -y wget vim telnet ntp