Git Product home page Git Product logo

ceph-dev's Introduction

RHCS Dashboard Dev. Env.

Installation

  • Clone Ceph:
git clone [email protected]:ceph/ceph.git
  • If it doesn't exist, create a local directory for ccache and set initial configuration. Example:
mkdir ~/.ccache
echo 'max_size = 50.0G' > ~/.ccache/ccache.conf
echo 'max_files = 0' >> ~/.ccache/ccache.conf
echo 'sloppiness = time_macros' >> ~/.ccache/ccache.conf
  • Clone rhcs-dashboard/ceph-dev:
git clone [email protected]:rhcs-dashboard/ceph-dev.git
cd ceph-dev
sudo bash ./scripts/docker/install-docker-compose-fedora.sh
  • Create .env file from template and set values:
cp .env.example .env

CEPH_REPO_DIR=/path/to/your/local/ceph/repo
HOST_CCACHE_DIR=/path/to/your/local/.ccache/dir

DASHBOARD_HOST_PORT=4200    (example: set 5200 if you want to open the dashboard at http://localhost:5200)
  • Build Ceph:
docker-compose run --rm ceph /docker/build-ceph.sh

Usage

  • Start only ceph:
docker-compose up -d ceph
  • Start ceph + grafana + prometheus + node-exporter:
docker-compose up -d grafana
  • Display ceph logs:
docker-compose logs -f ceph

You can open the dashboard at http://localhost:$DASHBOARD_HOST_PORT when you see in the logs something like this:

ceph    | ℹ 「wdm」: Compiled successfully.
  • Stop all:
docker-compose down
  • Restart dashboard:
docker-compose exec ceph /docker/restart-dashboard.sh

Grafana

If you have started grafana, you can open it at: http://localhost:$DASHBOARD_HOST_PORT/api/grafana/proxy/ (trailing slash is required)

Set Prometheus as data source using this url: http://prometheus.dev:9090

Import dashboards by pasting the content of this JSON file.

Start Luminous using installed RPM version

  • Clone Ceph repo in directory called luminous and switch to branch v12.2.7:
git clone [email protected]:rhcs-dashboard/ceph-dev.git luminous
git checkout v12.2.7
  • In .env file (ceph-dev repo), set the following variable accordingly:
LUMINOUS_REPO_DIR=/path/to/your/local/luminous
  • In docker-compose.yml, uncomment the luminous service.

  • Create the luminous docker image:

docker-compose build luminous
  • Start luminous:
docker-compose up -d luminous

You can open the dashboard at http://localhost:$DASHBOARD_HOST_PORT.

Git hooks

  • Add pre-commit:
cp scripts/git/pre-commit.sh /path/to/your/local/ceph/.git/hooks/pre-commit

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.