Codesprint définissant 2 groupes de travail:
- Documentation
- Analyse / état de l'Art, et proposition de PoC autour de geOrchestra et SOS
Nous sommes partis d'un document de travail de Rennes-Métropole, mis à jour en
| <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
| http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
| <mirrors> | |
| <mirror> | |
| <id>artifactory-georchestra</id> | |
| <mirrorOf>*</mirrorOf> | |
| <url>https://packages.georchestra.org/artifactory/maven</url> | |
| </mirror> |
| from ldap3 import Connection, SUBTREE, MODIFY_DELETE | |
| from ldap3.core.exceptions import LDAPException | |
| LDAP_URI = 'ldap://localhost:3899' | |
| BIND_WITH_CREDENTIALS = True | |
| LDAP_BINDDN = 'cn=admin,dc=georchestra,dc=org' | |
| LDAP_PASSWD = 'secret' | |
| USERS_DN = 'ou=users,dc=georchestra,dc=org' | |
| ROLES_DN = 'ou=roles,dc=georchestra,dc=org' |
| -- Allow to list all layers with no spatial index | |
| -- To get the list | |
| -- SELECT * FROM create_missing_spatial_indexes(True); | |
| -- To create automatically the missing spatial indexes | |
| -- SELECT * FROM create_missing_spatial_indexes(False); | |
| DROP FUNCTION IF EXISTS create_missing_spatial_indexes(); | |
| DROP FUNCTION IF EXISTS create_missing_spatial_indexes( BOOLEAN ); | |
| CREATE OR REPLACE FUNCTION create_missing_spatial_indexes(simulate BOOLEAN DEFAULT FALSE) | |
| RETURNS TABLE ( |
| lxc.utsname = cont1 | |
| lxc.network.type = veth | |
| lxc.network.flags = up | |
| lxc.network.link = lxcbr0 | |
| lxc.network.name = eth0 | |
| lxc.network.ipv4 = 192.168.0.2/24 | |
| lxc.network.ipv4.gateway = 192.168.0.1 | |
| lxc.rootfs = /var/lib/lxc/cont1/rootfs |
Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.
As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.
| FROM debian:7 | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get -qq update \ | |
| && apt-get -qq -y --no-install-recommends install \ | |
| autoconf \ | |
| automake \ | |
| build-essential \ | |
| curl \ |
| activate_this = '/var/www/pmauduit/private/GeoHealthCheck/bin/activate_this.py' | |
| execfile(activate_this, dict(__file__=activate_this)) | |
| import sys | |
| sys.stdout = sys.stderr | |
| sys.path.insert(0, '/var/www/pmauduit/private/GeoHealthCheck/GeoHealthCheck/GeoHealthCheck') | |
| from app import APP as application |
| #!/bin/sh | |
| case $1 in | |
| config) | |
| cat <<'EOM' | |
| graph_title Temperature | |
| graph_vlabel Temperature | |
| temperature.label temperature | |
| EOM | |
| exit 0;; |
| # http://stackoverflow.com/questions/748675/finding-duplicate-files-and-removing-them/748908#748908 | |
| import sys | |
| import os | |
| import mmh3 | |
| CHUNK_SIZE = 1024*1024 | |
| def check_for_duplicates(paths): |