Skip to content

Commit 50b2ca1

Browse files
author
Exploding Labs Bot
committed
Update site from docs source repo
1 parent 16195b6 commit 50b2ca1

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

superstack/extensions/index.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -612,19 +612,18 @@ <h3 id="1-clone-the-extension-source">1. Clone the Extension Source</h3>
612612
<div class="highlight"><pre><span></span><code>git<span class="w"> </span>clone<span class="w"> </span>https://github.com/michelp/pgjwt<span class="w"> </span>postgres/pgjwt
613613
</code></pre></div>
614614
<h3 id="2-modify-the-postgres-dockerfile">2. Modify the Postgres Dockerfile</h3>
615-
<p>Edit <code>postgres/Dockerfile</code> to install build tools and compile the
616-
extension:</p>
617-
<div class="highlight"><pre><span></span><code>RUN apt-get update &amp;&amp; apt-get install -y \
618-
build-essential \
619-
postgresql-server-dev-17
620-
621-
# pgjwt - used by the auth schema
622-
COPY ./pgjwt /pgjwt
623-
WORKDIR /pgjwt
624-
RUN make &amp;&amp; make install
625-
626-
# Reset workdir
627-
WORKDIR /var/lib/postgresql
615+
<p>Edit the Postgres Dockerfile to install build tools and compile the extension:</p>
616+
<div class="highlight"><span class="filename">postgres/Dockerfile</span><pre><span></span><code><span class="k">RUN</span><span class="w"> </span>apt-get<span class="w"> </span>update<span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span>apt-get<span class="w"> </span>install<span class="w"> </span>-y<span class="w"> </span><span class="se">\</span>
617+
<span class="w"> </span>build-essential<span class="w"> </span><span class="se">\</span>
618+
<span class="w"> </span>postgresql-server-dev-17
619+
620+
<span class="c"># pgjwt - used by the auth schema</span>
621+
<span class="k">COPY</span><span class="w"> </span>./pgjwt<span class="w"> </span>/pgjwt
622+
<span class="k">WORKDIR</span><span class="w"> </span><span class="s">/pgjwt</span>
623+
<span class="k">RUN</span><span class="w"> </span>make<span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span>make<span class="w"> </span>install
624+
625+
<span class="c"># Reset workdir</span>
626+
<span class="k">WORKDIR</span><span class="w"> </span><span class="s">/var/lib/postgresql</span>
628627
</code></pre></div>
629628
<blockquote>
630629
<p>🧼 Set <code>WORKDIR</code> back to the default to avoid unintended effects.</p>

superstack/psql/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ <h2 id="open-a-psql-shell">📟 Open a psql Shell</h2>
677677
</blockquote>
678678
<h2 id="run-inline-sql-commands">🔹 Run Inline SQL Commands</h2>
679679
<p>You can also run SQL directly without opening an interactive shell:</p>
680-
<div class="highlight"><pre><span></span><code>bin/postgres -c &#39;select * from movie;&#39;
680+
<div class="highlight"><pre><span></span><code>bin/postgres<span class="w"> </span>-c<span class="w"> </span><span class="s1">&#39;select * from movie;&#39;</span>
681681
</code></pre></div>
682682
<p>✅ Because <code>bin/postgres</code> defaults to <code>psql</code>, you don’t need to type <code>psql</code>
683683
explicitly.</p>
@@ -701,7 +701,7 @@ <h3 id="inputrc">📄 .inputrc</h3>
701701
<h2 id="step-2-mount-and-apply-the-configs">🔗 Step 2: Mount and apply the configs</h2>
702702
<p>Add to your <code>compose.override.yaml</code> (this file is for development-only
703703
overriding of <code>compose.yaml</code>):</p>
704-
<div class="highlight"><pre><span></span><code><span class="nt">services</span><span class="p">:</span>
704+
<div class="highlight"><span class="filename">compose.override.yaml</span><pre><span></span><code><span class="nt">services</span><span class="p">:</span>
705705
<span class="w"> </span><span class="nt">postgres</span><span class="p">:</span>
706706
<span class="w"> </span><span class="nt">volumes</span><span class="p">:</span>
707707
<span class="w"> </span><span class="p p-Indicator">-</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">./postgres/rc:/rc:ro</span>

0 commit comments

Comments
 (0)