Skip to content

Commit

Permalink
Merge pull request #3 from mike4263/s2i
Browse files Browse the repository at this point in the history
S2i
  • Loading branch information
mike4263 authored Jun 5, 2024
2 parents e63becf + c024f2b commit ce9ebf2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .s2i/bin/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/bash
echo "invoking custom S2I script"
java -XX:MaxRAMPercentage=80.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -cp . -jar /deployments/quarkus-app/quarkus-run.jar
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Enter the URL: https://github.com/mike4263/camel-amq-poc.git

It should auto detect the Builder Image

_NOTE: OpenShift 4.13 and older may specify a builder image that does not work properly with quarkus. ([bug](https://github.com/jboss-container-images/openjdk/pull/358))_
_NOTE: OpenShift 4.13 and older may specify a builder image that does not work properly with quarkus. ([bug](https://github.com/jboss-container-images/openjdk/pull/358))_
![img_3.png](images/img_3.png)

Create a new _VistA_ application group
Expand All @@ -87,6 +87,7 @@ Scroll down to the bottom. Click _Deployment_ and enter the environment variabl
Click _Create_

Click on the lower left circle to watch the build process

![img_5.png](images/img_5.png)

The build will take a couple minutes. After the build is complete, click _Topology_ on the left to return to the topology overview.
Expand All @@ -104,5 +105,10 @@ If everything worked properly, you should see the following in the logs
![img_20.png](images/img_20.png)


If your application failed with the error: "no main manifest attribute". Open up your `oc` client and modify your *BuildConfig* as follows:


```shell
$ oc project vista
$ oc set env bc/vista-app S2I_SOURCE_DEPLOYMENTS_FILTER=""
$ oc start-build bc/vista-app
```

0 comments on commit ce9ebf2

Please sign in to comment.