Skip to content

Commit

Permalink
Deploy to PrarthonaPaul/wildfly-elytron gh-pages branch - Tue Dec 12 …
Browse files Browse the repository at this point in the history
…16:48:03 UTC 2023
  • Loading branch information
PrarthonaPaul committed Dec 12, 2023
1 parent 1ac6e02 commit 6df0ddc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
41 changes: 23 additions & 18 deletions blog/in-progress-wildfly-feature-on-openshift/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ <h2 id="configure-rh-sso"><a class="anchor" href="#configure-rh-sso"></a>Configu
<p>First log in to the RH-SSO admin console using the username and password specified in the yaml configuration for the SSO pod.</p>
</li>
<li>
<p>From here, create a realm called <strong>myrealm</strong>, and a client called <strong>myclient</strong> as fllows:</p>
<p>From here, create a realm called <strong>myrealm</strong>, and a client called <strong>myclient</strong> as follows:</p>
<div class="ulist">
<ul>
<li>
Expand Down Expand Up @@ -500,7 +500,13 @@ <h3 id="build-the-docker-image-for-quay"><a class="anchor" href="#build-the-dock
</div>
</div>
<div class="paragraph">
<p>Replace <code>&lt;your-quay-username&gt;</code> with your username for Quay. The <code>-t</code> command indicates that we are specifying a tag, which in this case is <code>wildfly-app</code>. The tag is used to identify different images inside the same repository. Using this image, we can ensure that we are running your local version of WildFly, as opposed to the version of WildFly that is present on OpenShift.</p>
<p>Replace <code>&lt;your-quay-username&gt;</code> with your username for Quay. The <code>-t</code> command indicates that we are specifying a tag, which in this case is <code>wildfly-app</code>. The tag is used to identify different images inside the same repository. Using this image, we can ensure that we are running your local version of WildFly, as opposed to the version of WildFly that is present on OpenShift.
You may need to log into quay.io using your username and password if you have not done so already:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-none hljs">docker login -u=&lt;your-quay-username&gt; -p=&lt;your-quay-password&gt; quay.io</code></pre>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -537,14 +543,6 @@ <h2 id="build-the-application"><a class="anchor" href="#build-the-application"><
docker push quay.io/&lt;your-quay-username&gt;/wildfly:latest</code></pre>
</div>
</div>
<div class="paragraph">
<p>You may need to log into quay.io using your username and password if you have not done so already:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code class="language-none hljs">docker login -u=&lt;your-quay-username&gt; -p=&lt;your-quay-password&gt; quay.io</code></pre>
</div>
</div>
<div class="sect2">
<h3 id="configure-image-pull-secret"><a class="anchor" href="#configure-image-pull-secret"></a>Configure Image Pull Secret</h3>
<div class="paragraph">
Expand Down Expand Up @@ -590,14 +588,20 @@ <h2 id="add-helm-configuration"><a class="anchor" href="#add-helm-configuration"
</div>
</div>
<div class="paragraph">
<p>Replace &lt;your-project-name&gt; to match the project in your RH-SSO url.
<p>Replace &lt;OIDC_PROVIDER_URL&gt; to match the url for your RH-SSO instance on OpenShift and add a <code>/auth/</code> to the end of the URL.
There are three fields that we have specified: image, build and deploy.</p>
</div>
<div class="paragraph">
<p>Using the image tag, we are specifying that we want the pod to use the image of our application that we just built. Notice that we did not specify the tag. This is because when the helm chart uploads, the <code>latest</code> tag is appended to it by default, which is why we tagged our application image as that. If you want to use a different tag, then you can edit this by clicking on the pod, click on <code>Edit Deployment</code> and changing it under <code>Image Name</code>.</p>
<p>Using the image tag, we are specifying that we want the pod to use the image of our application that we just built.
Notice that we did not specify the tag. This is because when the helm chart uploads, the <code>latest</code> tag is appended to it
by default, which is why we tagged our application image as that. If you want to use a different tag, then you can edit
this by clicking on the pod, click on <code>Edit Deployment</code> and changing it under <code>Image Name</code>.</p>
</div>
<div class="paragraph">
<p>We have also added some environment variables. Notice the <code>OIDC_PROVIDER_URL</code>. The value of this will be the url for your RH-SSO pod, which can be found by clicking on the <code>Open URL</code> button on the pod. So, copy that link and paste it as the <code>value</code>. The <code>OIDC_PROVIDER_URL</code> variable is being used by the <code>oidc.json</code> file inside the <code>WEB-INF</code> directory when specifying the <code>provider-url</code>.</p>
<p>We have also added some environment variables. Notice the <code>OIDC_PROVIDER_URL</code>. The value of this will be the url for
your RH-SSO pod, which can be found by clicking on the <code>Open URL</code> button on the pod. So, copy that link and paste it as
the <code>value</code>. The <code>OIDC_PROVIDER_URL</code> variable is being used by the <code>oidc.json</code> file inside the <code>WEB-INF</code> directory when
specifying the <code>provider-url</code>.</p>
</div>
<div class="paragraph">
<p>Change the image name on the <code>charts/helm.yaml</code> file to <code>quay.io/&lt;your-quay-username&gt;/wildfly</code>.</p>
Expand Down Expand Up @@ -636,13 +640,14 @@ <h2 id="deploy-the-example-application-to-wildfly-on-openshift"><a class="anchor
</div>
</div>
<div class="paragraph">
<p>Click on the three dots beside the <code>simple-webapp-oidc</code> pod&#8217;s name and click on <code>Edit Deployment</code>. Make sure that the image name has <code>:latest</code>
added to it. If not, edit it to reflect the correct image name under <code>Image Name</code>. Under <code>Show advanced image options</code>,
set the <code>Pull Secret</code> to be the one you configured in the last section and click <code>Save</code>.</p>
<p>Click on the three dots beside the <code>simple-webapp-oidc</code> pod&#8217;s name and click on <code>Edit Deployment</code>.
Make sure that the image name is 'quay.io/&lt;your-quay-username&gt;/wildfly:latest`. If not, edit it to reflect the correct
image name under <code>Image Name</code>. Under <code>Show advanced image options</code>, set the <code>Pull Secret</code> to be the one you configured
in the last section and click <code>Save</code>.</p>
</div>
<div class="paragraph">
<p>Your application is now deploying. Click on the <code>simple-webapp-oidc</code> pod and under the <code>resources</code> tab, you should see the status of your deployment.
Alternatively, you can use the following commands:</p>
<p>Your application is now deploying. Click on the <code>simple-webapp-oidc</code> pod and under the <code>resources</code> tab, you should see
the status of your deployment. Alternatively, you can use the following commands:</p>
</div>
<div class="listingblock">
<div class="content">
Expand Down
2 changes: 1 addition & 1 deletion feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>WildFly Elytron</title>
<link>https://wildfly-security.github.io/wildfly-elytron</link>
<description></description>
<lastBuildDate>Tue, 12 Dec 2023 15:59:09 +0000</lastBuildDate>
<lastBuildDate>Tue, 12 Dec 2023 16:47:51 +0000</lastBuildDate>

<item>
<title>Trying Out An Upcoming Feature for WildFly on OpenShift</title>
Expand Down

0 comments on commit 6df0ddc

Please sign in to comment.