Commit Graph

2000 Commits

Author SHA1 Message Date
Roland van Laar
be0ba28570 feat: Add show option to the certs plugin
The 'server.key' and 'server.crt' can printed to stdin.
The two options are:
    `dokku certs:show <app> key > server.key`
    `dokku certs:show <app> crt > server.crt`
This will create two files, `server.key` and `server.crt`.
Those files contain the private key and the certificate.

Includes tests.
2020-07-04 13:14:02 +02:00
Roland van Laar
5f312d7347 Make make test pass on linting 2020-07-04 00:08:44 +02:00
Jose Diaz-Gonzalez
a631505cd6 Filter gpus instead of nvidia-gpus from resource arguments
We transform the argument here: https://github.com/dokku/dokku/blob/master/plugins/resource/triggers.go#L58
2020-07-02 12:10:08 -04:00
Jose Diaz-Gonzalez
42122a7540 feat: allow controlling proxy-read-timeout
Closes #4042
2020-07-01 19:08:15 -04:00
Jose Diaz-Gonzalez
eaf0d9af55 feat: create proxy:build-config command
Closes #4024
2020-06-29 20:51:12 -04:00
Jose Diaz-Gonzalez
591ecff646 chore: drop unused imports and pin godotenv 2020-06-28 04:08:19 -04:00
Jose Diaz-Gonzalez
45e3623ffd refactor: switch to go mod
This hopefully makes it a little easier to work with as the tooling is now based on something in golang core.

- move columnize usage to common plugin
- remove old vendor files
2020-06-28 01:11:28 -04:00
Jose Diaz-Gonzalez
8e0d288b2e fix: filter args _after_ docker-args-process-deploy
The new hook is what is used to expose resource limits/reservations by the resource plugin.
2020-06-19 21:52:59 -04:00
Jose Diaz-Gonzalez
75cdc585b6 Merge pull request #4026 from dokku/filter-hook-args 2020-06-19 21:36:04 -04:00
Jose Diaz-Gonzalez
a9d2610e34 fix: update filtered args 2020-06-19 12:28:31 -04:00
Jose Diaz-Gonzalez
9dcf17be69 fix: filter resource args from deploy tasks
As specified in the docs, the build process should not be impacted by resource constraints.
2020-06-18 11:14:41 -04:00
Jose Diaz-Gonzalez
4aae0f1a1d fix: do not allow slashes in app names
There is likely a better regex for the actually allowed names, but this will suffice for ensuring folks don't do weird things with their folder structures...

Closes #4013
2020-06-18 11:13:11 -04:00
Jose Diaz-Gonzalez
484f61fdd5 fix: properly handle multiple containers in ps:inspect
Closes #4015
2020-06-17 01:13:47 -04:00
Jose Diaz-Gonzalez
2e2320ec73 fix: correct comment 2020-06-02 00:51:45 -04:00
Jose Diaz-Gonzalez
6b25ab16b7 fix: drop deprecation warning on undeprecated command 2020-05-29 18:50:24 -04:00
Jose Diaz-Gonzalez
88f661b6e7 fix: properly fetch keys for config command 2020-05-29 14:50:17 -04:00
Jose Diaz-Gonzalez
aff0c1fc40 fix: check if the property exists before returning an error 2020-05-29 14:42:30 -04:00
Jose Diaz-Gonzalez
a0cb7c560e tests: fix issues with fetching config 2020-05-29 04:22:14 -04:00
Jose Diaz-Gonzalez
68d1a04215 chore: drop redundant return statement 2020-05-29 02:04:58 -04:00
Jose Diaz-Gonzalez
a4da6f67cc chore: remove unused code 2020-05-29 02:04:21 -04:00
Jose Diaz-Gonzalez
a93cec63be feat: simplify flag parsing in config plugin
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
c22f78c913 feat: simplify flag parsing in proxy plugin
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
a60467cb2d feat: simplify flag parsing in repo plugin
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
91a668ee8f feat: simplify flag parsing in network plugin
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
94aa67d494 feat: simplify flag parsing in resource plugin
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
6636c48838 feat: simplify flag parsing in buildpacks plugin
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
ce154aff09 feat: simplify flag parsing in apps plugin
Commands should be written such that they take arguments as is.
2020-05-29 01:59:50 -04:00
Jose Diaz-Gonzalez
2dfb0ef3e6 fix: correct entering running containers
This functionality was broken due to a refactor of argument handling in a previous release.

In addition to the fix, all the functionality was moved to scheduler-enter, which allows scheduler plugins to implement ways of entering containers in the relevant scheduler.

Closes #3972
2020-05-12 23:06:10 -04:00
Jose Diaz-Gonzalez
46287cac0f feat: allow apps named tls
The `tls` name is no longer a reserved app name, and can be used by applications. This was previously a reserved app name due to it's use as a place for global SSL certificate files; Dokku has not supported global SSL certificates for many releases, and thus there is no need to reserve the name.
2020-05-08 23:58:06 -04:00
Jose Diaz-Gonzalez
ee7d7f164f fix: set default port for all run commands
Closes #3976
2020-05-07 12:01:54 -04:00
Jose Diaz-Gonzalez
962aa66965 Merge pull request #3971 from dokku/3674-customize-dokku-conf
feat: allow users to customize the source of the dokku.conf nginx template
2020-05-06 19:57:12 -04:00
Jose Diaz-Gonzalez
92621a3187 Merge pull request #3966 from dokku/domains-triggers
Move domain manipulation into triggers
2020-05-06 14:21:06 -04:00
Jose Diaz-Gonzalez
0931d655f7 fix: use correct syntax... 2020-05-06 13:09:26 -04:00
Jose Diaz-Gonzalez
480425bfb9 Merge pull request #3965 from dokku/less-branding
Drop dokku references in logging output
2020-05-06 01:43:54 -04:00
Jose Diaz-Gonzalez
49351227d1 Merge pull request #3964 from dokku/3949-remove-force-yes
Remove all --force-yes usage throughout the codebase
2020-05-06 01:43:42 -04:00
Jose Diaz-Gonzalez
d3263a45c3 feat: allow users to customize the source of the dokku.conf nginx template
Closes #3674
2020-05-06 01:38:43 -04:00
Jose Diaz-Gonzalez
61a306664f refactor: move domain manipulation into triggers
This allows other plugins to avoid understanding the underlying details of how domains might be integrated with.
2020-05-06 00:16:51 -04:00
Jose Diaz-Gonzalez
d35576302d chore: drop dokku references in logging output
This isn't super useful outside of branding. Users that rely on this information may wish to turn on event logging to trace output that way.
2020-05-05 23:39:38 -04:00
Jose Diaz-Gonzalez
cca008f140 feat: remove all --force-yes usage throughout the codebase
It was deprecated in a recent apt release and shouldn't be necessary for anything any longer.

Closes #3949
2020-05-05 23:34:30 -04:00
Ben Wheatley
05513ad75a Fix missing 502 error page
In dokku/dokku#3602 a new error page for the 502 status code was
introduced.

However, this error page is not currently being used, and results in a
404 error being served instead, because nginx is trying to load a
non-existent file:

```
open() "/var/lib/dokku/data/nginx-vhosts/dokku-errors/502-error.html" failed (2: No such file or directory)
```

Fix this by copying the `502-error.html` file into the `dokku-errors`
directory upon installation.
2020-04-26 15:08:37 +01:00
Jose Diaz-Gonzalez
89787173af fix: use correct function name for cmd-tar-in and update migration guide
Closes #3952
2020-04-25 15:49:03 -04:00
Jose Diaz-Gonzalez
3e83b2836c fix: add missing git-deploy-branch hook 2020-04-19 11:04:53 -04:00
Jose Diaz-Gonzalez
72425cff84 Merge pull request #3940 from dokku/git-last-updated-time
Expose last updated time in git:report
2020-04-19 11:00:30 -04:00
Jose Diaz-Gonzalez
6901e9658f feat: expose last-updated-at in git:report 2020-04-18 18:21:54 -04:00
Jose Diaz-Gonzalez
a8a6d0595b refactor: deprecate git_deploy_branch in favor of plugn trigger 2020-04-18 18:21:46 -04:00
Jose Diaz-Gonzalez
ee786e1962 feat: add support for outputting the last visited time
This checks the ctime of the log file if available, otherwise returns empty string
2020-04-18 18:15:20 -04:00
Jose Diaz-Gonzalez
74e147005b Release 0.20.4
# History

## 0.20.4

Install/update via the bootstrap script:

```shell
wget https://raw.githubusercontent.com/dokku/dokku/v0.20.4/bootstrap.sh
sudo DOKKU_TAG=v0.20.4 bash bootstrap.sh
```

### New Features

- #3936: @josegonzalez Enable limiting and reserving gpu resources

### Documentation

- #3937: @josegonzalez Add minor documentation for the kubernetes and nomad schedulers

### Other

- #3935: @dependabot-preview[bot] chore(deps): bump jinja2 from 2.11.1 to 2.11.2 in /tests/apps/python-flask
- #3934: @dependabot-preview[bot] chore(deps): bump github.com/golang/protobuf from 1.3.5 to 1.4.0 in /tests/apps/gogrpc
- #3933: @dependabot-preview[bot] chore(deps): bump jetty-servlet from 9.4.27.v20200227 to 9.4.28.v20200408 in /tests/apps/java
2020-04-14 23:53:35 -04:00
Jose Diaz-Gonzalez
8a380e52c4 feat: enable limiting and reserving gpu resources 2020-04-14 19:03:27 -04:00
Jose Diaz-Gonzalez
7bc6767ab7 Release 0.20.3
# History

## 0.20.3

Install/update via the bootstrap script:

```shell
wget https://raw.githubusercontent.com/dokku/dokku/v0.20.3/bootstrap.sh
sudo DOKKU_TAG=v0.20.3 bash bootstrap.sh
```

### New Features

- #3926: @josegonzalez Add proper support for various buildpack urls

### Other

- #3928: @dependabot-preview[bot] chore(deps): bump google.golang.org/grpc from 1.28.0 to 1.28.1 in /tests/apps/gogrpc
- #3925: @dependabot-preview[bot] chore(deps): bump flask from 1.1.1 to 1.1.2 in /tests/apps/python-flask
- #3924: @dependabot-preview[bot] chore(deps): bump flask from 1.1.1 to 1.1.2 in /tests/apps/multi
2020-04-07 20:44:53 -04:00
Jose Diaz-Gonzalez
93225ada48 feat: add proper support for various buildpack urls
Transform the urls to the correct values when necessary, and validate them otherwise.

Closes #3923
2020-04-07 00:17:03 -04:00