This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import tarfile | |
| from charmhelpers.core.hookenv import ( | |
| config, | |
| status_set, | |
| open_port, | |
| ) | |
| from charms.reactive import ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: microbot-ingress | |
| spec: | |
| rules: | |
| - host: microbot.THEIPADDRESS.xip.io | |
| http: | |
| paths: | |
| - path: / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| # | |
| # Copyright 2017 Canonical, Ltd. Authored by Marco Ceppi | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ***************************************************** | |
| ***************************************************** | |
| Total for all tiles rendered | |
| Meta tiles rendered: Rendered 86852 tiles in 32915.56 seconds (2.64 tiles/s) | |
| Total tiles rendered: Rendered 5558528 tiles in 32915.56 seconds (168.87 tiles/s) | |
| Total tiles handled: Rendered 133582 tiles in 32915.56 seconds (4.06 tiles/s) | |
| ***************************************************** | |
| Zoom 11: min: 0.5 avg: 42.1 max: 356.5 over a total of 6149.9s in 146 requests | |
| Zoom 12: min: 0.0 avg: 24.7 max: 174.6 over a total of 70398.1s in 2854 requests | |
| Zoom 13: min: 0.0 avg: 11.0 max: 55.5 over a total of 72866.8s in 6633 requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from charmhelpers.core.hookenv import relation_ids, related_units, relation_get | |
| for rid in relation_ids('database'): | |
| for u in related_units(rid): | |
| print('Hostname: %s' % relation_get('hostname', unit=u, rid=rid)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cluster-ready: Kubernetes master running. | |
| rendering-files: Rendering authentication files. | |
| obama: Bobama |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| osm2pgsql version 0.92.0-RC1 (64 bit id space) | |
| Using built-in tag processing pipeline | |
| Using projection SRS 3857 (Spherical Mercator) | |
| Setting up table: planet_osm_point | |
| Setting up table: planet_osm_line | |
| Setting up table: planet_osm_polygon | |
| Setting up table: planet_osm_roads | |
| Allocating memory for dense node cache | |
| Allocating dense node cache in one big chunk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| series: xenial | |
| services: | |
| "kubernetes-master": | |
| charm: "cs:~containers/kubernetes-master-8" | |
| num_units: 1 | |
| annotations: | |
| "gui-x": "800" | |
| "gui-y": "850" | |
| flannel: | |
| charm: "cs:~containers/flannel-6" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| includes: | |
| - 'layer:basic' | |
| options: | |
| basic: | |
| packages: | |
| - 'python' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: charm | |
| version: 2.2 | |
| summary: charm and charm-tools | |
| description: charmstore-client and charm-tools | |
| confinement: strict | |
| apps: | |
| charm: | |
| command: env PYTHONPATH=$SNAP/usr/lib/python2.7/dist-packages PREFIX=$SNAP GIT_EXEC_PATH=$SNAP/usr/lib/git-core LC_ALL=C.UTF-8 $SNAP/bin/charm | |
| plugs: [network, network-bind, home] |