How to create, test and deploy with Jhipster, Docker, Gitlab and Heroku

I am very new to Jhipster , and Docker and I would like some help in understanding the basics of creating and deploying my application to my Heroku instance. Since I'm working with a friend, we probably need some kind of integration platform, such as Gitlab, that will also work as our version control and code repository.

Here is what we have done so far:

  • Created a monolithic application and tested it locally (works great, thanks to Jhipster to simplify it).
  • Paste it into our gitlab repository.
  • Created a Docker folder in the root of our application and launched it docker composeinside.

What we think we should do next:

But I still have some questions:

  • Should we leave the task of building docker images in gitlab?
  • I heard a lot about the Docker hub and Docker Cloud, but I still don't see the point in my case, am I wrong?
  • I am not sure how to use the hero in full. Any tips on this part?

So, to summarize, I would like to create a Docker image from my application, build it and send it to my server. I am thinking about using Docker, Gitlab, and Heroku, but I am addicted to any other suggestion that will help us in a fast, reliable, and efficient development cycle.

Thank,

+2
1

... , CI, .

, GitLab . GitLab Container ( GitLab) heroku. ! , , , , .

GitLab . GitLab CI Runner "xetys/java-8-docker". , , . ,

docker run -d --name gitlab-runner --restart always \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /srv/gitlab-runner/config:/etc/gitlab-runner \
  gitlab/gitlab-runner:latest

heroku gitlab CI before_script, " " "-".

, "when: on_success", , .

CI , , heroku. , .

, .

+2

Source: https://habr.com/ru/post/1671536/


All Articles