markdown JHipster - 创建和运行Docker镜像

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown JHipster - 创建和运行Docker镜像相关的知识,希望对你有一定的参考价值。

### Creating the image
``` shell
./gradlew bootRepackage -Pprod buildDocker
```
-  `bootRepackage`: Builds an executable archive (WAR) file for the application
- `-Pprod`: Specifies the profile to use
- `buildDocker`: Builds a docker image based on the Dockerfile present in the `src/main/dockerfolder`

### Running the image
```
docker-compose -f src/main/docker/app.yml up
```
This will also start the MySQL DB if you haven't started it already. 
If you already have it running from the previous step, then `docker-compose` will just skip it.

以上是关于markdown JHipster - 创建和运行Docker镜像的主要内容,如果未能解决你的问题,请参考以下文章

markdown jhipster

markdown JHipster - 增加分页

markdown JHipster上的角度材料

markdown JHipster JWT认证

markdown JHipster测试

markdown JHipster实体更新