Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artofrawr/dokku-multi-dockerfile
Dokku plugin to choose which Dockerfile is used depending on the app being deployed to
https://github.com/artofrawr/dokku-multi-dockerfile
Last synced: 5 days ago
JSON representation
Dokku plugin to choose which Dockerfile is used depending on the app being deployed to
- Host: GitHub
- URL: https://github.com/artofrawr/dokku-multi-dockerfile
- Owner: artofrawr
- License: mit
- Created: 2019-05-02T21:33:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T15:39:20.000Z (over 5 years ago)
- Last Synced: 2024-08-02T12:50:04.245Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - artofrawr/dokku-multi-dockerfile - Dokku plugin to choose which Dockerfile is used depending on the app being deployed to (others)
README
dokku-multi-dockerfile
===============Dokku plugin to choose which Dockerfile is used depending on the app being deployed to.
## Install
```
dokku plugin:install https://github.com/artofrawr/dokku-multi-dockerfile
```## Usage
```
$ ls
.dokku-multi-dockerfile
Dockerfile
Dockerfile.storybook
```The file .dokku-multi-dockerfile determines which Dockerfile is used for which app:
```
app=Dockerfile
stories=Dockerfile.storybook
```The part before `=` is used to identify the dokku application. For example, here:
```
$ git remote -v
first [email protected]:app
first-storybook [email protected]:stories
second [email protected]:second-app
```For the `app` and `second-app` applications `Dockerfile` would be used. For `stories` the `Dockerfile.storybook` would be used.
When you push the code to an application's remote, the correct Dockerfile gets detected for you:
```
$ git push first-storybook
Counting objects: 253, done.
Writing objects: 100% (253/253), 38.27 KiB | 0 bytes/s, done.
Total 253 (delta 117), reused 233 (delta 109)
=====> Multi Dockerfile Project detected
=====> Installing with Dockerfile.storybook
-----> Cleaning up...
...
```It's that easy!