Sha256: 3bc58a097aec6d111ffca6ae7992b7322d23ec0e143a6ff82d918a16e693a84b

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

apiVersion: batch/v1
kind: Job
metadata:
  name: setup
spec:
  template:
    metadata:
      name: setup
    spec:
      containers:
      - name: setup
        image: tzumby/rails-backend-alpine:latest
        args: ["rake db:create && rake db:migrate"]
        env:
        - name: DATABASE_NAME
          value: "rails-kube-demo_production"
        - name: DATABASE_PORT
          value: "5432"
        - name: DATABASE_URL
          value: "postgres"
        - name: DATABASE_USER
          valueFrom:
            secretKeyRef:
              name: "db-user"
              key: "username"
        - name: DATABASE_PASSWORD
          valueFrom:
            secretKeyRef:
              name: "db-user-pass"
              key: "password"
        - name: REDIS_URL
          value: "redis"
        - name: REDIS_PORT
          value: "6379"
        - name: RAILS_ENV
          value: "production"
        - name: SECRET_KEY_BASE
          valueFrom:
            secretKeyRef:
              name: "secret-key-base"
              key: "secret-key-base"
      restartPolicy: Never

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
roro-0.3.30 lib/roro/stacks/stories_v1/templates/rails/roro/kube/jobs/setup.yaml
roro-0.3.28 lib/roro/stacks/stories_v1/templates/rails/roro/kube/jobs/setup.yaml
roro-0.3.27 lib/roro/stacks/stories_v1/templates/rails/roro/kube/jobs/setup.yaml
roro-0.3.25 lib/roro/stacks/stories_v1/templates/rails/roro/kube/jobs/setup.yaml
roro-0.3.24 lib/roro/stacks/stories_v1/templates/rails/roro/kube/jobs/setup.yaml
roro-0.3.23 lib/roro/stacks/stories_v1/templates/rails/roro/kube/jobs/setup.yaml