LoginSignup
1
2

More than 5 years have passed since last update.

CentOS 6でRe:dashを試す

Posted at

導入手順

事前準備

  • yumアップデートしておく

    console
    yum update
    

docker engineインストール

  • yum repositoryの追加

    console
    cat << EOF > /etc/yum.repos.d/docker.repo
    [docker]
    name=Docker Repository
    baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/
    enabled=0
    gpgcheck=1
    gpgkey=https://yum.dockerproject.org/gpg
    EOF
    
  • dockerインストール

    console
    yum install -y docker-engine --enablerepo=docker
    
  • 自動起動設定

    console
    chkconfig docker on
    
    cat << EOF > /etc/sysconfig/docker
    other_args="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
    EOF
    
  • docker起動

    console
    /etc/rc.d/init.d/docker start
    Starting cgconfig service:  [  OK  ]
    Starting docker:            [  OK  ]
    

docker-composerインストール

  • docker-composer取得 & 実行権限付与

    console
    sh -c "curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose"
    chmod +x /usr/local/bin/docker-compose
    

Re:dashセットアップ

  • redashをクローン

    console
    git clone https://github.com/getredash/redash.git /var/redash
    

とりあえず動かす

  • 設定ファイルを用意

    console
    cd /var/redash
    cp docker-compose-example.yml docker-compose.yml
    
  • redash起動

    console
    docker-compose up
    
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2