Giter Club home page Giter Club logo

Comments (5)

Lissy93 avatar Lissy93 commented on May 22, 2024 4

Hi @turnrye - thanks for raising this, and sorry for the delay in replying.

I don't have much experience in publishing to Docker Hub, so it's taken longer to figure things out. But I will update this issue when it's up and running :)

In the meantime, here is the current published Docker image: https://hub.docker.com/r/lissy93/dashy

from dashy.

JonasAlfredsson avatar JonasAlfredsson commented on May 22, 2024 2

Hi Lissy93,

I just happened to stumble upon this repo and read this issue, so I thought I could mention that I experimented with using GitHub Action to build and publish my image to DockerHub just very recently. The process, and result, can be read in here if you fee like it: JonasAlfredsson/docker-nginx-certbot#28 (comment) Hope it can help you in some way :)

from dashy.

turnrye avatar turnrye commented on May 22, 2024 2

Thanks @Lissy93 ! Quick snippet in case someone in the future wants a cut-and-paste of running this in K8S now that the docker image is published:

---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: dashy
  namespace: default
  labels:
    app.kubernetes.io/name: dashy
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: dashy
  template:
    metadata:
      labels:
        app.kubernetes.io/name: dashy
    spec:
      containers:
      - name: dashy
        image: lissy93/dashy:latest
        volumeMounts:
        - name: config
          mountPath: "/app/public/conf.yml"
          subPath: "conf.yml"
          readOnly: true
      volumes:
      - name: config
        configMap:
          name: dashy-config
---
apiVersion: v1
kind: Service
metadata:
  name: dashy
  namespace: default
spec:
  ports:
  - name: http
    port: 80
    protocol: TCP
    targetPort: 80
  selector:
    app.kubernetes.io/name: dashy
  sessionAffinity: None
  type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: dashy
  namespace: default
spec:
  rules:
  - host: dashy.k8s.leb.memhamwan.net
    http:
      paths:
      - backend:
          service:
            name: dashy
            port:
              number: 80
        path: /
        pathType: ImplementationSpecific
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: dashy-config
data:
  # file-like keys
  conf.yml: |
    ---
    pageInfo:
      title: K8S Dashy
      navLinks:
      - title: Home
        path: /
      - title: About
        path: /about
      - title: Source Code
        path: https://github.com/Lissy93/dashy
    appConfig:
      theme: colorful
      fontAwesomeKey: 0821c65656
    sections:
    - name: Getting Started
      items:
      - title: Source
        description: Source code and documentation on GitHub
        icon: fab fa-github
        url: https://github.com/Lissy93/dashy
      - title: Issues
        description: View currently open issues, or raise a new one
        icon: fas fa-bug
        url: https://github.com/Lissy93/dashy/issues
      - title: Demo 1
        description: 'Live Demo #1'
        icon: far fa-rocket
        url: https://dashy-demo-1.netlify.app 
      - title: Demo 2
        description: 'Live Demo #2'
        icon: fad fa-planet-ringed
        url: https://dashy-demo-2.netlify.app 
      

I'll probably separately make an actual helm chart for this and contribute it to https://github.com/k8s-at-home/charts. Thanks again @Lissy93 !

from dashy.

shad-lp avatar shad-lp commented on May 22, 2024

Nice, I can give it a try easily now.

from dashy.

Lissy93 avatar Lissy93 commented on May 22, 2024

Thank you all - this info and help has been really useful :)
Closing the issue, since the Docker image published, but will convert to a discussion so that your info is still easy to find.

The Docker image is up an available on Docker Hub.
It can be used by running: docker run -p 8080:80 lissy93/dashy

Feel free to open a new issue if you have trouble with anything else

from dashy.

Related Issues (20)

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.