GithubHelp home page GithubHelp logo

canonical / demos.haus Goto Github PK

View Code? Open in Web Editor NEW
4.0 16.0 7.0 396 KB

License: GNU General Public License v3.0

Dockerfile 2.68% Shell 39.65% HTML 5.99% Python 20.81% SCSS 0.41% JavaScript 5.96% TypeScript 24.50%
web-and-design

demos.haus's Introduction

demos.haus

CircleCI build status Code coverage

Getting it running

I couldn't get this running with dotrun, because the dependencies on kubectl etc. are too difficult to integrate successfully.

You'll need the following secrets:

  • Jenkins
  • Github access token
  • Github webhook secret

You'll also need access to the demo cluster. Hopefully you might have secrets in your enigma. You'll need to merge these credentials into your ~/.kube/config file, and then also using kubectl config use-context to switch to the right context.

The only way I could get this running was by manually setting up both the Python version and the Python environment.

This first required me to install PyEnv, to get the right Python version (it won't work with Python>=3.10).

Once it's installed, get Python 3.9:

pyenv install 3.9.13
pyenv local 3.9.13

Setup the Python environment:

python3 -m venv env3
source env3/bin/activate
pip3 install -U setuptools
pip3 install -r requirements.txt

Then run the project - replace all {SOMETHING} variables:

SECRET_KEY=whatever GITHUB_WEBHOOK_SECRET={WEBHOOK_SECRET} GITHUB_ACCESS_TOKEN={GITHUB_TOKEN} JENKINS_TOKEN={JENKINS_TOKEN} JENKINS_URL=https://jenkins.canonical.com/webteam KUBECONFIG=~/.kube/config ./entrypoint 0.0.0.0:8100

If you only intend to make modifications affecting the kubernetes pods, the following should work

KUBECONFIG=~/.kube/config ./entrypoint 0.0.0.0:8100

demos.haus's People

Contributors

anthonydillon avatar carkod avatar edlerd avatar jkfran avatar jpmartinspt avatar minkyngkm avatar mtruj013 avatar nottrobin avatar renovate-bot avatar renovate[bot] avatar samhotep avatar sowasred2012 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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

demos.haus's Issues

Initial webhook 500s

When I tried to set up partners.ubuntu.com, following the instructions, I see this as the first webhook call:

image

I think this is because GitHub sends a test webhook call, which doesn't look like the real one. But we should handle this gracefully so it doesn't look like the webhook you just set up is broken.

Why does demo disappear?

When a new commit is pushed to a PR, the demo seems to disappear for a while. This is the sort of thing that Kubernetes is supposed to avoid. Can we avoid it?

Demo is building.... after it's finished building

Sometimes the "demo is building..." image gets stuck even after the real image has completed building. This appears to happen randomly across projects and the weirdest thing is that it will sometimes just start working hours later.

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

  • Update all dependencies (autoprefixer, canonicalwebteam.flask-base, github3.py, kubernetes, node, postcss, postcss-cli, sass, stylelint, stylelint-config-standard, stylelint-order, stylelint-prettier, stylelint-scss)

  • Check this box to trigger a request for Renovate to run again on this repository

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.