Code Monkey home page Code Monkey logo

094aa5c4cca1902634a514af9734672035947e8cf4642d4a82c56a756ed64a1f's Introduction

dino-park-dev-tools

Some helper tools for DinoPark development.

Local Development / Preview

Prerequisites

Minikube

In order to bootstrap and run a local instance of DinoPark we need a local kubernetes cluster. The easiest way to achieve this using minikube.

We most likely need VirtualBox installed.

Now we can start a cluster via:

$ minikube start

Make sure we enable the ingress addon:

$ minikube addons enable ingress

To stop it again run:

$ minikube stop

And to delete it:

$ minikube delete

DNS Cheating

To make ingress work for us we need to point dinopark.mozilla.community to the k8s cluster. Just add a line to your /etc/hosts.

We can obtain the cluster IP via:

$ minikube ip

Docker

Please install docker.

In order to point docker to our k8s cluster run:

$ eval $(minikube docker-env)

Myke

We use myke to automate things.

We can download an install it from the release page.

There is also a clone of myke written in Rust which is on par and stable.

Running the Dev-Preview

Running the dev-preview is as simple as running:

$ git clone  https://github.com/mozilla-iam/dino-park-dev-tools.git

$ cd dino-park-dev-tools

# This will clone all DinoPark repositories to the parent directory for dino-park-dev-tools if they don't exist
$ myke git/checkout 

# Build all services
$ myke package

# Deploy to k8s
$ myke run-k8s

You should see the services and pods in k8s via:

$ kubectl get svc -ndino-park
$ kubectl get pods -ndino-park

The front-end will be served on http://dinopark.mozilla.community.

094aa5c4cca1902634a514af9734672035947e8cf4642d4a82c56a756ed64a1f's People

Contributors

akatsoulas avatar danielhartnell avatar fiji-flo avatar mozilla-github-standards avatar

Watchers

 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.