
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
generator-jhipster-docker
Advanced tools
JHipster module, Docker support in your JHipster application
This is a JHipster module, that is meant to be used in a JHipster application. This module is used to :
As this is a JHipster module, we expect you have JHipster and its related tools already installed:
You have to install Docker and Docker Compose:
To use Automated build, you have to create an account at:
To install this module:
npm install -g generator-jhipster-docker
To update this module:
npm update -g generator-jhipster-docker
To run the module on a JHipster generated application:
yo jhipster-docker
You can use this command to generate the Dockerfile for Automated build with default options:
yo jhipster-docker default
To force the generator:
yo jhipster-docker default --force
When using the option Generate Dockerfile for Automated build, Docker Hub will build a Docker image everytime you commit to your repository.
yo jhipster-docker
Generate Dockerfile for Automated build at https://hub.docker.com/
The project djfarrelly/maildev is a simple way to test your project’s generated emails during development with an easy to use web interface.
You can launch: docker-compose -f src/main/docker/smtp.yml up
You can access to it: http://localhost:1080
On a generated project with JHipster, the file src/main/docker/Dockerfile is used to build a Docker image for running the JHipster application. This default image used java:openjdk-8-jre-alpine as base image.
This option proposed to use tomcat:8.0.36-jre8-alpine instead.
With maven: ./mvnw clean package -Pprod docker:build
With gradle: ./gradlew clean bootRepackage -Pprod buildDocker
You can read this documentation for more details: spring-boot-docker
.yo-rc.json
to generate your JHipster application (all options are default):{
"generator-jhipster": {
"jhipsterVersion": "3.6.1",
"baseName": "jhipster",
"packageName": "com.mycompany.myapp",
"packageFolder": "com/mycompany/myapp",
"serverPort": "8080",
"authenticationType": "session",
"hibernateCache": "ehcache",
"clusteredHttpSession": "no",
"websocket": "no",
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mysql",
"searchEngine": "no",
"buildTool": "maven",
"enableSocialSignIn": false,
"rememberMeKey": "7a8b2edfaf2353b83e9fe934a9a60e1a7992f399",
"useSass": false,
"applicationType": "monolith",
"testFrameworks": [
"gatling"
],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "en",
"languages": [
"en"
]
}
}
yo jhipster-docker
Change the default Dockerfile
tomcat:8.0.36-jre8-alpine
jhipster
a
to resolve all conflicts./mvnw clean package -Pdev docker:build
docker run --rm -p 8080:8080 jhipster
You can define or override other spring boot, using environment variables
Apache-2.0 © Pascal Grimaud
FAQs
Additional Docker support: Docker Hub, Local SMTP Server, NGinx
We found that generator-jhipster-docker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.