Sign inSign up

heywoodlh/second

By heywoodlh

Updated 1 day ago

Unofficial NewLeaf image for CloudTube

Image
0

10K+

heywoodlh/second repository overview

Unofficial, multi-arch build of NewLeaf, an open source tool for retrieving content from YouTube. NewLeaf was formerly named Second, and I never wanted to change the name.

Resources for this build are here: https://github.com/heywoodlh/dockerfiles/tree/master/second

Usage with docker-compose

services:
  cloudtube:
    image: docker.io/heywoodlh/cloudtube:latest
    restart: unless-stopped
    ports:
      - 8080:10412
    environment:
      INSTANCE_URI: "http://newleaf:3000"
    depends_on:
      - newleaf
  newleaf:
    image: docker.io/heywoodlh/second:latest
    restart: unless-stopped

Usage with Kubernetes

---
apiVersion: v1
kind: Service
metadata:
  name: second
  namespace: default
  labels:
    app.kubernetes.io/name: second
    app.kubernetes.io/instance: second
spec:
  type: ClusterIP
  ports:
    - port: 80
      targetPort: http
      protocol: TCP
      name: http
  selector:
    app.kubernetes.io/name: second
    app.kubernetes.io/instance: second
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: second
  namespace: default
  labels:
    app.kubernetes.io/name: second
    app.kubernetes.io/instance: second
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: second
      app.kubernetes.io/instance: second
  template:
    metadata:
      labels:
        app.kubernetes.io/name: second
        app.kubernetes.io/instance: second
    spec:
      serviceAccountName: default
      securityContext:
        {}
      containers:
        - name: second
          securityContext:
            {}
          image: "docker.io/heywoodlh/second:latest"
          imagePullPolicy: IfNotPresent
          ports:
            - name: http
              containerPort: 3000
              protocol: TCP
          livenessProbe:
            httpGet:
              path: /
              port: http
          readinessProbe:
            httpGet:
              path: /
              port: http
          resources:
            {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
  name: cloudtube
  namespace: default
  labels:
    app.kubernetes.io/name: cloudtube
    app.kubernetes.io/instance: cloudtube
---
apiVersion: v1
kind: Service
metadata:
  name: cloudtube
  namespace: default
  labels:
    app.kubernetes.io/name: cloudtube
    app.kubernetes.io/instance: cloudtube
spec:
  type: ClusterIP
  ports:
    - port: 80
      targetPort: http
      protocol: TCP
      name: http
  selector:
    app.kubernetes.io/name: cloudtube
    app.kubernetes.io/instance: cloudtube
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cloudtube
  namespace: default
  labels:
    app.kubernetes.io/name: cloudtube
    app.kubernetes.io/instance: cloudtube
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: cloudtube
      app.kubernetes.io/instance: cloudtube
  template:
    metadata:
      labels:
        app.kubernetes.io/name: cloudtube
        app.kubernetes.io/instance: cloudtube
    spec:
      serviceAccountName: cloudtube
      securityContext:
        {}
      containers:
        - name: cloudtube
          securityContext:
            {}
          image: "docker.io/heywoodlh/cloudtube:latest"
          imagePullPolicy: Always
          ports:
            - name: http
              containerPort: 10412
              protocol: TCP
          livenessProbe:
            httpGet:
              path: /
              port: http
          readinessProbe:
            httpGet:
              path: /
              port: http
          resources:
            {}
          env:
            - name: INSTANCE_URI
              value: "http://second"

Tag summary

Content type

Image

Digest

sha256:231fd5506

Size

353.1 MB

Last updated

1 day ago

docker pull heywoodlh/second