Giter Site home page Giter Site logo

321jr / operatorhub.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from k8s-operatorhub/operatorhub.io

0.0 0.0 0.0 3.73 MB

The OperatorHub.io website

License: Apache License 2.0

JavaScript 34.83% Dockerfile 0.36% Shell 0.31% HTML 2.01% TypeScript 57.28% SCSS 5.21%

operatorhub.io's Introduction

OperatorHub.IO

Welcome to OperatorHub

Operators deliver the automation advantages of cloud services like provisioning, scaling, and backup/restore while being able to run anywhere that Kubernetes can run.

Releasing OperatorHub.io

One needs to checkout main branch

git checkout main

Then one can create tag. It is increased by one version nummber each time. In this example v9

git tag -a -m "Release v9" v9
git push --tags

Then test when page is ok. If it is fine then one have to create latest tag to point to v9 so pipeline from https://github.com/k8s-operatorhub/community-operators will trigger it next time new operator is merged.

To create latest tag one have to delete it and then force push it. This is done by

git checkout v9
git tag -d latest
git tag -a -m "Release v9" latest
git push --tags --force

Build

In order to build and run the web application in the same way as it does in production follow the next steps.

Build Frontend
$ pushd frontend
npm install
npm run build
popd
Build Backend
$ pushd backend
npm install
npm run build

Running local server

In server directory

$ npm run server

Other way to do this is to use Docker image in the repo root folder

$ docker build -t operatorhub .
docker run -ti -p 8080:8080 operatorhub

Contributing

Running in Development Mode

This is prefered way when working on front end code. You do not have to care about backend data and front end web server is running in watch mode - it updates when any of the source files is modified and saved.

Running the local UI in dev mode
$ cd frontend
npm install
npm start
http://0.0.0.0:9060/
Contributing Code

Adhering to the following process is the best way to get your work included in the project:

  1. Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory
git clone https://github.com/<your-username>/operatorhub.io.git
# Navigate to the newly cloned directory
cd operatorhub.io
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/operator-framework/operatorhub.io.git
  1. Create a branch:
$ git checkout -b my-branch -t upstream/master
  1. Make your changes and commit to your local branch

Verify there are no lint errors

$ npm run lint

Add and Commit your files

$ git add <files to be committed>
$ git commit
  1. Rebase

Use git rebase (not git merge) to sync your work from time to time. Ensure all commits related to a single issue have been squashed.

$ git fetch upstream
$ git rebase upstream/master
  1. Push
$ git push origin my-branch
  1. Create a Pull Request

Open a pull request with a clear title and description against the dev branch.

The dev branch is used to validate in pre-production mode before moving to the final production servers. Once the changes are validated on the pre-production servers, the maintainers will merge your changes to master and onto the production servers.

License

Licensed under the Apache License 2.0.

operatorhub.io's People

Contributors

jozzi avatar jeff-phillips-18 avatar gallettilance avatar wladimiiir avatar mvalarh avatar edke avatar dmesser avatar tlwu2013 avatar dependabot[bot] avatar robszumski avatar ssimk0 avatar programmer04 avatar cben avatar camilamacedo86 avatar estroz avatar gregsheremeta avatar harishsurf avatar fryguy avatar flickerfly avatar lamek avatar kevinrizza avatar mvalahtv avatar j0zi 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.