commands: make: !Command description: Build the library container: ubuntu run: [cargo, build] cargo: !Command description: Run arbitrary cargo command container: ubuntu run: [cargo] test: !Command description: Run tests container: ubuntu run: [cargo, test] carbon: &carbon !Command description: Run carbon container: graphite work-dir: /opt/graphite run: | rm /work/integrations/tmp/carbon-cache-a.pid || true ./bin/carbon-cache.py start --debug graphite-web: &graphite !Command description: Run graphite-web container: graphite work-dir: /opt/graphite/webapp/graphite run: - python - manage.py - runserver _init_graphite: !Command description: Init graphite-web (cantal can submit data to carbon) container: graphite work-dir: /opt/graphite/webapp/graphite run: | python manage.py syncdb --noinput mkdir -p /opt/graphite/storage/log/webapp _bulk: !Command description: Run `bulk` command (for version bookkeeping) container: ubuntu run: [bulk] containers: ubuntu: setup: - !Ubuntu xenial - !Install [ca-certificates, git, build-essential] - !TarInstall url: "https://static.rust-lang.org/dist/rust-1.22.1-x86_64-unknown-linux-gnu.tar.gz" script: "./install.sh --prefix=/usr \ --components=rustc,rust-std-x86_64-unknown-linux-gnu,cargo" - &bulk !Tar url: "https://github.com/tailhook/bulk/releases/download/v0.4.9/bulk-v0.4.9.tar.gz" sha256: 23471a9986274bb4b7098c03e2eb7e1204171869b72c45385fcee1c64db2d111 path: / environ: HOME: /work/target RUST_BACKTRACE: 1 graphite: setup: - !Alpine v3.3 - !Install [tzdata] - !PipConfig { dependencies: true } - !Py2Install - twisted<12.0 - !TarInstall url: https://launchpad.net/graphite/0.9/0.9.10/+download/whisper-0.9.10.tar.gz script: python setup.py install - !TarInstall url: https://launchpad.net/graphite/0.9/0.9.10/+download/carbon-0.9.10.tar.gz script: python setup.py install - !EnsureDir /var/lib/carbon - !EnsureDir /opt/graphite/conf - !Copy source: /work/graphite/carbon.conf path: /opt/graphite/conf/carbon.conf - !Copy source: /work/graphite/storage-schemas.conf path: /opt/graphite/conf/storage-schemas.conf - !Install [py-cairo, rrdtool-dev] - !Install - ttf-dejavu - ttf-liberation - ttf-ubuntu-font-family - !Py2Install - django<1.6 - django-tagging<0.4 - twisted<12.0 - fields - pyparsing - rrdtool - whitenoise - python-memcached - pytz - !TarInstall url: https://launchpad.net/graphite/0.9/0.9.10/+download/graphite-web-0.9.10.tar.gz script: | python check-dependencies.py python setup.py install - !Copy source: /work/graphite/local_settings.py path: /opt/graphite/webapp/graphite/local_settings.py - !EnsureDir /opt/graphite/storage - !Sh | echo 'SECRET_KEY = "fails in local settings :("' \ >> /opt/graphite/webapp/graphite/settings.py auto-clean: true volumes: /opt/graphite/storage: !Persistent name: graphite init-command: _init_graphite