Commit Graph

3628 Commits

Author SHA1 Message Date
Dokku Bot
0a1f787310 Release 0.34.1
# History

## 0.34.1

Install/update via the bootstrap script:

```shell
wget -NP . https://dokku.com/install/v0.34.1/bootstrap.sh
sudo DOKKU_TAG=v0.34.1 bash bootstrap.sh
```

### Bug Fixes

- #6775: @josegonzalez Ensure files get created with the correct permissions when building with herokuish
- #6739: @AndrewKvalheim Dereference annotated git tags when deploying via git:sync
- #6743: @testwill Fix typo in app-json output

### New Features

- #6768: @josegonzalez Migrate away from transitional packages

### Documentation

- #6763: @iloveitaly Add docker-compose example to installation docs
- #6757: @josegonzalez Add documentation issue template
- #6742: @josegonzalez Remove trailing whitespace from history doc

### Dependencies

- #6772: @dependabot[bot] chore(deps): bump tj-actions/changed-files from 43.0.1 to 44.0.0
- #6766: @dependabot[bot] chore(deps): bump mkdocs-material from 9.5.14 to 9.5.15 in /docs/_build
- #6744: @dependabot[bot] chore(deps): bump github.com/docker/docker from 24.0.7+incompatible to 24.0.9+incompatible in /plugins/scheduler-k3s
- #6754: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/dockerfile-app-json-formations
- #6745: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/nodejs-express
- #6746: @dependabot[bot] chore(deps): bump tj-actions/changed-files from 43.0.0 to 43.0.1
- #6747: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/.websocket.disabled
- #6748: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/nodejs-express-noprocfile
- #6749: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/nodejs-express-noappjson
- #6750: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/dockerfile-procfile-bad
- #6751: @dependabot[bot] chore(deps): bump importlib-metadata from 7.0.2 to 7.1.0 in /docs/_build
- #6752: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/dockerfile-procfile
- #6753: @dependabot[bot] chore(deps): bump express from 4.18.3 to 4.19.1 in /tests/apps/gitsubmodules
- #6741: @dependabot[bot] chore(deps): bump github.com/onsi/gomega from 1.31.1 to 1.32.0 in /plugins/common
- #6740: @dependabot[bot] chore(deps): bump github.com/onsi/gomega from 1.31.1 to 1.32.0 in /plugins/config
2024-03-29 00:10:49 +00:00
Jose Diaz-Gonzalez
8265517a96 fix: ensure files get created with the correct permissions when building with herokuish
This will allow us to skip more chown operations - and hopefully eventually drop them completely.
2024-03-28 17:09:59 -04:00
Jose Diaz-Gonzalez
4a1a2a326a feat: migrate away from transitional packages
Several of the packages being installed were actually transitional packages, that is, the package itself is either a complete no-op (since the package is already installed), or else the package only exists to depend on another package of a new name (to support people who are running older operating systems).

For the former, we can drop the dependency entirely, and for the latter we should use the new package name directly.
2024-03-26 17:19:41 -04:00
Jose Diaz-Gonzalez
c98fe7b06b Merge pull request #6739 from AndrewKvalheim/plugins/git/sync/annotated-tag
Dereference annotated tags
2024-03-23 19:27:40 -04:00
Jose Diaz-Gonzalez
d6d785ccc7 Merge pull request #6743 from testwill/typo
Fix typo in app-json output
2024-03-23 19:26:29 -04:00
dependabot[bot]
48ac2278d9 chore(deps): bump github.com/docker/docker in /plugins/scheduler-k3s
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.7+incompatible to 24.0.9+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.7...v24.0.9)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-20 17:29:46 +00:00
guoguangwu
dbd4ebac86 fix: typo
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
2024-03-20 14:32:22 +08:00
Jose Diaz-Gonzalez
731181f14b Merge pull request #6741 from dokku/dependabot/go_modules/plugins/common/github.com/onsi/gomega-1.32.0
chore(deps): bump github.com/onsi/gomega from 1.31.1 to 1.32.0 in /plugins/common
2024-03-19 12:44:27 -04:00
dependabot[bot]
f5c1fa56e5 chore(deps): bump github.com/onsi/gomega in /plugins/common
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.31.1 to 1.32.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.31.1...v1.32.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 13:35:04 +00:00
dependabot[bot]
9247331d5d chore(deps): bump github.com/onsi/gomega in /plugins/config
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.31.1 to 1.32.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.31.1...v1.32.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 13:11:04 +00:00
Andrew Kvalheim
f64cf3bdfa fix: dereference annotated tags
refs/heads/master cannot be updated to an annotated tag per se; the rev
given must first be resolved to a commit. ^{commit} recursively
dereferences the rev until a commit is found.

Resolves #6737 and test failure:

    # bats --filter annotated-tag tests/unit/git_3.bats
    git_3.bats
     ✗ (git) git:sync existing [--no-build annotated-tag]
       fatal: update_ref failed for ref 'refs/heads/master': cannot update ref 'refs/heads/master': trying to write non-commit object 6399bed673f513332f3d5d99e777e0262f42404c to branch 'refs/heads/master'
2024-03-18 17:30:19 -07:00
Dokku Bot
ca312fe8f7 Release 0.34.0
# History

## 0.34.0

Install/update via the bootstrap script:

```shell
wget -NP . https://dokku.com/install/v0.34.0/bootstrap.sh
sudo DOKKU_TAG=v0.34.0 bash bootstrap.sh
```

See the [0.34.0 migration guide](/docs/appendices/0.34.0-migration-guide.md) for more information on migrating to 0.34.0.

### Bug Fixes

- #6724: @josegonzalez Correctly check if a repository has code or not in git plugin
- #6721: @josegonzalez Correct issue where cron properties cannot be retrieved if global
- #6720: @josegonzalez Add nginx-property binary to gitignore
- #6708: @josegonzalez Correctly handle quoted spaces over ssh
- #6707: @josegonzalez Correct issue where removing by index failed due to incorrect input validation
- #6705: @josegonzalez Ensure we cleanup the data directory on app deletion
- #6703: @josegonzalez Use copytruncate in logrotate commands

### New Features

- #6725: @josegonzalez Warn when publish ports if scaling up or zero downtime is enabled
- #6719: @josegonzalez Add a make target to copy the dokku binary over
- #6717: @josegonzalez Add ability to only build synced repo if there are changes
- #6715: @josegonzalez Add disk utilization to report output
- #6704: @josegonzalez Switch the default k3s routing layer from traefik to nginx

### Removals

- #6700: @josegonzalez Remove priority property from traefik plugin

### Refactors

- #6714: @josegonzalez Use CallPlugnTrigger instead of PlugnTriggerSetup
- #6713: @josegonzalez Use CallPlugnTrigger instead of PlugnTrigger
- #6712: @josegonzalez Use CallPlugnTrigger instead of PlugnTriggerOutput
- #6711: @josegonzalez Use CallPlugnTrigger instead of PlugnTriggerOutputAsString
- #6681: @josegonzalez Migrate to single ingress per app/domain combination when using nginx for k3s proxying
- #6156: @josegonzalez Migrate the app deploy lock to the data directory

### Documentation

- #6738: @josegonzalez Update migration guide for 0.34.x
- #6731: @strugee Clarify alternate proxy support status

### Dependencies

- #6736: @dependabot[bot] chore(deps): bump mkdocs-material from 9.5.13 to 9.5.14 in /docs/_build
- #6729: @dependabot[bot] chore(deps): update markdown requirement from <3.6,>=3.2.1 to >=3.2.1,<3.7 in /docs/_build
- #6728: @dependabot[bot] chore(deps): bump zipp from 3.17.0 to 3.18.1 in /docs/_build
- #6727: @dependabot[bot] chore(deps): bump tj-actions/changed-files from 42.1.0 to 43.0.0
- #6723: @dependabot[bot] chore(deps): bump zipp from 3.17.0 to 3.18.0 in /docs/_build
- #6722: @dependabot[bot] chore(deps): bump tj-actions/changed-files from 42.1.0 to 43.0.0
- #6710: @dependabot[bot] chore(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /plugins/scheduler-k3s
- #6709: @dependabot[bot] chore(deps): bump zipp from 3.17.0 to 3.18.0 in /docs/_build

### Other

- #6718: @josegonzalez Write current process id to all acquired lock files
- #6706: @josegonzalez Remove git:unlock command
- #6650: @bastianh Do not expose all containers via traefik by default
- #6632: @josegonzalez Simplify file ownership in the container by setting the process ownership during the build process
- #6630: @josegonzalez Remove unused code for copying cache directories
2024-03-18 20:16:12 +00:00
Jose Diaz-Gonzalez
c9b9c2ab25 chore: run shfmt 2024-03-14 15:02:57 -04:00
Jose Diaz-Gonzalez
6e3631afeb fix: correct warning placement and update tests to account for parallel's behavior 2024-03-14 14:59:49 -04:00
Jose Diaz-Gonzalez
43c255436d feat: warn when publish ports if scaling up or zero downtime is enabled
Closes #4662
2024-03-14 11:53:57 -04:00
Jose Diaz-Gonzalez
a759b03739 Merge pull request #6724 from dokku/git-fix-empty-repo-check
Correctly check if a repository has code or not in git plugin
2024-03-14 10:52:17 -04:00
Jose Diaz-Gonzalez
efc35ab104 fix: correctly check if a repository has code or not in git plugin 2024-03-14 10:09:14 -04:00
Jose Diaz-Gonzalez
89cff8957f fix: do not unset variables unless re-running as dokku user 2024-03-14 08:18:48 -04:00
Jose Diaz-Gonzalez
83b89453a5 feat: write current process id to all acquired lock files
This allows us to check on what process created a lock.

Additionally, we now always have a DOKKU_PID value, even when running in cron (which does not have access to BASH_PID.
2024-03-14 08:18:35 -04:00
Jose Diaz-Gonzalez
41b0898db9 fix: correct issue where cron properties cannot be retrieved if global 2024-03-14 08:16:55 -04:00
Jose Diaz-Gonzalez
54e1b973a6 fix: add nginx-property binary to gitignore 2024-03-14 08:15:40 -04:00
Jose Diaz-Gonzalez
58772984cd tests: check that the ref has been updated to the correct value 2024-03-14 05:28:37 -04:00
Jose Diaz-Gonzalez
4de97a1094 feat: add ability to only build synced repo if there are changes
Closes #6242
2024-03-14 04:42:28 -04:00
Jose Diaz-Gonzalez
4bae815f82 chore: remove codeskyblue/go-sh
It has been replaced with alexellis/go-execute.
2024-03-14 03:14:22 -04:00
Jose Diaz-Gonzalez
bb5ab0a777 refactor: use CallPlugnTrigger instead of PlugnTrigger
Refs #6422
2024-03-14 03:11:37 -04:00
Jose Diaz-Gonzalez
ea609801b5 chore: remove unused plugn code 2024-03-14 03:11:37 -04:00
Jose Diaz-Gonzalez
a7c90c42cb Merge pull request #6714 from dokku/6422-remove-plugin-trigger-setup
Use CallPlugnTrigger instead of PlugnTriggerSetup
2024-03-14 03:11:27 -04:00
Jose Diaz-Gonzalez
e641fae3c9 feat: add disk utilization to report output
Closes #5764
2024-03-14 02:40:08 -04:00
Jose Diaz-Gonzalez
c277f529a0 refactor: use CallPlugnTrigger instead of PlugnTriggerSetup
Refs #6422
2024-03-14 02:26:01 -04:00
Jose Diaz-Gonzalez
68a280e0b6 Merge pull request #6712 from dokku/6422-remove-plugin-trigger-output
Use CallPlugnTrigger instead of PlugnTriggerOutput
2024-03-14 01:53:38 -04:00
Jose Diaz-Gonzalez
2fd6767e5a Merge pull request #6711 from dokku/6422-remove-plugin-trigger-output-as-string
Use CallPlugnTrigger instead of PlugnTriggerOutputAsString
2024-03-14 01:37:02 -04:00
Jose Diaz-Gonzalez
cdff4ae867 refactor: use CallPlugnTrigger instead of PlugnTriggerOutput
Refs #6422
2024-03-14 01:18:28 -04:00
Jose Diaz-Gonzalez
f34fd277b3 refactor: use CallPlugnTrigger instead of PlugnTriggerOutputAsString
Refs #6422
2024-03-14 00:46:55 -04:00
Jose Diaz-Gonzalez
0ea9e7aa42 fix: copy over all phase files during an app rename or clone 2024-03-14 00:26:18 -04:00
Jose Diaz-Gonzalez
e0409caf75 fix: ensure env vars are copied over when cloning or renaming an app 2024-03-14 00:26:18 -04:00
Jose Diaz-Gonzalez
883809f35e fix: properly rewrite domains when renaming an app 2024-03-14 00:26:18 -04:00
Jose Diaz-Gonzalez
135497afda chore: remove unused code for copying cache directories
This code no longer is necessary as cache directories are mounted from volumes instead of disk.
2024-03-14 00:26:18 -04:00
Jose Diaz-Gonzalez
4d07ac6d6b Merge pull request #6710 from dokku/dependabot/go_modules/plugins/scheduler-k3s/google.golang.org/protobuf-1.33.0
chore(deps): bump google.golang.org/protobuf from 1.32.0 to 1.33.0 in /plugins/scheduler-k3s
2024-03-13 22:11:01 -04:00
dependabot[bot]
b026103ae2 chore(deps): bump google.golang.org/protobuf in /plugins/scheduler-k3s
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 23:41:15 +00:00
Jose Diaz-Gonzalez
b78431a800 Merge pull request #6709 from dokku/dependabot/pip/docs/_build/zipp-3.18.0
chore(deps): bump zipp from 3.17.0 to 3.18.0 in /docs/_build
2024-03-13 10:26:35 -04:00
Jose Diaz-Gonzalez
c53d21c834 Merge pull request #6706 from dokku/6690-git-unlock
Remove git:unlock command
2024-03-13 09:09:22 -04:00
Jose Diaz-Gonzalez
a1790d674c fix: use correct variable 2024-03-13 07:48:01 -04:00
Jose Diaz-Gonzalez
9cb54950fc fix: correct issue where removing by index failed due to incorrect input validation
Closes #6657
2024-03-13 06:53:05 -04:00
Jose Diaz-Gonzalez
50958fc448 refactor: remove git:unlock command
This is no longer necessary with improvements elsewhere in Dokku.
2024-03-13 06:24:30 -04:00
Jose Diaz-Gonzalez
4bd64dfd7b Merge pull request #6704 from dokku/k3s-default-nginx
Switch the default k3s routing layer from traefik to nginx
2024-03-13 05:39:26 -04:00
Jose Diaz-Gonzalez
10468ce47d fix: ensure we cleanup the data directory on app deletion
Also use a variable for the clone root dir.
2024-03-13 05:37:06 -04:00
Jose Diaz-Gonzalez
55461f0149 feat: switch the default k3s routing layer from traefik to nginx
The ingress-nginx ingress implementation is the standard ingress in the Kubernetes community, and it doesn't make sense for us to stray from that just to utilize the k3s default.

In the future, we might drop k3s, but this works well for now.
2024-03-13 04:50:18 -04:00
Jose Diaz-Gonzalez
eb9a75496c Merge pull request #6703 from dokku/logrotate-perms
Use copytruncate in logrotate commands
2024-03-13 01:52:20 -04:00
Jose Diaz-Gonzalez
76dd78e441 chore: run shfmt 2024-03-13 01:51:16 -04:00
Jose Diaz-Gonzalez
87a008c86b Merge pull request #6632 from dokku/remove-disable-chown
Simplify file ownership in the container by setting the process ownership during the build process
2024-03-13 01:44:39 -04:00