M
M
Max2018-01-17 14:00:28
Java
Max, 2018-01-17 14:00:28

How to properly organize flow release with docker, spring-boot, angular?

Hello !
For many days now I have been struggling with the question of how to organize multistaging with Docker and Spring-boot and Angular
. Since I read that you need to run the same docker image for production and development, the question has become how to do it!
of the problems there is the following:
1. Angular project, you need to build and specify which url to work with (dev or prod), it's all done by maven
2. The assembled angular project is in app.jar in the resources
the question is how to build the docker image, what would then publish it in the register, and after that run it on the dev and prod

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aol-nnov, 2018-01-18
@aol-nnov

look how jhipster is made. there is just such a stack.

P
protven, 2018-01-17
@protven

Use profiles. Each "test/stage/prod" environment has its own profile with its own settings. Well, your config, respectively. How to slip an image with which profile to run can be read here.
https://spring.io/guides/gs/spring-boot-docker/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question