Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Fails to Run via Docker Compose for prodDatabaseType: mssql #12380

Closed
1 task done
leifjones opened this issue Sep 5, 2020 · 0 comments · Fixed by #12382
Closed
1 task done

Application Fails to Run via Docker Compose for prodDatabaseType: mssql #12380

leifjones opened this issue Sep 5, 2020 · 0 comments · Fixed by #12382

Comments

@leifjones
Copy link
Contributor

Overview of the issue

Application starts before 60 wait time for mssql container is complete.

Motivation for or Use Case

Testing of application via docker-compose when uses MS SQL Server for database type .

Reproduce the error
  1. Generate application based on the JDL file below (noteably.
  2. Run ./gradlew bootJar -Pprod jibDockerBuild
  3. Run docker-compose -f src/main/docker/app.yml up -d
Suggest a Fix

Increase wait time to 60 seconds as discussed here.

JHipster Version(s)

generator-jhipster 6.10.1

JHipster configuration
.yo-rc.json file
{
  "generator-jhipster": {
    "databaseType": "sql",
    "devDatabaseType": "mssql",
    "enableHibernateCache": true,
    "enableSwaggerCodegen": true,
    "enableTranslation": false,
    "jhiPrefix": "jhi",
    "languages": ["en", "fr"],
    "messageBroker": "kafka",
    "nativeLanguage": "en",
    "packageName": "package.name",
    "packageFolder": "package/name",
    "prodDatabaseType": "mssql",
    "searchEngine": "elasticsearch",
    "serviceDiscoveryType": false,
    "skipClient": false,
    "skipServer": false,
    "testFrameworks": ["protractor", "cucumber", "gatling"],
    "websocket": "spring-websocket",
    "applicationType": "monolith",
    "authenticationType": "oauth2",
    "baseName": "inventory",
    "buildTool": "gradle",
    "serverPort": "8002",
    "useSass": true,
    "jhipsterVersion": "6.10.1",
    "skipUserManagement": true,
    "clientPackageManager": "npm",
    "cacheProvider": "ehcache",
    "clientFramework": "angularX",
    "clientTheme": "none",
    "clientThemeVariant": "",
    "creationTimestamp": 1599315840393,
    "embeddableLaunchScript": false,
    "entitySuffix": "",
    "dtoSuffix": "DTO",
    "otherModules": [],
    "blueprints": []
  },
  "entities": []
}

If you have a JDL please wrap it in below structure

JDL definitions
application {
    config {
        applicationType monolith
        authenticationType oauth2
        baseName inventory
        buildTool gradle
        devDatabaseType mssql
        enableSwaggerCodegen true
        enableTranslation false
        messageBroker kafka
        packageName package.name
        prodDatabaseType mssql
        searchEngine elasticsearch
        serverPort 8002
        testFrameworks [protractor, cucumber, gatling]
        useSass true
        websocket spring-websocket
    }
    entities *
}
  
-->
Entity configuration(s) entityName.json files generated in the .jhipster directory
Environment and Tools

openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)

git version 2.20.1.windows.1

node: v12.13.0

npm: 6.12.0

yeoman: 2.0.5

yarn: 1.16.0

Docker version 19.03.12, build 48a66213fe

docker-compose version 1.26.2, build eefe0d31

Browsers and Operating System

Windows 10

  • Checking this box is mandatory (this is just to show you read everything)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants