dockertmpl

package
v0.0.0-...-4c37742 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ComposeTokDefaultsDockerVolume = []byte(`
version: "2"
services:
  syslog:
    image: tokaido/syslog:stable
    volumes:
      - /app/logs
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  nginx:
    user: "1002"
    image: tokaido/nginx:stable
    volumes:
      - waiting
    volumes_from:
      - syslog
    depends_on:
      - fpm
    ports:
      - "8082"
      - "8443"
    environment:
      DRUPAL_ROOT: docroot
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  testcafe:
    image: testcafe/testcafe
    working_dir: /testcafe
    command: tail -f /dev/null
    entrypoint:
      - tail
      - -f
      - /dev/null
    volumes:
      - waiting
    depends_on:
      - nginx
    ports:
      - "1337"
  fpm:
    user: "1001"
    image: tokaido/php71-fpm:stable
    working_dir: /app/site/
    volumes:
      - waiting
    volumes_from:
      - syslog
    depends_on:
      - syslog
    ports:
      - "9000"
    environment:
      PHP_DISPLAY_ERRORS: "yes"
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  mysql:
    image: mysql:5.7
    volumes_from:
      - syslog
    volumes:
      - waiting
    ports:
      - "3306"
    command: --max_allowed_packet=1073741824 --ignore-db-dir=lost+found --bind-address=0.0.0.0
    environment:
      MYSQL_DATABASE: tokaido
      MYSQL_USER: tokaido
      MYSQL_PASSWORD: tokaido
      MYSQL_ROOT_PASSWORD: tokaido
      MYSQL_ROOT_HOST: "%"
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  drush:
    image: tokaido/admin71-heavy:stable
    hostname: 'tokaido'
    ports:
      - "22"
    working_dir: /app/site
    volumes:
      - waiting
    volumes_from:
      - syslog
    environment:
      SSH_AUTH_SOCK: /ssh/auth/sock
      APP_ENV: local
      PROJECT_NAME: tokaido
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
`)

ComposeTokDefaultsDockerVolume - Template byte array for `docker-compose.tok.yml`

View Source
var ComposeTokDefaultsFusionSync = []byte(`
version: "2"
services:
  sync:
    image: tokaido/sync:stable
    volumes:
      - waiting
    environment:
      AUTO_SYNC: "true"
    restart: unless-stopped
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  syslog:
    image: tokaido/syslog:stable
    volumes:
      - /app/logs
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  nginx:
    user: "1002"
    image: tokaido/nginx:stable
    volumes:
      - waiting
    volumes_from:
      - syslog
    depends_on:
      - fpm
    ports:
      - "8082"
      - "8443"
    environment:
      DRUPAL_ROOT: docroot
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  testcafe:
    image: testcafe/testcafe
    working_dir: /testcafe
    command: tail -f /dev/null
    entrypoint:
      - tail
      - -f
      - /dev/null
    volumes:
      - waiting
    depends_on:
      - nginx
    ports:
      - "1337"
  fpm:
    user: "1001"
    image: tokaido/php71-fpm:stable
    working_dir: /app/site/
    volumes:
      - waiting
    volumes_from:
      - syslog
    depends_on:
      - syslog
    ports:
      - "9000"
    environment:
      PHP_DISPLAY_ERRORS: "yes"
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  mysql:
    image: mysql:5.7
    volumes_from:
      - syslog
    volumes:
      - waiting
    ports:
      - "3306"
    command: --max_allowed_packet=1073741824 --ignore-db-dir=lost+found --bind-address=0.0.0.0
    environment:
      MYSQL_DATABASE: tokaido
      MYSQL_USER: tokaido
      MYSQL_PASSWORD: tokaido
      MYSQL_ROOT_PASSWORD: tokaido
      MYSQL_ROOT_HOST: "%"
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  drush:
    image: tokaido/admin71-heavy:stable
    hostname: 'tokaido'
    ports:
      - "22"
    working_dir: /app/site
    volumes:
      - waiting
    volumes_from:
      - syslog
    environment:
      SSH_AUTH_SOCK: /ssh/auth/sock
      APP_ENV: local
      PROJECT_NAME: tokaido
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  kishu:
    image: tokaido/kishu:stable
    volumes:
      - waiting
    environment:
      DRUPAL_ROOT: docroot
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
`)

ComposeTokDefaultsFusionSync - Template byte array for `docker-compose.tok.yml`

View Source
var ComposeTokDefaultsUnison = []byte(`
version: "2"
services:
  unison:
    image: tokaido/unison:2.51.2
    environment:
      - UNISON_DIR=/app/site
      - UNISON_UID=1001
      - UNISON_GID=1001
    ports:
      - "5000"
    volumes:
      - /app/site
  syslog:
    image: tokaido/syslog:stable
    volumes:
      - /app/logs
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  nginx:
    user: "1002"
    image: tokaido/nginx:stable
    volumes_from:
      - syslog
      - unison
    depends_on:
      - fpm
    ports:
      - "8082"
      - "8443"
    environment:
      DRUPAL_ROOT: docroot
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  testcafe:
    image: testcafe/testcafe
    working_dir: /testcafe
    command: tail -f /dev/null
    entrypoint:
      - tail
      - -f
      - /dev/null
    volumes_from:
      - unison
    depends_on:
      - nginx
    ports:
      - "1337"
  fpm:
    user: "1001"
    image: tokaido/php71-fpm:stable
    working_dir: /app/site/
    volumes_from:
      - syslog
      - unison
    depends_on:
      - syslog
    ports:
      - "9000"
    environment:
      PHP_DISPLAY_ERRORS: "yes"
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  mysql:
    image: mysql:5.7
    volumes_from:
      - syslog
    volumes:
      - waiting
    ports:
      - "3306"
    command: --max_allowed_packet=1073741824 --ignore-db-dir=lost+found --bind-address=0.0.0.0
    environment:
      MYSQL_DATABASE: tokaido
      MYSQL_USER: tokaido
      MYSQL_PASSWORD: tokaido
      MYSQL_ROOT_PASSWORD: tokaido
      MYSQL_ROOT_HOST: "%"
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
  drush:
    image: tokaido/admin71-heavy:stable
    hostname: 'tokaido'
    ports:
      - "22"
    working_dir: /app/site
    volumes:
      - waiting
    volumes_from:
      - syslog
      - unison
    environment:
      SSH_AUTH_SOCK: /ssh/auth/sock
      APP_ENV: local
      PROJECT_NAME: tokaido
    labels:
      io.tokaido.managed: local
      io.tokaido.project: ` + conf.GetConfig().Tokaido.Project.Name + `
`)

ComposeTokDefaultsUnison - Template byte array for `docker-compose.tok.yml`

View Source
var ModWarning = []byte(`
# WARNING: THIS FILE IS MANAGED DIRECTLY BY TOKAIDO.
# DO NOT MAKE MODIFICATIONS HERE, THEY WILL BE OVERWRITTEN

`)

ModWarning - Displayed at the top of `docker-compose.tok.yml`

Functions

func ComposerCacheVolumeAttach

func ComposerCacheVolumeAttach() []byte

ComposerCacheVolumeAttach ...

func DrupalSettings

func DrupalSettings(drupalRoot string, projectName string) []byte

DrupalSettings ...

func EnableAdminer

func EnableAdminer(version string) []byte

EnableAdminer ...

func EnableChromedriver

func EnableChromedriver() []byte

EnableChromedriver ...

func EnableMailhog

func EnableMailhog(version string) []byte

EnableMailhog ...

func EnableMemcache

func EnableMemcache(version string) []byte

EnableMemcache ...

func EnableRedis

func EnableRedis(version string) []byte

EnableRedis ...

func EnableSolr

func EnableSolr(version string) []byte

EnableSolr ...

func ExternalVolumeDeclare

func ExternalVolumeDeclare(name string) []byte

ExternalVolumeDeclare ...

func ImageVersion

func ImageVersion(phpVersion, stability string) []byte

ImageVersion ...

func InternalVolumeDeclare

func InternalVolumeDeclare(name string) []byte

InternalVolumeDeclare ...

func MysqlVolumeAttach

func MysqlVolumeAttach(name string) []byte

MysqlVolumeAttach ...

func SetDatabase

func SetDatabase(image, version string) []byte

SetDatabase sets the database engine and configuration

func SetDatabasePort

func SetDatabasePort(port string) []byte

SetDatabasePort assigns a static local port for the database

func SetUnisonVersion

func SetUnisonVersion(version string) []byte

SetUnisonVersion ...

func TokaidoDockerSiteVolumeAttach

func TokaidoDockerSiteVolumeAttach(path string) []byte

TokaidoDockerSiteVolumeAttach ...

func TokaidoFusionSiteVolumeAttach

func TokaidoFusionSiteVolumeAttach(path, name string) []byte

TokaidoFusionSiteVolumeAttach ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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