Skip to content

Commit d01a4a1

Browse files
committed
Added doc for dokku 0.4.x
1 parent 97c65c8 commit d01a4a1

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,24 @@ This is mostly useful for instances where you have an app that depends on packag
99
## Installation
1010

1111
On your dokku server:
12+
13+
### dokku >= 0.4.0
14+
```sh
15+
sudo dokku plugin:install https://github.com/F4-Group/dokku-apt
16+
```
17+
18+
### dokku < 0.4.0
19+
1220
```sh
13-
git clone https://github.com/F4-Group/dokku-apt /var/lib/dokku/plugins/dokku-apt
21+
git clone https://github.com/F4-Group/dokku-apt -b 0.3.0 /var/lib/dokku/plugins/dokku-apt
1422
dokku plugins-install
1523
```
1624

25+
## Usage
26+
1727
When you deploy your project, the dokku-apt plugin will install according to your project's `apt-repositories` and `apt-packages` files. You should store these files in your projects root as the docker container will copy your project to its /app directory. This is where the dokku-apt plugin looks for `apt-repositories` and `apt-packages`.
1828

19-
## apt-packages
29+
### apt-packages
2030
This file should contain apt packages to install, accepts multiple packages per line, and multiple lines.
2131

2232
Example:
@@ -25,7 +35,7 @@ nginx
2535
unifont
2636
```
2737

28-
## apt-repositories
38+
### apt-repositories
2939
Optional file that should contain additional APT repositories to configure to find packages.
3040
Requires an empty line at end of file.
3141

@@ -35,7 +45,7 @@ ppa:nginx/stable
3545
deb http://archive.ubuntu.com/ubuntu quantal multiverse
3646
```
3747

38-
## apt-debconf
48+
### apt-debconf
3949
Optional file allowing to configure package installation. Use case is mainly for EULA (like ttf-mscorefonts-installer).
4050
Requires an empty line at end of file.
4151

@@ -44,7 +54,7 @@ Example:
4454
ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true
4555
```
4656

47-
## dpkg-packages
57+
### dpkg-packages
4858
Optional directory holding `.deb` packages to be installed automatically
4959
after `apt-packages`, `apt-repositories` and `apt-debconf`. Allows the
5060
installation of custom packages inside the container.

0 commit comments

Comments
 (0)