Coder Social home page Coder Social logo

apache / yunikorn-web Goto Github PK

View Code? Open in Web Editor NEW
27.0 18.0 56.0 1.61 MB

Apache YuniKorn Web UI

Home Page: https://yunikorn.apache.org/

License: Apache License 2.0

Dockerfile 0.46% Makefile 3.07% JavaScript 1.66% TypeScript 65.78% HTML 15.79% SCSS 11.31% Go 1.93%
angular apache-yarn kubernetes universal-resource-scheduler yunikorn

yunikorn-web's Introduction

Yunikorn web UI

YuniKorn web provides a web interface on top of the scheduler. It provides insight in the current and historic scheduler status. It depends on yunikorn-core which encapsulates all the actual scheduling logic.

For detailed information on the components and how to build the overall scheduler please see the yunikorn-core.

This project was generated with Angular CLI version 13.3.0.

Development Environment setup

Dependencies

The project requires a number of external tools to be installed before the build and development:

To manage our node packages, we've chosen pnpm. Simply execute the command pnpm install to set up all necessary dependencies. This single step ensures that your environment is fully prepared with all the required packages.

Development server

Run make start-dev for a development server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Build

Run make build to build the project. The build artifacts will be stored in the dist/ directory. Use make build-prod for a production build. Production builds will add the --prod flag to the angular build.

Docker image build

Image builds are geared towards a production build and will always build with the --prod flag set.

Run make image to build the docker image apache/yunikorn:web-latest. Run make run to build the image and deploy the container from the docker image apache/yunikorn:web-latest.

You can set REGISTRY, VERSION and DOCKER_ARCH in the commandline to build docker image with a specified version, registry and host architecture. For example,

make image REGISTRY=apache VERSION=latest DOCKER_ARCH=amd64

This command will build binary with version web-latest and the docker full image tag is apache/yunikorn:web-amd64-latest.

The Makefile is smart enough to detect your host architecture but it will tag the image name.

Running tests

All tests can be executed via make test. It will first build the project and then execute the unit tests followed by the end to end tests.
If you want to run the unit tests separately, run pnpm test to execute them via Karma. If you want to run the unit tests with code coverage, run pnpm test:coverage.

Local development

Beside the simple all in way to start the development server via make you can also start a development environment manually.

The application depends on json-server for data. Install json-server locally. Run pnpm start:srv to start json-server for local development. Run pnpm start to start the angular development server and navigate to http://localhost:4200/.

After updating the context in the json-db.json or json-route.json, checking the json server is available by running make json-server.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

Code scaffolding

Run ng generate component component-name to generate a new component.

You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Port configurations

The default port used for the web server is port 9889. If this conflicts in your dev environment, it can be changed in the Makefile.

How do I contribute code?

See how to contribute code from this guide.

yunikorn-web's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.