dotfiles

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: MIT Imports: 9 Imported by: 0

README

pipeline status coverage report Go Report Card latest release license chat website maintained

dotfiles

A platform to share custom configuration files.

The backend is written in Go with the help of the Echo framework.

The frontend is written in pure Javascript/ES6, CSS3 and HTML5 with zero dependencies, other than a modern browser.

Disclaimer: I don't care if it doesn't work in Edge or on Windows, but don't hesitate to file an issue if it doesn't run in your obscure browser or on your weird OS. ;)

Deployment

dotfiles is packaged as a container to be easily deployable in any environment.

Here's an example using podman:

podman volume create dotfiles_db
podman run -d -p 8443 -v dotfiles_db:/data ghcr.io/xengi/dotfiles/dotfiles:latest

The production instance is running in kubernetes like this:

---
apiVersion: v1
kind: Namespace
metadata:
  name: dotfiles
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc
  namespace: dotfiles
spec:
  storageClassName: cephfs
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: dotfiles
  namespace: dotfiles
spec:
  selector:
    matchLabels:
      app: web
  replicas: 3
  strategy:
    type: RollingUpdate
  template:
    metadata:
      namespace: dotfiles
      labels:
        app: web
    spec:
      volumes:
        - name: db
          persistentVolumeClaim:
            claimName: pvc
      containers:
        - name: dotfiles
          image: "ghcr.io/xengi/dotfiles/dotfiles:latest"
          imagePullPolicy: Always
          ports:
            - name: https
              containerPort: 8443
              protocol: TCP
          volumeMounts:
            - name: db
              mountPath: /data
          securityContext:
            runAsNonRoot: true
            runAsUser: 1000
      securityContext:
        runAsNonRoot: true

Yes I know you can't access a single sqlite db from 3 pods at the same time. dotfiles is not finished yet, so leave me alone! :P


Made with ❤️ and ✨.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL