<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bernard &#39;Bonjo&#39; Thompson on Medium]]></title>
        <description><![CDATA[Stories by Bernard &#39;Bonjo&#39; Thompson on Medium]]></description>
        <link>https://medium.com/@bethomps?source=rss-e3e05dab7d81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*F5tCkvREOMo6yiydTMz9zA.jpeg</url>
            <title>Stories by Bernard &amp;#39;Bonjo&amp;#39; Thompson on Medium</title>
            <link>https://medium.com/@bethomps?source=rss-e3e05dab7d81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 13:32:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bethomps/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploying React App (with environment variables) on Red Hat OpenShift with OpenShift CLI (Command…]]></title>
            <link>https://medium.com/@bethomps/deploying-react-app-with-environment-variables-on-red-hat-openshift-with-openshift-cli-command-e4b258efd15c?source=rss-e3e05dab7d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4b258efd15c</guid>
            <category><![CDATA[openshift-training]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[openshift-4]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[openshift]]></category>
            <dc:creator><![CDATA[Bernard 'Bonjo' Thompson]]></dc:creator>
            <pubDate>Thu, 11 Nov 2021 16:13:53 GMT</pubDate>
            <atom:updated>2021-11-12T10:18:57.095Z</atom:updated>
            <content:encoded><![CDATA[<h3>Deploying React App (with environment variables) on Red Hat OpenShift with OpenShift CLI (Command Line Interface)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2QpxMu-nZTnI-iUyo6wRMA.png" /></figure><p>In an earlier blog we deployed a <a href="https://medium.com/@bethomps/deploying-react-app-with-environment-variables-on-red-hat-openshift-668a9d74d5dd">React application with an environment variable using the OpenShift UI</a> (user interface). This time around we are going to deploy the same application using the OpenShift cli.</p><h3>About the application</h3><p>The application uses the giphy API to load <em>“trending”</em> gifs and allow a user to search for gifs. The source code for the react giphy app can be found <a href="https://github.com/bonjo7/giphy-typescript">here</a>.</p><p>Fork this project to your own GitHub account. If you want to run the application locally to see how it works, just follow the <a href="https://github.com/bonjo7/giphy-typescript/blob/master/README.md">build steps</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/30/0*G1NHJ1ihAV4XBM4T" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*jAYb1a5aAqnzxLQR.png" /></figure><p>Click the Fork button and select your GitHub profile</p><p><strong>Note: </strong>If you decide to use your own React application, OpenShift requires the application to run on port 8080, running npx create-react-app the application will use port 3000. A quick fix to ensure the application runs on port 8080 is to update the package.json file start script to &quot;start&quot; : &quot;PORT=8080 react-scripts start .</p><h3>Let’s dive into the OpenShift cli (command line interface) and deploy our app</h3><p>First off we need to ensure the OpenShift cli is installed, to check this run oc version . This command should return your cli version. If the oc command is not found you can install it by following these steps <a href="https://docs.openshift.com/container-platform/4.2/cli_reference/openshift_cli/getting-started-cli.html#cli-installing-cli_cli-developer-commands">install oc command</a>.</p><p>Now that we have the oc cli and have access to a cluster we need to login to our OpenShift cluster oc login -u &lt;username&gt; -p &lt;password&gt; &lt;cluster api endpoint&gt;</p><p>Just like in the UI we need to create a new project, we complete this by running the oc new-project command where we will pass the project name and a display name oc new-project giphy-app --display-name=&quot;giphy-app&quot;</p><p>To get a list of you projects you can run oc get projects . If you want to delete a project run oc delete project &lt;project-name&gt;</p><p>We are now going to create our application by using the source code from GitHub while also adding the environment variable and a name for our application.</p><p>oc new-app <a href="https://github.com/bonjo7/giphy-typescript">https://github.com/&lt;your-github-username&gt;/giphy-typescript</a> \<br>-e REACT_APP_GIPHY_API_KEY=&lt;your-giphy-api-key&gt; \<br>--name=giphy-typescript-app</p><p>Wait now, we did not specify a base image to use, as in the UI we would select the Node.js builder image, so how is this going to work? When we build from source, the new-app command attempts to determine the source code language. In this instance it sees a package.json file and therefore suspects that this is a node application. Once the language has been detected new-app searches the OpenShift Enterprise server for an associated image and if it is not found it will then search Docker Hub registry to find the appropriate image.</p><p>If we wish to override the image the builder will use, we can specify an image by using the image name and separate the image name and source code URL by a tilde ~</p><p>oc new-app openshift/nodejs:latest~https://github.com/&lt;your-github-username&gt;/giphy-typescript \<br> -e REACT_APP_GIPHY_API_KEY=&lt;your-giphy-api-key&gt; \<br> --name=giphy-typescript-app</p><p>The above command is broken down by new-app &lt;image-name&gt;:&lt;image-tag&gt;~&lt;git-url&gt; -e &lt;environment-variable-name&gt;=&lt;environment-variable-value&gt; --name=&lt;app-name&gt;environment variable.</p><p>The app has now been created and will go through the build process. We can view the status of the pod by running oc get pods (use the -w option to watch the pod update live oc get pods -w ). To exit watching the pods press CTRL + c or CMD + c pending on your OS.</p><p>Once the Status of the build pod has progresses from <em>“Init”</em> to <em>“Running”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*7W7rzpn6M4ICo0mH5qv3YA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*OaVyyAYKJ2K4EJtdcFZi2A.png" /></figure><p>You can now check the build logs to follow the progress of the build. You can view the build logs by running oc logs -f bc/giphy-typescript-app .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*QWI4ZD4laoImu08-zN-TPw.png" /></figure><p>If viewing the logs, the build will be complete once you see <em>“Push successful”</em>. To exit the logs press CTRL + c or CMD + c pending on your OS.</p><p>We know our app has deployed successfully by view the build logs and seeing “Push successful” or by checking the status of the build pod is <em>“Completed”</em> and the application container is <em>“Running”</em> as seen below giphy-typescript-app-86dcf5f685-28vpv 1/1 Running</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*O5SMmLS_rvzytZt4TRTTLw.png" /></figure><p>So how do we go about getting the URL of the application in order to view that it is working as expected?</p><p>We need to expose the service by running oc expose svc/giphy-typescript-app , now that application is exposed to the outside world we can run oc get routes and we should see the HOST/PORT in the output as something like giphy-typescript-app.apps.na46k.prod.nextcle.com</p><p>We can put http://giphy-typescript-app.apps.na46k.prod.nextcle.com into the browser and our app should be running.</p><p>That should be it, either our giphy app or your own app should now be up and running. Well done, you have successfully deployed your first React application onto Red Hat OpenShift Container Platform using the oc cli.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qunaSVkPZXQrNyeMh81_2g.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4b258efd15c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying React App (with environment variables) on Red Hat OpenShift]]></title>
            <link>https://medium.com/@bethomps/deploying-react-app-with-environment-variables-on-red-hat-openshift-668a9d74d5dd?source=rss-e3e05dab7d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/668a9d74d5dd</guid>
            <category><![CDATA[openshift-training]]></category>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[openshift-4]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Bernard 'Bonjo' Thompson]]></dc:creator>
            <pubDate>Thu, 11 Nov 2021 13:41:45 GMT</pubDate>
            <atom:updated>2021-11-12T10:22:11.564Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2QpxMu-nZTnI-iUyo6wRMA.png" /></figure><p>Hopefully this short guide will help you to deploy your first react application onto Red Hat OpenShift Container Platform. For this we are going to use a small React app which was been created using the npx create-react-app command. This application requires an environment variable in order to work, which is a <a href="https://developers.giphy.com/">Giphy API</a> key and you can get one by following these steps <a href="https://github.com/bonjo7/giphy-typescript/blob/master/GIPHYAPI.md">GET GIPHY API KEY</a></p><h3>About the application</h3><p>The application uses the giphy API to load <em>“trending”</em> gifs and allow a user to search for gifs. The source code for the react giphy app can be found <a href="https://github.com/bonjo7/giphy-typescript">here</a>.</p><p>Fork this project to your own GitHub account. If you want to run the application locally to see how it works, just follow the <a href="https://github.com/bonjo7/giphy-typescript/blob/master/README.md">build steps</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*cKfEltbpd3vQ0ycFA3fP8w.png" /><figcaption>Click the Fork button and select your GitHub profile</figcaption></figure><p><strong>Note: </strong>If you decide to use your own React application, OpenShift requires the application to run on port 8080, running npx create-react-app the application will use port 3000. A quick fix to ensure the application runs on port 8080 is to update the package.json file start script to &quot;start&quot; : &quot;PORT=8080 react-scripts start .</p><h3>Let’s dive into the OpenShift UI (user interface) and deploy our app</h3><p>First up we need to create a new project. This is where we will deploy our application. In the OpenShift UI, select Administrator and click <em>“Create Project”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*wjOEh_UW5QIw-L2k6p2E8A.png" /><figcaption>Create a new project</figcaption></figure><p>The project requires a mandatory<em> “Name”</em> and optional options<em> “Display Name</em>” and <em>“Description”</em>. Once complete click <em>“Create</em>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*Oej_QoQNJ-1Uk_HpTi_StA.png" /><figcaption>Create project details</figcaption></figure><p>Switch to the developer view. From here we are going to select the <em>“From Git”</em> option, in either the <em>“+Add”</em> or <em>“Topology”</em> page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*1dinvyaU4cUm_bibHsx_wA.png" /><figcaption>Select From Git</figcaption></figure><p>Enter the gitURL of the application under the <em>“Git Repo URL”</em> mandatory filed. Your URL should be https://github.com/&lt;your_github_username&gt;/giphy-typescript</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*RtVMYIS5tCEB67uSZbNpGA.png" /><figcaption>Git URL</figcaption></figure><p>Select the <em>“Node.js”</em> builder image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*Y6RHGXmCKc8u0Jc6YTAaTA.png" /><figcaption>Node.js builder image</figcaption></figure><p>Let’s give the application a name and leave the resources set as <em>“Deployment”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*Ye0gTlpitwCql9uxDeJw4A.png" /></figure><p>Leave the advance options <em>“Create a route to the application Exposes your application at a public URL”</em> ticked. This will expose our application and create a route in order for us to access the application via a URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*EyU4W9o0c4k1TJcmiXBCEw.png" /><figcaption>Expose our application and create a route</figcaption></figure><p>As this giphy application requires an environment variable, we now need to click <em>“Build Configuration”</em> in order to add our environment variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*OzQpxsn9dLqaiElI24i61Q.png" /><figcaption>Select Build Configuration</figcaption></figure><p>Once you have selected <em>“Build Configuration</em>” you should now be able to see the <em>“Build Configuration”</em> options, and here we can enter our environment variables <strong><em>(ensure the env var is named </em></strong><strong><em>REACT_APP_GIPHY_API_KEY as this is how the env var is referenced within the source code of the application) </em></strong>and once done click <em>“Create”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*WB_YQxH0rBMzW0s8u2WGMg.png" /><figcaption>Enter environment variables under the Build Configuration Options</figcaption></figure><p>You should now be on the <em>“Topology”</em> view and we can see our application. If we hover the mouse onto the application we should see <em>“1 pending”</em> as the build is under way, which is also displayed as a light blue colour.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*67UpPKA4vegx1zPolw_kfQ.png" /><figcaption>Build in progress</figcaption></figure><p>If you click the application, you can view the logs and keep an eye on the progress, under <em>“Builds”</em>, <em>“View Logs”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*lhtRFaw6MAak2lbinSXwTQ.png" /><figcaption>Application details</figcaption></figure><p>If you are viewing the logs and once everything is complete you should see <em>“Push successful”.</em> Click back to <em>“Topology”</em> view and your app should now be a dark blue colour as the build is complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*H4p9oK1ZPtcSCmf2fYlFJg.png" /><figcaption>Successful Build</figcaption></figure><p>I guess we now want to view the app to be sure it works! We need to find the application URL and we can achieve this in a few ways. The first option is to click the “Open URL” in the top right of our application. This should open the application in a new tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/86/1*Rm_UfHLOgMSm1kN7tdYWDg.png" /><figcaption>Open URL</figcaption></figure><p>Another option is to click the application, and you can view the URL under <em>“Routes”</em>, again click this URL and it should open the application in a new tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*5tSJ2ez9oTm5m0dMdpwISg.png" /><figcaption>View URL via application</figcaption></figure><p>That should be it, either our giphy app or your own app should now be up and running. Well done, you have successfully deployed your first React application onto Red Hat OpenShift Container Platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qunaSVkPZXQrNyeMh81_2g.png" /></figure><p>Whats next? Why not try and deploy the giphy app using the <a href="https://medium.com/@bethomps/deploying-react-app-with-environment-variables-on-red-hat-openshift-with-openshift-cli-command-e4b258efd15c">OpenShift cli (command line interface)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=668a9d74d5dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WFH as a ‘Graduate’]]></title>
            <link>https://medium.com/@bethomps/wfh-as-a-graduate-7c1f669ec3fb?source=rss-e3e05dab7d81------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c1f669ec3fb</guid>
            <category><![CDATA[intern]]></category>
            <category><![CDATA[graduate]]></category>
            <category><![CDATA[wfh]]></category>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[graduate-job]]></category>
            <dc:creator><![CDATA[Bernard 'Bonjo' Thompson]]></dc:creator>
            <pubDate>Sun, 26 Apr 2020 15:58:34 GMT</pubDate>
            <atom:updated>2020-04-27T15:47:25.099Z</atom:updated>
            <content:encoded><![CDATA[<p>WFH (Work From Home) the acronym which has become part of normal life during the Coronavirus pandemic. Although I like to call it Work From <strong>House</strong>, as the <strong>home</strong> should be a place where you can relax and enjoy and not feel like you are constantly stuck in a working environment.</p><p>My name is Bernard <em>‘Bonjo’</em> Thompson, I am a Graduate App Dev Consultant based at Red Hat’s App Dev Centre of Excellence in Waterford, Ireland. I opted to change careers in my 30’s. During any of my previous employment, working from home was not an option and therefore this has been new to me, and seeing as I am a graduate, I expect possibly a little different from those higher up the ladder.</p><p>With this in mind I have decided to share my experiences and learnings from working at home. Thankfully Red Hat embraces the concept of working from home and, pre Covid19, I would have done a day or two’s work from home a week, but nothing like the continuing trend that we now find ourselves in.</p><p>I have found working from home can lead to low motivation, which in turn leads to less productivity. This can be due to not being prepared or having a plan for home working, and I hope my few tips will be beneficial to any graduates, interns, juniors or associates who are new to this concept of working from home and possibly anyone who may be struggling with it.</p><p>At the start it was a novelty — rock up to work at the kitchen table, work away on something, sure it was great. Although that novelty did not last long. Living and working in the one area, surrounded by distractions such as housework and the kids. It wasn’t long before I started to notice motivation was beginning to drop.</p><p>This is where I decided things needed to change, and implemented a few ideas which have greatly improved working from home for me. Below are “Bonjo’s ten wonders for working from home”</p><p><strong>1. Dedicate a work space</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPSN6h005o5TNyAYMSHseA.jpeg" /><figcaption>My little office in the corner of the kitchen!</figcaption></figure><p>Choose an area in the house that you define as your work space. I live in a small semi detached house with my wife and two kids. I don’t have a spare room, so I just found a corner. The corner of the kitchen to be precise. I purchased a small work desk and office chair in a local hardware store, set up my laptop with a monitor, keyboard and mouse, and that little area has now become my office. The difference in comfort from using the kitchen table has been great, things were already beginning to improve!</p><p><strong>2. Get dressed</strong></p><p>No, I don’t sit naked at my desk, but I can have a tendency to just throw on the tracksuit end (lazy clothes), whereas I found dressing as if I was heading to the office made me feel like I am going to work, I’m up and about and ready for the day ahead.</p><p><strong>3. Start time/ Finish time</strong></p><p>Pick a dedicated start and finish time and stick to it . Ok times may change from day to day, but plan the day. I aim to start at X time and finish at X time and stick to this, if something towards the end of the day lands in your inbox or DM’s, tomorrow is another day.</p><p><strong>4. Walk</strong></p><p>I like this one. Walk to and from work. Wait now you’re thinking, my walk is from the bedroom, down the stairs and into the kitchen. As I said at the beginning, let’s start to treat it like work. Before you are due to start work, go for a 15 min walk outside. It can be very deflating to get up, have breakfast in the kitchen and then begin work in the kitchen. Therefore, take 15 minutes and get some fresh air, then come back in, sit down and begin work. What about finish time? The same rule applies. Close down the laptop, get outside for a 15 minute walk as if you are walking home from work. That way the day is done, you can now enjoy your evening.</p><p><strong>5. Find your time</strong></p><p>We all work at different paces and all work to our best at different times. Find your time, if you find between the hours of 3–4pm (as an example) you work at your best, then do the important and most demanding work during that time. For me it is always five minutes before I am due to finish, maybe that is the procrastinator inside me (not ideal)!</p><p><strong>6. Switch Off to Switch On</strong></p><p>TAKE YOUR BREAKS (yes I just shouted)! Take your breaks away from your workstation, go to a different room, go outside just get away from the laptop, if you happen to take your break in the same room, disable notifications for your break period, take the time to clear your head.</p><p><strong>7. Ignore Distractions</strong></p><p>All those little distractions,, washing, cleaning etc, they will all still be there at the end of the day and if you can’t ignore them, add them into your breaks away from the desk. As for the kids, well I can’t really ignore them, after all they need to be fed, watered and entertained. Set some ground rules with the kids, talk about if you are in a meeting how they shouldn’t disturb you, We adopt a <strong><em>sign up no disturb policy</em></strong>! My 7 year old designed a sign saying “Daddy in a meeting”, and when the sign is displayed the kids stay away (although not all the time though, some things are too important to stay away, like the time I was in the middle of a presentation and Emily burst through the door to tell me that the final episode of Henry Danger is on a 17:30, some things are just too important to not disturb I guess).</p><p><strong>8. Create a plan</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LgbKCL5lg-G4WDKA4azL2g.jpeg" /><figcaption>Kanban helps me to stay focused and prioritise tasks</figcaption></figure><p>Kanban, kanban, kanban! A physical kanban, I have found this to be the best tool, there are lots of online tools but I found having it on the wall beside my desk really focuses my mind. I can quickly view my backlog, doing and completed work. This allows me to plan my work and more importantly it helps me quantify my work, the sense of achievement moving a task from doing to done is great.</p><p><strong>9. Set Goals</strong></p><p>Set realistic goals, short, medium and long term. Decide on what needs to be done, put it on the Kanban and work towards getting it completed. Enabling you to reach your specific target or goal. It’s important to time box how long to assign to hit that target as this will help with motivation, while creating enthusiasm to get the work complete.</p><p><strong>10. Shut down the laptop</strong></p><p>You might think closing the laptop is enough, but then you may still hear the little notification for email or dm and risk the temptation of popping open the laptop and having a look, and an hour later you’re still on it. When the day is done, shut it down.</p><p>I hope those little nuggets of advice might be helpful to you as you work from home and remember <em>we can’t be perfect, all we can be is our best</em> during these times.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c1f669ec3fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>