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
• 6,880 points
370 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,620 points

Related Questions In Other DevOps Questions

0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,810 points
430 views
+1 vote
2 answers

When do we use Chef or Azure SDK to create VM and deploy in automation

The solution to the automated deployment in ...READ MORE

answered Aug 21, 2018 in Other DevOps Questions by Priyaj
• 56,900 points
147 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
205 views
0 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,620 points
75 views
+1 vote
1 answer