GithubHelp home page GithubHelp logo

crosscloudci / ci-dashboard Goto Github PK

View Code? Open in Web Editor NEW
13.0 8.0 11.0 2.14 MB

Dashboard front-end for the CNCF CI Project

License: Apache License 2.0

JavaScript 30.64% HTML 1.82% Vue 42.27% Shell 3.45% Ruby 4.79% Gherkin 1.58% Dockerfile 0.72% SCSS 14.72%

ci-dashboard's Introduction

cncf-ci-dashboard

Dashboard front-end for the CNCF.CI Project

Prerequisites

You need install node using something like nvm. You'll also need to install npm

Choose a version of node 4.0.0 or higher e.g.:

nvm use 10.16.3

Build Setup

# install dependencies
npm install

# Create environment configuration 

Set the environment var API_URL.  (use .env or set manually).  

Use an .env
 1. Create .env with the example below
 1. Load .env with `. .env`

Create config/dev.env.js and config/prod.env.js by running

.env

export API_URL="http://dev.vulk.co:4003/api"
export PORT=8080
#export TEST_URL="http://<YOUR_TEST_SERVER>"

./bin/create_env_js


# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run e2e tests
npm run e2e

# run all tests
npm test

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

docker

. .env
docker build -t $DOCKER_IMAGE .

Then use docker

docker run -p $PORT:$PORT -e API_URL=$API_URL -e PORT=$PORT -ti $DOCKER_IMAGE

or docker-compose

. .env ; docker-compose -p Frontend up 

Deploy using Helm

helm install --name frontend cncf/frontend --set imagePullSecrets=regsecret --set ingress.host=staging.cncf.ci --set ingress.port=8080 --set api.url=http://backend:4001/api --set node.port=8080 --set node.host=0.0.0.0

Upgrade an existing deployment with Helm

helm upgrade frontend cncf/frontend --install --force --set imagePullSecrets=regsecret --set ingress.host=staging.cncf.ci --set ingress.port=8080 --set api.url=http://backend:4001/api --set node.port=8080 --set node.host=0.0.0.0

How to Install Integration Tests

1. Install chrome dependencies

see: https://github.com/karma-runner/karma-chrome-launcher

sudo apt-get install -y xvfb fluxbox x11vnc dbus libqt4-dbus                                                                            
libqt4-network libqtcore4 libqtgui4 libxss1 libpython2.7 libqt4-xml                                                                     
libaudio2 fontconfig liblcms1 lib32stdc++6 libc6-i386 nano                                                                              
lib32z1                                                                                                                                 
                                                                                                                                        
sudo apt-get install -y python-gobject-2                                                                                                
                                                                                                                                        
sudo apt-get install -y curl git                                                                                                        

sudo apt install libnss3

# check if google-chrome installed with 
google-chrome-stable --headless
                                                                                                                                        
npm install                                                                                                                             
sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
sudo su -c "echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list.d/google-chrome.list"
sudo apt-get -y update
sudo apt-get -y install google-chrome-stable

# make sure .env file has test_url=<servername>

. .env; bundle exec cucumber

2. install ruby 2.6.3

see: https://rvm.io/rvm/install

3. install ruby application dependencies

bundle install

How to run the test suite:

bundle exec cucumber

TEST

ci-dashboard's People

Contributors

agentpoyo avatar denverwilliams avatar dependabot[bot] avatar lixuna avatar nupejosh avatar rystakei avatar taylor avatar thewolfpack avatar williscool avatar wvwatson avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ci-dashboard's Issues

Delete resources used for cncf.ci

Delete resources used for cncf.ci

  • CI Status dashboard is on hold

Tasks:

  • Backup any data that is not stored in GitHub
  • Plan/list which resources to delete
  • Add comment in this issue with status update of which resources are deleted and which resources will be kept and why
  • Communicate externally that the deleted resources can be repurposed elsewhere

Request for UX research applicants for GitLab

My intention here is that this issue is short-lived and doesn't distract from the development of this repository. If this content is deemed not supported, feel free to close/remove.

Dear CI-dashboard users,

I am reaching out to you as one of the Product designers from GitLab focusing in on CI. This project was listed as one of the inspirations for that feature area.

We believe our users are best-served by features that are influenced by them. As GitLab is developing a feature called public pipeline page we would like to find out more about this problem space and define exactly what is needed to solve which use cases. This will help prioritization, ideation, and iteration scope.

In preparation of our research effort I am reaching out to you directly to ask if you are willing to help us out. We would love to interview you similar to our direct "GitLab first look" research applicants. This would take around one hour of your time and there are immediate personal rewards aside from us implementing a great feature in the long run.

If you are willing to help out, please sign up at https://about.gitlab.com/community/gitlab-first-look/ and if possible send an email to [email protected].

kind regards,

Dimitrie

Rebrand "Packet" as "Equinix Metal"

Packet has rebranded itself after an acquisition by Equinix as "Equinix Metal".

There's a piece of the UI at

<div class="test-env-details">
<div class="stage">
<a href="https://www.packet.com/" rel="noopener noreferrer" target="_blank">
<img src='../assets/images/packet-logo.png' />
</a>
</div>
(or thereabouts) with the Packet logo and link. This should be updated appropriately.

arm64 deploy is failing (in Kubespray)?

The deploy stage on the arm64 setup is failing.

Here is the failure message, suggesting that it's pointing at a machine that's down:

TASK [bootstrap-os : Fetch /etc/os-release] ************************************
ok: [node1]
fatal: [node0]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 139.178.89.62 port 22: Connection timed out", "unreachable": true}

This from the log file at https://gitlab.cncf.ci/cncf/cross-cloud/-/jobs/198264

Happy to help untangle the dependencies here to get this back to green!

Replace all the project logo icons and the CNCF logo with SVG versions

Feature Name:

  • Replace all the project logo icons and the CNCF logo with SVG versions

Short Description:

Projects:

  • K8s
  • CoreDNS
  • Envoy
  • Prometheus
  • Linkerd
  • fluentd
  • ONAP

Header:

  • CNCF

Tasks:

  • Update logo for K8s
  • Update logo for CoreDNS
  • Update logo for Envoy
  • Update logo for Prometheus
  • Update logo for Linkerd
  • Update logo for fluentd
  • Update logo for ONAP

Header:

  • Update logo for CNCF

QA/Promotion:

  • Promote to master

    • QA on dev
  • Promote to staging

    • QA on staging
  • Promote to production

    • QA on production
  • Close ticket

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.