Git Product home page Git Product logo

juno-install's Introduction

juno-install

这是一个快速构建启动一个juno完整环境的工程.

脚本将自动配置juno所需要依赖的服务组件 包括:

  • golang
  • mysql
  • etcd
  • prometheus
  • grafana
  • pprof
  • juno-agent(prometheus etcd watch)

下载脚本

git clone https://github.com/douyu/juno-install.git

cd juno-install/

启动juno

物理机运行

此方式将通过shell脚本方式进行交互安装juno以及所依赖组件

cd shell

sh ./install.sh

docker 容器运行

此方式将通过在一个容器内启动juno以及所依赖组件

docker build -t juno-install:v1  -f ./docker/all-in-one/Dockerfile ./

docker run -itd  --name juno-demo -p 50000:50000 -p 50004:50004 --privileged=true juno-install:v1 /usr/sbin/init

docker exec -it juno-demo /bin/bash

./install.sh

容器内debug命令

#查看mysql
mysql -uroot
#查看etcd里内容
etcdctl get "" --prefix
#查看go
go version
#查看pprof
go tool pprof -http=":8081" http://127.0.0.1:50004/debug/pprof/profile

docker-compose 方式运行

此方式将juno以及所依赖组件分容器进行启动

docker-compose up --build

执行初始化juno

docker exec -it  juno-install_juno-admin_1 docker_juno_init.sh

mock数据

docker exec -it  juno-install_juno-admin_1 docker_juno_mock.sh

Note

  • 相关配置文件在config目录中
  • 若需登陆grafana修改 juno管理界面-系统设置-Grafana地址 配置grafana地址为 "http://grafana:3000"

开启juno之旅

访问 http://127.0.0.1:50000

使用如下账号进行登录

username: admin

password: admin

相关组件

grafana http://127.0.0.1:50000/grafana

etcd

prometheus

juno-install's People

Contributors

askuy avatar kl7sn avatar mlboy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.