Skip to content

ssmiller25/present

Repository files navigation

Presentations created by Steve Miller All done with reveal.js with markdown source material.

Gitpod ready-to-code

Usage

Building

  • To build:

    make build
  • To Run (container will autoremove when stopped manually):

    make run
  • To Stop

    make run
  • To run a live environment for editing

    make livedev

Printing

To print to PDF:

  1. Add the following to the markdown header of a presentation:
revealOptions:
    showNotes: 'separate-page'
  1. Open the presentation, and append ?print-pdf to end of URL (remove any #/ present)
  2. Use the local systems print dialog to print a PDF

Deployment

  1. Setup k8s Cluster. With Civo
civo k3s create <clustername> --size g3.k3s.small --nodes 1 --applications cert-manager
  1. Set domainname manually to ingress (TODO: exteranl-dns setup...)

  2. Install cert-manager

  3. Setup an Issuer. Below example assumes leverage a Trafik for an ingress

    apiVersion: cert-manager.io/v1alpha2
    kind: ClusterIssuer
    metadata:
      name: letsencrypt-prod
      namespace: cert-manager
    spec:
      acme:
        email: me@r15cookie.com
        server: https://acme-v02.api.letsencrypt.org/directory
        privateKeySecretRef:
          name: blast-public-secret-issuer-account-key
        solvers:
        - http01:
            ingress:
              class: traefik
  4. Apply rest of repo

    kubectl apply -k .