Dokku Multiple app in single repo

0 votes

I have a maven project

pom.xml

service-a

service-b

I want to run service-a and service-b in dokku.

dokku apps:create service-a

dokku apps:create service-b

git remote add dokku dokku@dokku.me:service-a

how to do this for service-b

How to tell dokku which service do I want to start ?

Jul 16, 2018 in Other DevOps Questions by Nilesh
• 7,060 points
2,768 views

1 answer to this question.

0 votes

You can use the dokku-monorepo plugin. It’s used for monorepo setups.

Step 1- Install the plugin

      dokku plugin:install https://github.com/iamale/dokku-monorepo

step 2- $ ls

        .dokku-monorepo

         myapp1

         myapp2

                The file .dokku-monorepo contains paths for applications to be deployed

Step 3- first=myapp1

        second=myapp2/backend

          The part before = is used to identify the dokku application.

Step 4- $ git remote -v

         first             dokku@dokku.me:example-first

         first-staging     dokku@dokku.me:example-first-staging

         second            dokku@dokku.me:example-second

The example-first and example-staging-first applications would be deployed from the myapp1 folder.

When you push the code to an application's remote, the folder gets detected for you:

$ git push first

Counting objects: 253, done.

Writing objects: 100% (253/253), 38.27 KiB | 0 bytes/s, done.

Total 253 (delta 117), reused 233 (delta 109)

=====> Monorepo detected

=====> Installing from ./myapp1

-----> Cleaning up...

-----> Building example-first from herokuish...

-----> Adding BUILD_ENV to build environment...

-----> Python app detected

       ...

answered Jul 16, 2018 by Kalgi
• 2,680 points

Related Questions In Other DevOps Questions

0 votes
0 answers

secret scanner in Azure DevOps repo

Can someone mention/recommend any scanner to scan ...READ MORE

Mar 23, 2022 in Other DevOps Questions by Kichu
• 19,040 points
592 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,058 views
+2 votes
1 answer
0 votes
1 answer

Multiple applications in one IIS website with MS Release Management

Do the following: Add a Manage IIS task ...READ MORE

answered Jul 16, 2018 in Other DevOps Questions by Kalgi
• 2,680 points
1,755 views
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP