getting docker-compose error in running microservices containers - docker-compose

I have created a saperate folder and put docker-compose.yml file .Then use
yo jhipster:docker-compose and answer all the questions but after this question -
Which applications do you want to include in your configuration?
when I select the gateway of my apps .I am getting this error----
TypeError: Cannot read property 'generator-jhipster' of undefined
at appsFolders.forEach (/usr/local/lib/node_modules/generator-jhipster/generators/docker-prompts.js:177:36)
at Array.forEach ()
at prompt.then (/usr/local/lib/node_modules/generator-jhipster/generators/docker-prompts.js:174:26)
at
Pls suggest if anyone got this error in configuring docker-compose file.

Related

DT1001 failed to read dockerfile

I got a Ocelot Gateway projet and I try too add an new API in the docker-compose, but I got an error tell me :"docker support the solution file must be located in the same or higher folder".
So after multiple try, I decide to add the dockerFile manually (I want to add the "TokenServerOcelot").
But I got the error:
Error DT1001
here is my code:
Dockerfile
docker-compose.yml
docker-composer.override.yml
If someone got any idea this would help me a lot ! :)
Thanks
I try too add by the Container Orchestrator Support but it didn't work, so i try by adding to TokenServerOcelot the docker file and I got the DT1001 error

Connecting Postgres instance to AppEngine - Google Cloud, with SpringBoot

I've nearly got a SpringBoot app running on Google Cloud services that is connected to a Postgres instance.
I've ran through the steps on their guide, located here and have gotten to the point where I need to set my variables up for the app to find the database instance:
The problem encountered is two fold:
I don't know where and how to set these
My server logs report this error:
meaning that the Spring application is trying to find the database like it would on my local.
I set the following values in the app.yaml (assuming this is where they should be?)
runtime: java11
instance_class: F1
env_variables:
SQL_USER: quickstart-user
SQL_PASSWORD: <password>
SQL_DATABASE: quickstart_db
INSTANCE_CONNECTION_NAME: quickstart-instance
So, my question(s) are:
Is this the correct place to set them?
If not, do I need a appengine-web.xml file instead (And does anyone have an example of what this looks like, I can't find one)
How do I stop the app from looking for the local database?
Thanks

Why can't I read variable values anymore?

So I’ve been having some sort of issue with my iOS project.
I’m no longer able to debug properly on xcode the po command will no longer work.
this is what I get when i try to use “po”
error: expression failed to parse:
error: virtual filesystem overlay file '/Users/distiller/Library/Developer/Xcode/DerivedData/SendBirdCalls-dbjqlfwikkijbkgvuxucoxlahpdv/Build/Intermediates.noindex/ArchiveIntermediates/SendBirdCalls/IntermediateBuildFilesPath/SendBirdCalls.build/Release-iphoneos/SendBirdCalls.build/all-product-headers.yaml' not found
error: virtual filesystem overlay file '/Users/distiller/Library/Developer/Xcode/DerivedData/SendBirdCalls-dbjqlfwikkijbkgvuxucoxlahpdv/Build/Intermediates.noindex/ArchiveIntermediates/SendBirdCalls/IntermediateBuildFilesPath/SendBirdCalls.build/Release-iphoneos/SendBirdCalls.build/all-product-headers.yaml' not found
error: couldn't IRGen expression. Please check the above error messages for possible root causes.
can someone clarify what is going on?
i’ve already tried to clean derived data.
I also tried to follow these steps just to end up with another problem.
unable to debug some variables

"App init setup failed: a project already exists" MongoDB Realm App

I have an error message that I do know know who to fix regarding Mongodb Realm CLI.
https://docs.mongodb.com/realm/cli/realm-cli-apps-create/
When I write the following command in Terminal:
realm-cli apps init -n "test"
I get the error message "app init setup failed: a project already exists"
I have already had a project name "test" but I have deleted it (Simply deleting the folder which might have been the mistake) but I still get the error message. The error occurs always, no matter the name or path/folder at the moment.
if realm-cli push is used it seems to use the old "test" application since the name is filled out when going through the [options]
https://docs.mongodb.com/realm/cli/realm-cli-push/
If I push the application it will deploy the test application and if deleted through either CLI or GUI it returns to the first problem mention at the start.
Where to go from here? Is the application somehow stored as a draft or something making it impossible for me to create another before its discarded or am I missing something?

jhipster docker-compose: *TypeError: Cannot read property 'generator-jhipster' of undefined*

When I try to execute jhipster docker-compose it comes to an error and I don't know what am I doing wrong.
I create a jhipster Microservice Gateway App with JHipster generators
generator-jhipster-module-2.2.0 and generator-jhipster-docker-2.2.0
I create a jhipster Microservice App with JHipster generators
generator-jhipster-module-2.2.0 and generator-jhipster-docker-2.2.0
I followed the construction at http://www.jhipster.tech/docker-compose/
I answered the upcoming questions as followed:
Which type of application would you like to deploy?
Microservice application
Which type of gateway would you like to use?
JHipster gateway based on Netflix Zuul
Enter the root directory where your gateway(s) and microservices are located
/Users/spoho/git/article
Which applications do you want to include in your configuration?
I selected the microservice and the gateway
After that the following error comes up:
TypeError: Cannot read property 'generator-jhipster' of undefined
at appsFolders.forEach (/Users/spoho/.config/yarn/global/node_modules/generator-jhipster/generators/docker-prompts.js:177:36)
at Array.forEach (native)
at prompt.then (/Users/spoho/.config/yarn/global/node_modules/generator-jhipster/generators/docker-prompts.js:174:26)
docker-prompt.js
Any help appreciated.
Kindly
Hendrik
I had the exact same problem. For me, the solution was to add a backlash ( \ ) after you give the root directory to your applications.
In your example, when you have to enter the root directory where your gateway(s) and microservices are located, you should enter the path like this: /Users/spoho/git/article/.The difference is that I added a slash at the end. Hope it works.