appname: hagrid

build:
    base: laincloud/centos-lain:20160503
    prepare:
        version: 3
        script:
            - npm install -g webpack webpack-dev-server
            - mkdir -p /go/src/github.com/laincloud
    script:
        - npm install react react-dom babel-core babel-loader babel-preset-es2015 babel-preset-react
        - ln -s /lain/app $GOPATH/src/github.com/laincloud/hagrid
        - go build -o hagrid $GOPATH/src/github.com/laincloud/hagrid/main.go
        - webpack

web:
    cmd: ./hagrid
    port: 8080
    memory: 64m
    secret_files:
        - hagrid.conf.json

web.icinga:
    image: registry.lain.local/icinga2:20160830
    memory: 256M
    cmd: ./run_icinga.sh
    port: 80
    mountpoint:
        - icinga.lain.cloud
    https_only: true
    stateful: true
    secret_files:
        - /etc/icinga2/features-available/ido-mysql.conf
        - /etc/icinga2/scripts/util.sh
        - /etc/icingaweb2/resources.ini
    persistent_dirs:
        - /var/lib/icinga2
    logs:
        - icingaweb2.log


use_services:
    mysql-service:
        - mysql-master

appname: hagrid

build:
    base: laincloud/centos-lain:20160503
    prepare:
        version: 3
        script:
            - npm install -g webpack webpack-dev-server
            - mkdir -p /go/src/github.com/laincloud
    script:
        - npm install react react-dom babel-core babel-loader babel-preset-es2015 babel-preset-react
        - ln -s /lain/app $GOPATH/src/github.com/laincloud/hagrid
        - go build -o hagrid $GOPATH/src/github.com/laincloud/hagrid/main.go
        - webpack
        - rm -rf node_modules

web:
    cmd: ./hagrid
    port: 8080
    memory: 64m
    secret_files:
        - hagrid.conf.json

web.icinga:
    image: registry.lain.local/centos-lain-icinga2:20160907
    memory: 256M
    cmd: ./run_icinga.sh
    port: 80
    mountpoint:
        - icinga.lain.cloud
    https_only: true
    stateful: true
    secret_files:
        - /etc/icinga2/features-available/ido-mysql.conf
        - /etc/icinga2/scripts/util.sh
        - /etc/icingaweb2/resources.ini
    persistent_dirs:
        - /var/lib/icinga2
    logs:
        - icingaweb2.log


use_services:
    mysql-service:
        - mysql-master

Remove node_module dir to decrease the images size
Remove node_module dir to decrease the images size
