Giter Site home page Giter Site logo

0x6170 / foosball-score-keeper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from natalledm/foosball-score-keeper

0.0 0.0 0.0 76 KB

A score keeper for a foosball game. It has two kinds of options for a game: by a max point and by 2.

Home Page: https://natalledm.github.io/foosball-score-keeper/

JavaScript 35.45% HTML 62.22% Dockerfile 2.33%

foosball-score-keeper's Introduction

Foosball Score Keeper

A score keeper for foosball game. It has two kinds of options for a game: by a max point and by 2.

Purpose

This was done only for a learning purpose.

Tech stack

Build & Run docker image locally

Have docker installed on your workstation. Use a linux-like shell (e.g. git bash for Windows users).

Build:

docker build .

Find the IMAGE_ID, look for the recently created:

docker images

Run locally:

docker run -it --rm -p 8085:8080 --mount type=bind,source="$(pwd)/tmp/",target=/var/cache/nginx/ --mount type=bind,source="$(pwd)/tmp/",target=/var/run/ <IMAGE_ID>

Navigate to http://localhost:8085/

Push the image to docker hub

You need to have docker hub account. A free account is good enough.

If you docker hub user name is "foobar", then:

login to docker hub:

docker login foobar

tag the image:

docker tag <IMAGE_ID> foobar/nginx:foosbal-score-keeper

push the image:

docker push foobar/nginx:foosbal-score-keeper

Build kubernetes (k8s) objects

Edit configs

Edit the k8s/overlays/linode-lke/kustomization.yaml file, add your own values.

Change this:

images:
  - name: some-image
    newName: 0x6170/nginx
    newTag: foosbal-score-keeper

to reflect your docker hub username and docker image location, i.e. change 0x6170/nginx to your own foobar/nginx

Edit any other values according to your cloud provider specs.

Other existing values are good enough to run on Linode Kubernetes Engine (LKE).

Build & Apply

Using kubectl:

kubectl kustomize k8s/overlays/linode-lke/ > app.yaml

Or using kustomize:

kustomize build k8s/overlays/linode-lke/ > app.yaml

Apply to your k8s cluster:

kubectl apply -f app.yaml

foosball-score-keeper's People

Contributors

natalledm avatar 0x6170 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.