Openshift 3 starter - spring-boot

Im trying to investigate how to get a simple SpringBoot project up and running on openshift 3 starter(free version).
Im using this simple starter project whixh uses widfly, see here:
https://github.com/callistaenterprise/spring-boot-openshift
I followed the build/deploy guide here and tried both wildfly and openjdk image types, both fail.
https://developers.redhat.com/blog/2017/02/23/getting-started-with-openshift-java-s2i/
The error in the build console is this:
Pod
blog2-1-build
Failed sync
Error syncing pod
Pod
blog2-1-build
Scheduled Successfully assigned blog2-1-build to ip-172-31-53-149.ec2.internal
i have no idea how to solve this, any advice help greatly appreciated.

Related

jhipster creating microservice with sample apps.jdl causing multiple npm errors

I am trying to build sample jhipster micro service app from the blog
https://dev.to/jhipster/how-to-deploy-jhipster-microservices-on-amazon-eks-using-terraform-and-kubernetes-49a5
while generating default with jhipster jdl apps.jdl https://raw.githubusercontent.com/oktadev/okta-jhipster-k8s-eks-microservices-example/main/apps.jdl causing multiple npm errors
entire logs can be accessed https://gist.githubusercontent.com/vidhya03/89fb728a0af15c3b81c8a60061b3cf5d/raw/0dd14758f7548c0c37f2be050eccd327d5e55b80/buildlogs.log
What is the JHipster version used? Please note that there are some issues with releases 7.9.0 and 7.9.1 on Windows. So if you are using any of them, please update to 7.9.2 first. Then delete the .npmrc file generated on the store app and try running npm install again on the store app. That should fix the issue.

How to properly deploy a Spring Boot Web App on Heroku?

I am trying to deploy my Spring Boot Web application to HEROKU and I am getting the following error:
***> -----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app ! No default language could be detected for this app. HINT: This occurs
when Heroku cannot detect the buildpack to use for this application
automatically. See https://devcenter.heroku.com/articles/buildpacks
! Push failed***
I tried setting the build back to heroku/java manually only to also get an error.
The app is built in java so I don't understand what is happening exactly. This is my first time deploying an app online. Any help or guidance will be greatly appriciated
Beppe C. gave me the solution. My pom.xml file was not at the root. I restructured my repo and I got past that error but faced another one.

Building rocket.chat on heroku server faced error

I wanted to deploy the rocket.chat project on heroku, following the deployment instruction, I have encountered the following error:
"
Can't open /tmp/build_29c97eef7e456d21231bc9eb4751ca67/ringelco-racket-chat-a864ad48b50652f34205d656e8e6d93976ce69e3/packages/rocketchat-livechat/plugin/build.sh
/app/tmp/cache/meteor/.meteor/packages/tap_i18n/.1.8.2.10lihy6.24zh++os+web.browser+web.cordova/plugin.tap-i18n-compiler.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:116
throw error;
"
I have noticed that some other issues are related to such error (this and this), but nobody has answered it yet!
It would be appreciative if you could help me.
Thanks in advance,
Issue fixed.
I just pulled the latest code from Rocket.Chat.
Followed the step to deploy it on Heroku Rocket.Chat Herokyu Deployment.
You have to use buildpack https://github.com/RocketChat/meteor-buildpack-horse.git.

I am unable to deploy phoenix app to heroku because of failed dependency (called coherence) compilation, how to make it work?

So to start I made an Elixir application using Phoenix framework.
This application uses coherence dependency for authentication to the website. This dependency was installed as it is advised on the git repo with -full argument to install all the options coherence has.
Then, I did just change a couple of lines in config.exs file of my project to use mailgun service for mailing and put credentials over there.
Next, I installed and configured my other deps (they have nothing to do with coherence).
Locally, my application could compile and run without problems.
Then, I wanted to deploy it to Heroku using Phoenix guidelines.
When I completed all the steps, I got an error when trying to push the application to Heroku.
I then tried to check the file lib/mix/tasks/coherence.clean.ex and the line 162 where I found a comment that said there is an error with updating a config file, but I couldn't figure out what that means and how to solve that.
I tried to make a fresh phoenix application, installing coherence with the same or different options and afterward deploying it following the Phoenix guidelines. Every time I was getting the same error.
I also want to note that I did try to create elixir_buildpack.config file and putting always_rebuild=true there and had no success. (it is a solution mentioned in troubleshooting section of deploying to Heroku guide)
So, my question is, what do I need to change in my config.exs file (or elsewhere) in order to make at least a fresh application with coherence installed to compile and work on Heroku?
useful links:
coherence dep github link
Thanks a ton guys.
The Heroku Buildpack for Elixir currently defaults to Elixir 1.2.6 while the code that throws that error uses the else syntax with with, a feature that was added in Elixir 1.3.0, so you need to set the Elixir version to use to 1.3.0 or later by adding the following to elixir_buildpack.config:
elixir_version=1.3.2

native Fabric 8 on openshift

I get the following on a native openshift fabric8 installation. this then results in not been able to access the fabric8 console. Thank you in advance!
error screen shot
Could you show the output of these commands:
oc get route
oc get pods
oc describe rc fabric8
That might give us a clue as to what is going on.
Did you supply a domain parameter to gofabric8?
Full instructions are here along with a
troubleshooting guide.

Resources