site-web-alliance-boreale/presentations/dev-04/slides/base.html
Daniel Allaire a9968d456b site web : le parcours developpeur, cinq modules, trois atlas et le guide
La page de la formation gagne une section a part pour qui ecrit une application
qu'un site de l'Alliance heberge : les modules D1 a D5, les trois atlas
interactifs (le chemin d'une requete, la vie d'une version, ce qui revient apres
une perte) et le guide du developpeur rendu en page.

- presentations/dev-01 a dev-05, atlas-developpeur/ et guide/ : copies de
  Set-OPS-public (promo/formation/, docs/exploitation/).
- outils/guide.py : un Markdown restreint vers developpeur/guide.html, les liens
  relatifs menes a la forge publique de l'Alliance.
- construire.py et presentations.py : une collection « developpeur » a cote de
  la formation et des conferences ; les atlas recoivent leur empreinte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:32:33 -05:00

40 lines
5.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<section id="base" data-transition="fade" style="background:#131B36;color:#EEF2F8;font-family:'IBM Plex Sans', Arial, sans-serif;padding:128px 128px 160px;display:flex;flex-direction:column;gap:36px">
<div style="display:flex;flex-direction:column;gap:16px">
<p style="font-size:24px;letter-spacing:3px;text-transform:uppercase;color:#4FE3C1;font-weight:600">4 · La base · nouveau en novembre 2026</p>
<h2 style="font-family:'Source Serif 4', Georgia, serif;font-size:68px;font-weight:400;line-height:1.1;color:#EEF2F8">Une base à vous, qui arrive dans l’environnement.</h2>
</div>
<div style="display:flex;gap:32px;align-items:stretch">
<div style="display:grid;grid-template-columns:400px 1fr;column-gap:36px;align-items:start">
<p style="font-size:22px;letter-spacing:2px;text-transform:uppercase;color:#8592AD;font-weight:600;padding:0 0 10px">Variable</p>
<p style="font-size:22px;letter-spacing:2px;text-transform:uppercase;color:#8592AD;font-weight:600;padding:0 0 10px">Contenu</p>
<p style="font-size:25px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">PGHOST</span> <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">PGPORT</span></p>
<p style="font-size:25px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556">le serveur de bases</p>
<p style="font-size:25px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">PGDATABASE</span> <span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">PGUSER</span></p>
<p style="font-size:25px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556">votre base, votre utilisateur</p>
<p style="font-size:25px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">PGPASSWORD</span></p>
<p style="font-size:25px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556">depuis la voûte</p>
<p style="font-size:25px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">PGSSLMODE</span></p>
<p style="font-size:25px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">verify-full</span></p>
<p style="font-size:25px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">PGSSLROOTCERT</span></p>
<p style="font-size:25px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556">la racine qui vérifie le serveur</p>
<p style="font-size:25px;line-height:1.35;color:#4FE3C1;font-weight:600;padding:14px 0;border-top:1px solid #2A3556"><span style="font-family:'JetBrains Mono', 'Courier New', monospace;font-size:0.88em;color:#4FE3C1">DATABASE_URL</span></p>
<p style="font-size:25px;line-height:1.35;color:#BCC7DA;font-weight:400;padding:14px 0;border-top:1px solid #2A3556">tout cela en une URL</p>
</div>
<div style="flex:1;display:flex;flex-direction:column;gap:4px;background:#0B1022;padding:30px 32px;border-radius:20px;border-top:6px solid #56C2FF;font-family:'JetBrains Mono', 'Courier New', monospace;font-size:24px;line-height:1.45">
<p style="font-family:'IBM Plex Sans', Arial, sans-serif;font-size:24px;letter-spacing:2px;text-transform:uppercase;color:#56C2FF;font-weight:600">Vous</p>
<p style="font-size:24px;color:#8592AD;white-space:pre"># setops-app.yml</p>
<p style="font-size:24px;color:#EEF2F8;white-space:pre">etat:</p>
<p style="font-size:24px;color:#EEF2F8;white-space:pre"> base: postgresql</p>
<p style="font-size:24px;color:#EEF2F8;white-space:pre">&#160;</p>
<p style="font-size:24px;color:#8592AD;white-space:pre"># psycopg lit les PG* d’office</p>
<p style="font-size:24px;color:#EEF2F8;white-space:pre">import psycopg</p>
<p style="font-size:24px;color:#EEF2F8;white-space:pre">cnx = psycopg.connect(&quot;&quot;)</p>
<p style="font-size:24px;color:#EEF2F8;white-space:pre">&#160;</p>
<p style="font-size:24px;color:#8592AD;white-space:pre"># SQLAlchemy, Django :</p>
<p style="font-size:24px;color:#EEF2F8;white-space:pre">os.environ[&quot;DATABASE_URL&quot;]</p>
</div>
</div>
<p style="position:absolute;left:128px;bottom:64px;width:1400px;font-size:24px;color:#8592AD">Set-OPS · Formation · Module D4 — L’application Python</p>
<p style="position:absolute;right:128px;bottom:64px;width:120px;text-align:right;font-size:24px;color:#8592AD">07</p>
<aside>La base PostgreSQL, ajoutée en novembre 2026 : c’est la partie la plus récente du parcours. Vous déclarez etat.base: postgresql, et le mainteneur déclare la base au plan du locataire. Set-OPS crée une base à vous, avec son propre utilisateur : aucune autre application n’y accède, et vous n’accédez à aucune autre. La connexion arrive dans l’environnement sous deux formes : les variables standard de libpq, PGHOST, PGPORT, PGDATABASE, PGUSER, PGPASSWORD, PGSSLMODE et PGSSLROOTCERT ; et la même chose en une URL, DATABASE_URL. psycopg, empaqueté par Debian, lit les variables PG d’office : connect avec une chaîne vide suffit. SQLAlchemy et Django lisent plutôt l’URL. Ne codez ni l’hôte, ni le mot de passe, ni le mode TLS. Ces huit noms sont réservés : un secret du contrat ne peut pas en porter un.</aside>
</section>