This file contains 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
Verifying that +nledez is my blockchain ID. https://onename.com/nledez |
This file contains 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
[core] | |
excludesfile = /Users/nico/.gitignore_global |
This file contains 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
# Mise à jour vers le nouveau repo | |
sed -i 's/main$/cozy/' /etc/apt/sources.list.d/cozy.list | |
# MAJ des sources, update de cozy_management, puis MAJ vers node4 | |
apt-get update | |
apt-get install python-cozy-management | |
cozy_management migrate_2_node4 |
This file contains 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
#!/bin/bash | |
set -e | |
LOCK=/tmp/cozy-init.lock | |
LOGS=/tmp/post-configuration-cozy.log | |
if [ -e $LOCK ]; then | |
echo 'Already in progress' 2>&1 | tee -a $LOGS | |
exit 0 |
This file contains 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
$ ssh pi@<ip-of-your-raspberrypi> | |
# Switch as root to type all there commands: | |
sudo -s | |
## Reset CouchDB tokens: | |
# Shutdown the cozy: | |
supervisorctl stop cozy-controller |
This file contains 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
server { | |
listen 80; | |
server_name nicolasledez.cozycloud.cc ; | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
listen 443; | |
server_name nicolasledez.cozycloud.cc; | |
ssl on; |
This file contains 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
En général : | |
- Feature flipping permet de tester et désactiver dans toutes les PF (test jusqu'a la prod) | |
- Maraton permet de gérer le versionning de l'app | |
- Génération automatique des versions (le numéro). Incrément du numéro | |
- Le numéro de version ne se retrouve pas dans Git | |
- Un artefact n'est construit qu'une seule fois. Et c'est le même qui va du dev jusqu'en prod | |
- Les credentials sont gérés dans Vault et ne sont jamais contenus dans les layers | |
- Vault permet d'enregistrer des credentials. La prod peut lire les credentials, mais pas les modifier | |
- Gitlab CI et Concourse CI sont d'excellentes alternatives à Jenkins |
This file contains 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
Sun Oct 2 14:51:54 UTC 2016 |
This file contains 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
[Unit] | |
Description=Cozy Controller | |
[Service] | |
Environment=NODE_ENV=production | |
Environment=USE_SYSLOG=true | |
Environment=WEBOOB_PYTHON_PATH=/usr/share/cozy-weboob/lib/python2.7/site-packages | |
Environment=WEBOOB_DIR=/usr/share/cozy-weboob/lib/python2.7/site-packages | |
Environment=KRESUS_WEBOOB_DIR=/usr/share/cozy-weboob/lib/python2.7/site-packages | |
ExecStart=/usr/bin/cozy-controller |
This file contains 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
{ | |
"object_kind": "push", | |
"before": "95790bf891e76fee5e1747ab589903a6a1f80f22", | |
"after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", | |
"ref": "refs/heads/master", | |
"checkout_sha": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", | |
"user_id": 4, | |
"user_name": "John Smith", | |
"user_username": "jsmith", | |
"user_email": "john@example.com", |