Compare commits

..

137 Commits

Author SHA1 Message Date
5d22b81c47 更新 Dockerfile
Some checks failed
CI / unit-tests (push) Has been cancelled
CI / unit-tests-0.19.0 (push) Has been cancelled
2025-10-17 00:40:08 +08:00
flowshadow
65ae023916 修改镜像地址
Some checks failed
CI / unit-tests (push) Has been cancelled
CI / unit-tests-0.19.0 (push) Has been cancelled
2025-10-17 00:13:25 +08:00
Jose Diaz-Gonzalez
40ca47cbe8 Merge pull request #240 from dokku/dependabot/github_actions/softprops/action-gh-release-2.4.1
Some checks failed
CI / unit-tests (push) Has been cancelled
CI / unit-tests-0.19.0 (push) Has been cancelled
chore(deps): bump softprops/action-gh-release from 2.4.0 to 2.4.1
2025-10-13 18:09:49 -04:00
dependabot[bot]
64882b2e44 chore(deps): bump softprops/action-gh-release from 2.4.0 to 2.4.1
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2.4.0...v2.4.1)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 14:12:29 +00:00
Jose Diaz-Gonzalez
7775c00c13 Merge pull request #239 from dokku/dependabot/github_actions/softprops/action-gh-release-2.4.0
chore(deps): bump softprops/action-gh-release from 2.3.3 to 2.4.0
2025-10-07 14:04:53 -04:00
dependabot[bot]
748c65b115 chore(deps): bump softprops/action-gh-release from 2.3.3 to 2.4.0
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2.3.3...v2.4.0)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-07 13:06:29 +00:00
Jose Diaz-Gonzalez
65026b2857 Release 1.38.13
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-10-05 15:07:34 -04:00
Jose Diaz-Gonzalez
88cef01adb Merge pull request #237 from dokku/dependabot/docker/mongo-8.0.15
chore(deps): bump mongo from 8.0.14 to 8.0.15
2025-10-05 15:04:48 -04:00
dependabot[bot]
2530b50c41 chore(deps): bump mongo from 8.0.14 to 8.0.15
Bumps mongo from 8.0.14 to 8.0.15.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-03 13:01:37 +00:00
Jose Diaz-Gonzalez
77c8c588a3 Release 1.38.12
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-09-29 19:27:19 -04:00
Jose Diaz-Gonzalez
e0a70dac5f Merge pull request #236 from dokku/dependabot/docker/mongo-8.0.14
chore(deps): bump mongo from 8.0.13 to 8.0.14
2025-09-29 19:27:09 -04:00
dependabot[bot]
7cf121662e chore(deps): bump mongo from 8.0.13 to 8.0.14
Bumps mongo from 8.0.13 to 8.0.14.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-23 13:02:22 +00:00
Jose Diaz-Gonzalez
19f9c45e5e Merge pull request #235 from dokku/dependabot/github_actions/softprops/action-gh-release-2.3.3
chore(deps): bump softprops/action-gh-release from 2.3.2 to 2.3.3
2025-09-08 14:39:04 -04:00
dependabot[bot]
e55e67bbae chore(deps): bump softprops/action-gh-release from 2.3.2 to 2.3.3
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2.3.2...v2.3.3)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 13:10:00 +00:00
Jose Diaz-Gonzalez
a8694ec140 Merge pull request #234 from dokku/dependabot/github_actions/actions/setup-python-6
chore(deps): bump actions/setup-python from 5 to 6
2025-09-04 14:43:45 -04:00
dependabot[bot]
69042b1201 chore(deps): bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 14:36:20 +00:00
Jose Diaz-Gonzalez
66574f9365 Release 1.38.11
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-08-22 22:08:14 -04:00
Jose Diaz-Gonzalez
ec9b34c1d4 Merge pull request #233 from dokku/dependabot/docker/mongo-8.0.13
chore(deps): bump mongo from 8.0.12 to 8.0.13
2025-08-22 22:07:54 -04:00
dependabot[bot]
98a6329f67 chore(deps): bump mongo from 8.0.12 to 8.0.13
Bumps mongo from 8.0.12 to 8.0.13.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 13:52:45 +00:00
Jose Diaz-Gonzalez
dc942901be Merge pull request #232 from dokku/dependabot/github_actions/actions/checkout-5
chore(deps): bump actions/checkout from 4 to 5
2025-08-12 11:46:43 -04:00
dependabot[bot]
7b34b459da chore(deps): bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 21:09:00 +00:00
Jose Diaz-Gonzalez
9967b58ec7 Release 1.38.10
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-07-25 04:50:36 -04:00
Jose Diaz-Gonzalez
1ee2d86ec2 Merge pull request #231 from dokku/dependabot/docker/mongo-8.0.12
chore(deps): bump mongo from 8.0.11 to 8.0.12
2025-07-25 04:50:31 -04:00
dependabot[bot]
0ada1b5d76 chore(deps): bump mongo from 8.0.11 to 8.0.12
Bumps mongo from 8.0.11 to 8.0.12.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-24 14:00:22 +00:00
Jose Diaz-Gonzalez
1aa38a9aa1 Release 1.38.9
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-07-01 21:40:39 -04:00
Jose Diaz-Gonzalez
e9ac8cff52 Merge pull request #230 from dokku/dependabot/docker/mongo-8.0.11
chore(deps): bump mongo from 8.0.10 to 8.0.11
2025-07-01 21:40:31 -04:00
dependabot[bot]
30bad72114 chore(deps): bump mongo from 8.0.10 to 8.0.11
Bumps mongo from 8.0.10 to 8.0.11.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.11
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-01 14:19:06 +00:00
Jose Diaz-Gonzalez
38e26c7bd7 Merge pull request #229 from dokku/dependabot/github_actions/softprops/action-gh-release-2.3.2
chore(deps): bump softprops/action-gh-release from 2.2.2 to 2.3.2
2025-06-12 11:50:55 -04:00
dependabot[bot]
b9772a800b chore(deps): bump softprops/action-gh-release from 2.2.2 to 2.3.2
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.2.2 to 2.3.2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2.2.2...v2.3.2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.3.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-11 13:39:06 +00:00
Jose Diaz-Gonzalez
e07724019a Release 1.38.8
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-06-07 23:17:47 -04:00
Jose Diaz-Gonzalez
61ba54bf40 Merge pull request #227 from dokku/dependabot/docker/mongo-8.0.10
chore(deps): bump mongo from 8.0.9 to 8.0.10
2025-06-07 23:17:35 -04:00
dependabot[bot]
59769c55dd chore(deps): bump mongo from 8.0.9 to 8.0.10
Bumps mongo from 8.0.9 to 8.0.10.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-04 13:47:39 +00:00
Jose Diaz-Gonzalez
77065571ac Release 1.38.7
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-05-09 21:54:23 -04:00
Jose Diaz-Gonzalez
7f3d13fd14 Merge pull request #226 from dokku/dependabot/docker/mongo-8.0.9
chore(deps): bump mongo from 8.0.8 to 8.0.9
2025-05-09 21:54:15 -04:00
dependabot[bot]
5ac22479f8 chore(deps): bump mongo from 8.0.8 to 8.0.9
Bumps mongo from 8.0.8 to 8.0.9.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-02 13:25:10 +00:00
Jose Diaz-Gonzalez
827f94ff95 Release 1.38.6
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-04-28 23:56:47 -04:00
Jose Diaz-Gonzalez
49ae733f70 Merge pull request #225 from dokku/fix-typo
docs: fix typo in generated docs
2025-04-28 23:42:25 -04:00
Jose Diaz-Gonzalez
ccdbe3ce41 docs: regenerate readme 2025-04-28 23:41:15 -04:00
Jose Diaz-Gonzalez
2a5e5195d3 Merge pull request #224 from dokku/dependabot/github_actions/softprops/action-gh-release-2.2.2
chore(deps): bump softprops/action-gh-release from 2.2.1 to 2.2.2
2025-04-28 23:17:56 -04:00
Jose Diaz-Gonzalez
56b886cd62 docs: correct typo in generated readme 2025-04-28 23:07:49 -04:00
dependabot[bot]
080b961bc2 chore(deps): bump softprops/action-gh-release from 2.2.1 to 2.2.2
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-21 14:32:34 +00:00
Jose Diaz-Gonzalez
f8f515ac31 Merge pull request #223 from dokku/update-workflows
chore: bump runs-on image from ubuntu-22.04 to ubuntu-24.04
2025-04-17 21:11:05 -04:00
Jose Diaz-Gonzalez
93e438e9f1 fix: use maintained version of python 2025-04-17 20:46:19 -04:00
Jose Diaz-Gonzalez
54b363a1f1 chore: bump runs-on image from ubuntu-22.04 to ubuntu-24.04 2025-04-17 20:43:55 -04:00
Jose Diaz-Gonzalez
e12ec526e4 Release 1.38.5
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-04-16 16:26:44 -04:00
Jose Diaz-Gonzalez
2a2b7111b7 Merge pull request #222 from dokku/dependabot/docker/mongo-8.0.8
chore(deps): bump mongo from 8.0.6 to 8.0.8
2025-04-16 16:26:28 -04:00
dependabot[bot]
f12cb7ba8f chore(deps): bump mongo from 8.0.6 to 8.0.8
Bumps mongo from 8.0.6 to 8.0.8.

---
updated-dependencies:
- dependency-name: mongo
  dependency-version: 8.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-15 14:00:03 +00:00
Jose Diaz-Gonzalez
4376521a80 Release 1.38.4
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-03-30 14:02:53 -04:00
Jose Diaz-Gonzalez
7f2a572810 Merge pull request #221 from dokku/dependabot/docker/mongo-8.0.6
chore(deps): bump mongo from 8.0.5 to 8.0.6
2025-03-30 14:02:49 -04:00
dependabot[bot]
f0ccd7491a chore(deps): bump mongo from 8.0.5 to 8.0.6
Bumps mongo from 8.0.5 to 8.0.6.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-25 13:06:07 +00:00
Jose Diaz-Gonzalez
1db4b7b041 Merge pull request #220 from dokku/maintained-action
ci: use maintained action for creating automated releases
2025-03-13 18:51:01 -05:00
Jose Diaz-Gonzalez
62cbfea79e ci: use maintained action for creating automated releases 2025-03-13 19:46:50 -04:00
Jose Diaz-Gonzalez
60a38d9c14 Release 1.38.3
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-03-09 07:11:54 -04:00
Jose Diaz-Gonzalez
23d30b8d68 Merge pull request #219 from dokku/7470-name-argument
docs: ensure --name flag is used in installation docs
2025-03-09 06:05:31 -05:00
Jose Diaz-Gonzalez
544b5dc18b docs: ensure --name flag is used in installation docs
Closes dokku/dokku#7470
2025-03-09 07:03:59 -04:00
Jose Diaz-Gonzalez
f5262cd605 Release 1.38.2
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2025-03-05 20:27:30 -05:00
Jose Diaz-Gonzalez
e734a57679 Merge pull request #218 from dokku/dependabot/docker/mongo-8.0.5
chore(deps): bump mongo from 8.0.4 to 8.0.5
2025-03-05 19:27:22 -06:00
dependabot[bot]
4e1174f259 chore(deps): bump mongo from 8.0.4 to 8.0.5
Bumps mongo from 8.0.4 to 8.0.5.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-25 13:47:03 +00:00
Jose Diaz-Gonzalez
b720c3977e Release 1.38.1
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-12-11 09:37:31 -05:00
Jose Diaz-Gonzalez
537df32822 Merge pull request #217 from dokku/dependabot/docker/mongo-8.0.4
chore(deps): bump mongo from 8.0.3 to 8.0.4
2024-12-11 09:36:48 -05:00
dependabot[bot]
c74caffd06 chore(deps): bump mongo from 8.0.3 to 8.0.4
Bumps mongo from 8.0.3 to 8.0.4.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-10 13:18:18 +00:00
Jose Diaz-Gonzalez
fd57944bd3 Release 1.38.0
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-11-24 22:18:59 -05:00
Jose Diaz-Gonzalez
86156712f6 Merge pull request #216 from dokku/use-gpg-public-key-encryption
feat: implement GPG Public Key encryption support
2024-11-24 20:59:13 -05:00
Jose Diaz-Gonzalez
a668a12049 feat: implement GPG Public Key encryption support 2024-11-24 20:21:59 -05:00
Jose Diaz-Gonzalez
0aa0c7e242 Merge pull request #215 from dokku/enable-image-overrides
feat: enable env overrides for support images and update all to latest
2024-11-24 19:58:35 -05:00
Jose Diaz-Gonzalez
da11b65a68 feat: enable env overrides for support images and update all to latest 2024-11-24 19:15:23 -05:00
Jose Diaz-Gonzalez
fc965d7890 Release 1.37.2
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-11-02 23:25:56 -04:00
Jose Diaz-Gonzalez
eb22ab9123 Merge pull request #214 from dokku/dependabot/docker/mongo-8.0.3
chore(deps): bump mongo from 8.0.1 to 8.0.3
2024-11-02 23:25:42 -04:00
dependabot[bot]
5e56529fd7 chore(deps): bump mongo from 8.0.1 to 8.0.3
Bumps mongo from 8.0.1 to 8.0.3.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 13:53:47 +00:00
Jose Diaz-Gonzalez
c1f22f6b6f Release 1.37.1
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-10-10 10:37:40 -04:00
Jose Diaz-Gonzalez
bee327076a Merge pull request #213 from dokku/dependabot/docker/mongo-8.0.1
chore(deps): bump mongo from 8.0.0 to 8.0.1
2024-10-10 10:37:29 -04:00
dependabot[bot]
b62896a90d chore(deps): bump mongo from 8.0.0 to 8.0.1
Bumps mongo from 8.0.0 to 8.0.1.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-10 13:24:59 +00:00
Jose Diaz-Gonzalez
86a968774a Release 1.37.0
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-09-21 23:12:40 -04:00
Jose Diaz-Gonzalez
d844492956 Merge pull request #211 from dokku/dependabot/docker/mongo-8.0.0
chore(deps): bump mongo from 7.0.14 to 8.0.0
2024-09-21 23:12:26 -04:00
dependabot[bot]
def796e990 chore(deps): bump mongo from 7.0.14 to 8.0.0
Bumps mongo from 7.0.14 to 8.0.0.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-20 13:07:43 +00:00
Jose Diaz-Gonzalez
b5e2f57e62 Release 1.36.12
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-09-13 21:15:52 -04:00
Jose Diaz-Gonzalez
c0a6297913 Merge pull request #210 from dokku/dependabot/docker/mongo-7.0.14
chore(deps): bump mongo from 7.0.12 to 7.0.14
2024-09-13 21:15:33 -04:00
dependabot[bot]
81a317b234 chore(deps): bump mongo from 7.0.12 to 7.0.14
Bumps mongo from 7.0.12 to 7.0.14.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-27 13:11:35 +00:00
Jose Diaz-Gonzalez
02d965dc49 Release 1.36.11
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-06-30 13:48:20 -04:00
Jose Diaz-Gonzalez
1f0eb0a20f Merge pull request #209 from dokku/dependabot/docker/mongo-7.0.12
chore(deps): bump mongo from 7.0.9 to 7.0.12
2024-06-30 13:48:11 -04:00
dependabot[bot]
8ece099353 chore(deps): bump mongo from 7.0.9 to 7.0.12
Bumps mongo from 7.0.9 to 7.0.12.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-29 07:50:45 +00:00
Jose Diaz-Gonzalez
ced339c017 Merge pull request #208 from dokku/exclude-SC1091
tests: exclude SC1091 from shellcheck rules
2024-06-29 03:48:42 -04:00
Jose Diaz-Gonzalez
0e9ffbbc0c tests: exclude SC1091 from shellcheck rules 2024-06-29 03:44:55 -04:00
Jose Diaz-Gonzalez
37329161ad Merge pull request #207 from dokku/fix-tests
fix: use .DNSNames instead of .Aliases in tests
2024-06-29 03:40:59 -04:00
Jose Diaz-Gonzalez
39cc395cdf fix: use .DNSNames instead of .Aliases in tests
Docker has changed their output in an unclear manner, but this is the correct way to check for what dns records are available for usage by apps.
2024-06-29 03:25:41 -04:00
Jose Diaz-Gonzalez
02b44673f3 Release 1.36.10
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-04-30 19:07:02 -04:00
Jose Diaz-Gonzalez
5c08db82e3 Merge pull request #205 from dokku/dependabot/docker/mongo-7.0.9
chore(deps): bump mongo from 7.0.8 to 7.0.9
2024-04-30 19:06:46 -04:00
dependabot[bot]
5478a9d261 chore(deps): bump mongo from 7.0.8 to 7.0.9
Bumps mongo from 7.0.8 to 7.0.9.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 13:33:05 +00:00
Jose Diaz-Gonzalez
02faf41d0e Release 1.36.9
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-04-04 20:25:35 -04:00
Jose Diaz-Gonzalez
a98d498f2b Merge pull request #204 from dokku/dependabot/docker/mongo-7.0.8
chore(deps): bump mongo from 7.0.7 to 7.0.8
2024-04-04 20:25:24 -04:00
dependabot[bot]
a93f31763a chore(deps): bump mongo from 7.0.7 to 7.0.8
Bumps mongo from 7.0.7 to 7.0.8.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-04 13:12:39 +00:00
Jose Diaz-Gonzalez
19b766960e Release 1.36.8
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-03-24 20:03:03 -04:00
Jose Diaz-Gonzalez
a2f568ee9f Merge pull request #202 from dokku/dependabot/docker/mongo-7.0.7
chore(deps): bump mongo from 7.0.6 to 7.0.7
2024-03-24 20:02:56 -04:00
dependabot[bot]
21280c5b1a chore(deps): bump mongo from 7.0.6 to 7.0.7
Bumps mongo from 7.0.6 to 7.0.7.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-19 13:55:21 +00:00
Jose Diaz-Gonzalez
ee12f5064d Release 1.36.7
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-03-06 02:15:38 -05:00
Jose Diaz-Gonzalez
b6da231937 Merge pull request #201 from dokku/dependabot/docker/mongo-7.0.6
chore(deps): bump mongo from 7.0.5 to 7.0.6
2024-03-06 02:13:39 -05:00
dependabot[bot]
3f9cd66dde chore(deps): bump mongo from 7.0.5 to 7.0.6
Bumps mongo from 7.0.5 to 7.0.6.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-01 13:39:43 +00:00
Jose Diaz-Gonzalez
bc04b423b8 Release 1.36.6
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-01-29 10:10:00 -05:00
Jose Diaz-Gonzalez
d2faf876c6 fix: use correct repository on arm64 ubuntu image 2024-01-29 10:09:17 -05:00
Jose Diaz-Gonzalez
ba5153e16c Release 1.36.5
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2024-01-29 08:35:48 -05:00
Jose Diaz-Gonzalez
4335963a43 Merge pull request #198 from dokku/dependabot/docker/mongo-7.0.5
chore(deps): bump mongo from 7.0.4 to 7.0.5
2024-01-29 08:35:40 -05:00
dependabot[bot]
dd10b8704e chore(deps): bump mongo from 7.0.4 to 7.0.5
Bumps mongo from 7.0.4 to 7.0.5.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 13:31:56 +00:00
Jose Diaz-Gonzalez
ead449eb1f Merge pull request #197 from dokku/dependabot/github_actions/actions/upload-artifact-4
chore(deps): bump actions/upload-artifact from 3 to 4
2023-12-19 00:23:58 -05:00
dependabot[bot]
f83d6f1010 chore(deps): bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 13:15:17 +00:00
Jose Diaz-Gonzalez
93b5e4e061 Release 1.36.4
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-12-09 23:56:05 -05:00
Jose Diaz-Gonzalez
bfe7afdf99 docs: update docs and generation script 2023-12-09 23:55:46 -05:00
Jose Diaz-Gonzalez
7663ca66de chore: fix typo 2023-12-09 13:51:12 -05:00
Jose Diaz-Gonzalez
7d5ff6d1e1 chore: fix typo 2023-12-09 13:48:37 -05:00
Jose Diaz-Gonzalez
61140a5283 Release 1.36.3
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-12-09 13:45:32 -05:00
Jose Diaz-Gonzalez
40339d4cee Merge pull request #195 from dokku/dependabot/docker/mongo-7.0.4
chore(deps): bump mongo from 7.0.2 to 7.0.4
2023-12-09 13:45:02 -05:00
Jose Diaz-Gonzalez
5f11adaddf Merge pull request #196 from dokku/dependabot/github_actions/actions/setup-python-5
chore(deps): bump actions/setup-python from 4 to 5
2023-12-09 13:44:48 -05:00
dependabot[bot]
5c4cafe2a1 chore(deps): bump actions/setup-python from 4 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-06 13:26:25 +00:00
dependabot[bot]
fe834e5a01 chore(deps): bump mongo from 7.0.2 to 7.0.4
Bumps mongo from 7.0.2 to 7.0.4.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-29 13:48:55 +00:00
Jose Diaz-Gonzalez
51ee0d0e03 Release 1.36.2
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-10-07 00:48:42 -04:00
Jose Diaz-Gonzalez
4c7d0b37f8 Merge pull request #193 from dokku/dependabot/docker/mongo-7.0.2
chore(deps): bump mongo from 7.0.1 to 7.0.2
2023-10-07 00:48:28 -04:00
dependabot[bot]
b12dc746c2 chore(deps): bump mongo from 7.0.1 to 7.0.2
Bumps mongo from 7.0.1 to 7.0.2.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 13:39:21 +00:00
Jose Diaz-Gonzalez
1a55dc698e Release 1.36.1
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-09-09 22:41:44 -04:00
Jose Diaz-Gonzalez
45131b4e14 Release 1.36.0
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-09-09 22:39:48 -04:00
Jose Diaz-Gonzalez
bff0b6aded Merge pull request #191 from dokku/dependabot/docker/mongo-7.0.1
chore(deps): bump mongo from 7.0.0 to 7.0.1
2023-09-07 00:58:05 -04:00
dependabot[bot]
944e1ac433 chore(deps): bump mongo from 7.0.0 to 7.0.1
Bumps mongo from 7.0.0 to 7.0.1.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 04:27:44 +00:00
Jose Diaz-Gonzalez
35a5add342 Merge pull request #189 from dokku/dependabot/github_actions/actions/checkout-4
chore(deps): bump actions/checkout from 3 to 4
2023-09-07 00:27:00 -04:00
dependabot[bot]
f6a9a0cea6 chore(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 03:24:54 +00:00
Jose Diaz-Gonzalez
3f795fab02 Merge pull request #192 from dokku/newer-ubuntu
feat: upgrade test suite from ubuntu 20.04 to 22.04
2023-09-06 23:24:12 -04:00
Jose Diaz-Gonzalez
eaaa3cb28f feat: upgrade test suite from ubuntu 20.04 to 22.04 2023-09-06 22:37:21 -04:00
Jose Diaz-Gonzalez
c0cc6f20d2 Release 1.35.0
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-08-20 12:06:55 -04:00
Jose Diaz-Gonzalez
801a55ec87 Merge pull request #188 from dokku/dependabot/docker/mongo-7.0.0
chore(deps): bump mongo from 6.0.9 to 7.0.0
2023-08-20 12:06:01 -04:00
dependabot[bot]
1ac9d45b37 chore(deps): bump mongo from 6.0.9 to 7.0.0
Bumps mongo from 6.0.9 to 7.0.0.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 13:30:56 +00:00
Jose Diaz-Gonzalez
dc5a8f2c38 Release 1.34.3
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-08-16 22:32:49 -04:00
Jose Diaz-Gonzalez
e90db384c8 Merge pull request #187 from dokku/dependabot/docker/mongo-6.0.9
chore(deps): bump mongo from 6.0.8 to 6.0.9
2023-08-16 22:32:36 -04:00
dependabot[bot]
76af54aa26 chore(deps): bump mongo from 6.0.8 to 6.0.9
Bumps mongo from 6.0.8 to 6.0.9.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 13:10:28 +00:00
Jose Diaz-Gonzalez
2f6a998d89 Release 1.34.2
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-07-30 16:09:25 -04:00
Jose Diaz-Gonzalez
7cc2f77ec7 Merge pull request #186 from dokku/dependabot/docker/mongo-6.0.8
chore(deps): bump mongo from 6.0.7 to 6.0.8
2023-07-30 16:09:08 -04:00
dependabot[bot]
5946a56acb chore(deps): bump mongo from 6.0.7 to 6.0.8
Bumps mongo from 6.0.7 to 6.0.8.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-14 13:29:16 +00:00
Jose Diaz-Gonzalez
15abadb174 Release 1.34.1
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-07-06 21:32:07 -04:00
Jose Diaz-Gonzalez
04b856ccd6 Merge pull request #185 from dokku/dependabot/docker/mongo-6.0.7
chore(deps): bump mongo from 6.0.6 to 6.0.7
2023-07-06 21:31:59 -04:00
dependabot[bot]
17e9783db3 chore(deps): bump mongo from 6.0.6 to 6.0.7
Bumps mongo from 6.0.6 to 6.0.7.

---
updated-dependencies:
- dependency-name: mongo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 13:15:07 +00:00
Jose Diaz-Gonzalez
5fe00e2321 Release 1.34.0
Some checks failed
tagged-release / tagged-release (push) Has been cancelled
2023-05-28 00:59:55 -04:00
19 changed files with 339 additions and 95 deletions

View File

@@ -5,7 +5,7 @@ name: CI
on:
pull_request:
branches:
- '*'
- "*"
push:
branches:
- master
@@ -17,18 +17,18 @@ concurrency:
jobs:
unit-tests-master:
name: unit-tests
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
DOKKU_VERSION: master
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v6
with:
python-version: '3.7.x'
python-version: "3.13"
- run: make setup
@@ -51,7 +51,7 @@ jobs:
- run: make test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: tmp/test-results
@@ -59,18 +59,18 @@ jobs:
unit-tests-0_19_0:
name: unit-tests-0.19.0
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
env:
DOKKU_TAG: v0.19.0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v6
with:
python-version: '3.7.x'
python-version: "3.13"
- run: make setup
@@ -93,7 +93,7 @@ jobs:
- run: make test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: failure()
with:
name: tmp/test-results

View File

@@ -5,15 +5,16 @@ name: "tagged-release"
on:
push:
tags:
- '*'
- "*"
jobs:
tagged-release:
name: tagged-release
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: "marvinpinto/action-automatic-releases@v1.2.1"
- name: Release
uses: softprops/action-gh-release@v2.4.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
generate_release_notes: true
make_latest: "true"

View File

@@ -1 +1 @@
FROM mongo:6.0.6
FROM mirror.ccs.tencentyun.com/library/mongo:8.0.15

View File

@@ -1,5 +1,6 @@
HARDWARE = $(shell uname -m)
SYSTEM_NAME = $(shell uname -s | tr '[:upper:]' '[:lower:]')
ARCH = $(shell dpkg --print-architecture)
SHFMT_VERSION = 3.0.2
XUNIT_TO_GITHUB_VERSION = 0.3.0
XUNIT_READER_VERSION = 0.1.0
@@ -21,7 +22,11 @@ ifneq ($(shell shellcheck --version >/dev/null 2>&1 ; echo $$?),0)
ifeq ($(SYSTEM_NAME),darwin)
brew install shellcheck
else
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse'
ifeq ($(ARCH),arm64)
sudo add-apt-repository 'deb http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse'
else
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse'
endif
sudo rm -rf /var/lib/apt/lists/* && sudo apt-get clean
sudo apt-get update -qq && sudo apt-get install -qq -y shellcheck
endif

View File

@@ -1,6 +1,6 @@
# dokku mongo [![Build Status](https://img.shields.io/github/actions/workflow/status/dokku/dokku-mongo/ci.yml?branch=master&style=flat-square "Build Status")](https://github.com/dokku/dokku-mongo/actions/workflows/ci.yml?query=branch%3Amaster) [![IRC Network](https://img.shields.io/badge/irc-libera-blue.svg?style=flat-square "IRC Libera")](https://webchat.libera.chat/?channels=dokku)
Official mongo plugin for dokku. Currently defaults to installing [mongo 6.0.6](https://hub.docker.com/_/mongo/).
Official mongo plugin for dokku. Currently defaults to installing [mongo 8.0.15](https://hub.docker.com/_/mongo/).
## Requirements
@@ -11,7 +11,7 @@ Official mongo plugin for dokku. Currently defaults to installing [mongo 6.0.6](
```shell
# on 0.19.x+
sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git --name mongo
```
## Commands
@@ -24,8 +24,10 @@ mongo:backup-deauth <service> # remove backup authenticatio
mongo:backup-schedule <service> <schedule> <bucket-name> [--use-iam] # schedule a backup of the mongo service
mongo:backup-schedule-cat <service> # cat the contents of the configured backup cronfile for the service
mongo:backup-set-encryption <service> <passphrase> # set encryption for all future backups of mongo service
mongo:backup-set-public-key-encryption <service> <public-key-id> # set GPG Public Key encryption for all future backups of mongo service
mongo:backup-unschedule <service> # unschedule the backup of the mongo service
mongo:backup-unset-encryption <service> # unset encryption for future backups of the mongo service
mongo:backup-unset-public-key-encryption <service> # unset GPG Public Key encryption for future backups of the mongo service
mongo:clone <service> <new-service> [--clone-flags...] # create container <new-name> then copy data from <name> into <new-name>
mongo:connect <service> # connect to the service via the mongo connection tool
mongo:connect-admin <service> # connect via mongo to a mongo service as admin user
@@ -75,9 +77,9 @@ flags:
- `-m|--memory MEMORY`: container memory limit in megabytes (default: unlimited)
- `-N|--initial-network INITIAL_NETWORK`: the initial network to attach the service to
- `-p|--password PASSWORD`: override the user-level service password
- `-P|--post-create-network NETWORKS`: a comman-separated list of networks to attach the service container to after service creation
- `-P|--post-create-network NETWORKS`: a comma-separated list of networks to attach the service container to after service creation
- `-r|--root-password PASSWORD`: override the root-level service password
- `-S|--post-start-network NETWORKS`: a comman-separated list of networks to attach the service container to after service start
- `-S|--post-start-network NETWORKS`: a comma-separated list of networks to attach the service container to after service start
- `-s|--shm-size SHM_SIZE`: override shared memory size for mongo docker container
Create a mongo service named lollipop:
@@ -94,7 +96,7 @@ export MONGO_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}"
dokku mongo:create lollipop
```
You can also specify custom environment variables to start the mongo service in semi-colon separated form.
You can also specify custom environment variables to start the mongo service in semicolon-separated form.
```shell
export MONGO_CUSTOM_ENV="USER=alpha;HOST=beta"
@@ -152,7 +154,7 @@ dokku mongo:info lollipop --version
```shell
# usage
dokku mongo:list
dokku mongo:list
```
List all services:
@@ -344,7 +346,7 @@ Expose the service on the service's normal ports, allowing access to it from the
dokku mongo:expose lollipop 27017 27018 27019 28017
```
Expose the service on the service's normal ports, with the first on a specified ip adddress (127.0.0.1):
Expose the service on the service's normal ports, with the first on a specified ip address (127.0.0.1):
```shell
dokku mongo:expose lollipop 127.0.0.1:27017 27018 27019 28017
@@ -458,9 +460,9 @@ flags:
- `-i|--image IMAGE`: the image name to start the service with
- `-I|--image-version IMAGE_VERSION`: the image version to start the service with
- `-N|--initial-network INITIAL_NETWORK`: the initial network to attach the service to
- `-P|--post-create-network NETWORKS`: a comman-separated list of networks to attach the service container to after service creation
- `-P|--post-create-network NETWORKS`: a comma-separated list of networks to attach the service container to after service creation
- `-R|--restart-apps "true"`: whether or not to force an app restart (default: false)
- `-S|--post-start-network NETWORKS`: a comman-separated list of networks to attach the service container to after service start
- `-S|--post-start-network NETWORKS`: a comma-separated list of networks to attach the service container to after service start
- `-s|--shm-size SHM_SIZE`: override shared memory size for mongo docker container
You can upgrade an existing service to a new image or image-version:
@@ -502,9 +504,9 @@ flags:
- `-m|--memory MEMORY`: container memory limit in megabytes (default: unlimited)
- `-N|--initial-network INITIAL_NETWORK`: the initial network to attach the service to
- `-p|--password PASSWORD`: override the user-level service password
- `-P|--post-create-network NETWORKS`: a comman-separated list of networks to attach the service container to after service creation
- `-P|--post-create-network NETWORKS`: a comma-separated list of networks to attach the service container to after service creation
- `-r|--root-password PASSWORD`: override the root-level service password
- `-S|--post-start-network NETWORKS`: a comman-separated list of networks to attach the service container to after service start
- `-S|--post-start-network NETWORKS`: a comma-separated list of networks to attach the service container to after service start
- `-s|--shm-size SHM_SIZE`: override shared memory size for mongo docker container
You can clone an existing service to a new one:
@@ -676,6 +678,19 @@ Set the GPG-compatible passphrase for encrypting backups for backups:
dokku mongo:backup-set-encryption lollipop
```
### set GPG Public Key encryption for all future backups of mongo service
```shell
# usage
dokku mongo:backup-set-public-key-encryption <service> <public-key-id>
```
Set the `GPG` Public Key for encrypting backups:
```shell
dokku mongo:backup-set-public-key-encryption lollipop
```
### unset encryption for future backups of the mongo service
```shell
@@ -689,6 +704,19 @@ Unset the `GPG` encryption passphrase for backups:
dokku mongo:backup-unset-encryption lollipop
```
### unset GPG Public Key encryption for future backups of the mongo service
```shell
# usage
dokku mongo:backup-unset-public-key-encryption <service>
```
Unset the `GPG` Public Key encryption for backups:
```shell
dokku mongo:backup-unset-public-key-encryption lollipop
```
### schedule a backup of the mongo service
```shell

2
Vagrantfile vendored
View File

@@ -1,7 +1,7 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :
BOX_NAME = ENV["BOX_NAME"] || "bento/ubuntu-20.04"
BOX_NAME = ENV["BOX_NAME"] || "bento/ubuntu-24.04"
BOX_MEMORY = ENV["BOX_MEMORY"] || "2048"
DOKKU_VERSION = "master"

View File

@@ -1,15 +1,30 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import re
def compile(service, version, variable, alias, image, scheme, ports, sponsors, options, unimplemented, dokku_version):
prefix = "\n\n".join([
header(service),
description(service, image, version),
])
def compile(
service,
version,
variable,
alias,
image,
scheme,
ports,
sponsors,
options,
unimplemented,
dokku_version,
):
prefix = "\n\n".join(
[
header(service),
description(service, image, version),
]
)
if len(sponsors) > 0:
prefix += "\n\n"
@@ -21,8 +36,19 @@ def compile(service, version, variable, alias, image, scheme, ports, sponsors, o
prefix,
requirements_section(dokku_version),
installation_section(service, dokku_version),
commands_section(service, variable, alias, image, scheme, ports, unimplemented),
usage_section(service, variable, alias, image, scheme, ports, options, unimplemented),
commands_section(
service, variable, alias, image, scheme, ports, unimplemented
),
usage_section(
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
),
]
)
.replace("\n\n\n\n\n", "\n")
@@ -55,17 +81,25 @@ def sponsors_section(service, sponsors):
if len(sponsors) == 0:
return ""
sponsor_data = ["## Sponsors", "", f"The {service} plugin was generously sponsored by the following:", ""]
sponsor_data = [
"## Sponsors",
"",
f"The {service} plugin was generously sponsored by the following:",
"",
]
sponsor_data.extend([f"- [{s}](https://github.com/{s})" for s in sponsors])
return "\n".join(
sponsor_data
)
return "\n".join(sponsor_data)
def requirements_section(dokku_version):
return "\n".join(
["## Requirements", "", f"- dokku {dokku_version}", "- docker 1.8.x",]
[
"## Requirements",
"",
f"- dokku {dokku_version}",
"- docker 1.8.x",
]
)
@@ -76,7 +110,7 @@ def installation_section(service, dokku_version):
"",
"```shell",
f"# on {dokku_version}",
f"sudo dokku plugin:install https://github.com/dokku/dokku-{service}.git {service}",
f"sudo dokku plugin:install https://github.com/dokku/dokku-{service}.git --name {service}",
"```",
]
)
@@ -115,17 +149,31 @@ def commands_section(service, variable, alias, image, scheme, ports, unimplement
return "\n".join(content)
def usage_section(service, variable, alias, image, scheme, ports, options, unimplemented):
def usage_section(
service, variable, alias, image, scheme, ports, options, unimplemented
):
return "\n\n".join(
[
"## Usage",
f"Help for any commands can be displayed by specifying the command as an argument to {service}:help. Plugin help output in conjunction with any files in the `docs/` folder is used to generate the plugin documentation. Please consult the `{service}:help` command for any undocumented commands.",
usage_intro(service, variable, alias, image, scheme, ports, options, unimplemented),
usage_lifecycle(service, variable, alias, image, scheme, ports, options, unimplemented),
usage_automation(service, variable, alias, image, scheme, ports, options, unimplemented),
usage_data_management(service, variable, alias, image, scheme, ports, options, unimplemented),
usage_backup(service, variable, alias, image, scheme, ports, options, unimplemented),
usage_docker_pull(service, variable, alias, image, scheme, ports, options, unimplemented),
usage_intro(
service, variable, alias, image, scheme, ports, options, unimplemented
),
usage_lifecycle(
service, variable, alias, image, scheme, ports, options, unimplemented
),
usage_automation(
service, variable, alias, image, scheme, ports, options, unimplemented
),
usage_data_management(
service, variable, alias, image, scheme, ports, options, unimplemented
),
usage_backup(
service, variable, alias, image, scheme, ports, options, unimplemented
),
usage_docker_pull(
service, variable, alias, image, scheme, ports, options, unimplemented
),
]
)
@@ -135,11 +183,22 @@ def usage_intro(service, variable, alias, image, scheme, ports, options, unimple
content = ["### Basic Usage"]
return fetch_commands_content(
service, variable, alias, image, scheme, ports, options, unimplemented, commands, content
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
commands,
content,
)
def usage_lifecycle(service, variable, alias, image, scheme, ports, options, unimplemented):
def usage_lifecycle(
service, variable, alias, image, scheme, ports, options, unimplemented
):
commands = [
"connect",
"enter",
@@ -160,11 +219,22 @@ def usage_lifecycle(service, variable, alias, image, scheme, ports, options, uni
]
return fetch_commands_content(
service, variable, alias, image, scheme, ports, options, unimplemented, commands, content
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
commands,
content,
)
def usage_automation(service, variable, alias, image, scheme, ports, options, unimplemented):
def usage_automation(
service, variable, alias, image, scheme, ports, options, unimplemented
):
commands = ["app-links", "clone", "exists", "linked", "links"]
content = [
"### Service Automation",
@@ -174,11 +244,22 @@ def usage_automation(service, variable, alias, image, scheme, ports, options, un
]
return fetch_commands_content(
service, variable, alias, image, scheme, ports, options, unimplemented, commands, content
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
commands,
content,
)
def usage_data_management(service, variable, alias, image, scheme, ports, options, unimplemented):
def usage_data_management(
service, variable, alias, image, scheme, ports, options, unimplemented
):
commands = ["import", "export"]
content = [
"### Data Management",
@@ -188,17 +269,30 @@ def usage_data_management(service, variable, alias, image, scheme, ports, option
]
return fetch_commands_content(
service, variable, alias, image, scheme, ports, options, unimplemented, commands, content
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
commands,
content,
)
def usage_backup(service, variable, alias, image, scheme, ports, options, unimplemented):
def usage_backup(
service, variable, alias, image, scheme, ports, options, unimplemented
):
commands = [
"backup-auth",
"backup-deauth",
"backup",
"backup-set-encryption",
"backup-set-public-key-encryption",
"backup-unset-encryption",
"backup-unset-public-key-encryption",
"backup-schedule",
"backup-schedule-cat",
"backup-unschedule",
@@ -215,11 +309,22 @@ def usage_backup(service, variable, alias, image, scheme, ports, options, unimpl
]
return fetch_commands_content(
service, variable, alias, image, scheme, ports, options, unimplemented, commands, content
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
commands,
content,
)
def usage_docker_pull(service, variable, alias, image, scheme, ports, options, unimplemented):
def usage_docker_pull(
service, variable, alias, image, scheme, ports, options, unimplemented
):
service_prefix = service.upper()
return "\n".join(
[
@@ -233,11 +338,30 @@ def usage_docker_pull(service, variable, alias, image, scheme, ports, options, u
def fetch_commands_content(
service, variable, alias, image, scheme, ports, options, unimplemented, commands, content
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
commands,
content,
):
i = 0
for command in commands:
output = command_help(command, service, variable, alias, image, scheme, ports, options, unimplemented)
output = command_help(
command,
service,
variable,
alias,
image,
scheme,
ports,
options,
unimplemented,
)
if output == "":
continue
content.append(output)
@@ -275,7 +399,9 @@ def parse_args(line):
return " ".join(arguments)
def command_help(command, service, variable, alias, image, scheme, ports, options, unimplemented):
def command_help(
command, service, variable, alias, image, scheme, ports, options, unimplemented
):
if command in unimplemented:
return ""
@@ -285,7 +411,7 @@ def command_help(command, service, variable, alias, image, scheme, ports, option
"",
"```shell",
"# usage",
f"dokku {service}:{command} {data['arguments_string']}",
f"dokku {service}:{command} {data['arguments_string']}".strip(),
"```",
]
@@ -442,11 +568,11 @@ def process_sentence(sentence_lines):
parts = []
for word in sentence.strip().split(" "):
if word.isupper() and len(word) > 1:
for ending in [':', '.']:
for ending in [":", "."]:
if word.endswith(ending):
word = '`{0}`{1}'.format(word[:-1], ending)
word = "`{0}`{1}".format(word[:-1], ending)
else:
word = '`{0}`'.format(word)
word = "`{0}`".format(word)
parts.append(word)
text.append(" ".join(parts))
@@ -491,10 +617,10 @@ def main():
with open("Dockerfile") as f:
for line in f.readlines():
if "FROM " in line:
image, version = line.split(" ")[1].split(":")
image = image.strip()
version = version.strip()
if "FROM " in line:
image, version = line.split(" ")[1].split(":")
image = image.strip()
version = version.strip()
with open("config") as f:
for line in f.readlines():
@@ -524,10 +650,22 @@ def main():
with open("plugin.toml") as f:
for line in f.readlines():
if line.startswith("sponsors"):
sponsors = re.search("\[([\"\w\s,_-]+)\]", line).group(1)
sponsors = [s.strip("\"") for s in sponsors.split(",")]
sponsors = re.search('\[(["\w\s,_-]+)\]', line).group(1)
sponsors = [s.strip('"') for s in sponsors.split(",")]
text = compile(service, version, variable, alias, image, scheme, ports, sponsors, options, unimplemented, "0.19.x+")
text = compile(
service,
version,
variable,
alias,
image,
scheme,
ports,
sponsors,
options,
unimplemented,
"0.19.x+",
)
base_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
readme_file = os.path.join(base_path, "README.md")

View File

@@ -308,6 +308,10 @@ service_backup() {
BACKUP_PARAMETERS="$BACKUP_PARAMETERS -e ENCRYPTION_KEY=$(cat "$BACKUP_ENCRYPTION_CONFIG_ROOT/ENCRYPTION_KEY")"
fi
if [[ -f "$BACKUP_ENCRYPTION_CONFIG_ROOT/ENCRYPT_WITH_PUBLIC_KEY_ID" ]]; then
BACKUP_PARAMETERS="$BACKUP_PARAMETERS -e ENCRYPT_WITH_PUBLIC_KEY_ID=$(cat "$BACKUP_ENCRYPTION_CONFIG_ROOT/ENCRYPT_WITH_PUBLIC_KEY_ID")"
fi
# shellcheck disable=SC2086
"$DOCKER_BIN" container run --rm $BACKUP_PARAMETERS "$PLUGIN_S3BACKUP_IMAGE"
}
@@ -433,6 +437,16 @@ service_backup_set_encryption() {
echo "$ENCRYPTION_KEY" >"${SERVICE_BACKUP_ENCRYPTION_ROOT}/ENCRYPTION_KEY"
}
service_backup_set_public_key_encryption() {
declare desc="set up backup GPG Public Key encryption"
declare SERVICE="$1" ENCRYPT_WITH_PUBLIC_KEY_ID="$2"
local SERVICE_ROOT="${PLUGIN_DATA_ROOT}/${SERVICE}"
local SERVICE_BACKUP_ENCRYPTION_ROOT="${SERVICE_ROOT}/backup-encryption/"
mkdir "$SERVICE_BACKUP_ENCRYPTION_ROOT"
echo "$ENCRYPT_WITH_PUBLIC_KEY_ID" >"${SERVICE_BACKUP_ENCRYPTION_ROOT}/ENCRYPT_WITH_PUBLIC_KEY_ID"
}
service_backup_unschedule() {
declare desc="unschedule the backup of the service"
declare SERVICE="$1"
@@ -450,6 +464,15 @@ service_backup_unset_encryption() {
rm -rf "$SERVICE_BACKUP_ENCRYPTION_ROOT"
}
service_backup_unset_encryption() {
declare desc="remove backup encryption"
declare SERVICE="$1"
local SERVICE_ROOT="${PLUGIN_DATA_ROOT}/${SERVICE}"
local SERVICE_BACKUP_ENCRYPTION_ROOT="${SERVICE_ROOT}/backup-encryption/"
rm -rf "$SERVICE_BACKUP_ENCRYPTION_ROOT"
}
service_container_rm() {
declare desc="stop a service and remove the running container"
declare SERVICE="$1"
@@ -457,7 +480,7 @@ service_container_rm() {
local ID
service_pause "$SERVICE"
ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "name=^/$SERVICE_NAME$" --format '{{ .ID }}') || true
ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "name=^/$SERVICE_NAME$") || true
# this may be 'true' in tests...
if [[ -z "$ID" ]] || [[ "$ID" == "true" ]]; then
return 0
@@ -939,7 +962,7 @@ service_pause() {
declare SERVICE="$1"
local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE"
local SERVICE_NAME="$(get_service_name "$SERVICE")"
local ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "name=^/$SERVICE_NAME$" --format '{{ .ID }}') || true
local ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "name=^/$SERVICE_NAME$") || true
[[ -z $ID ]] && dokku_log_warn "Service is already paused" && return 0
if [[ -n $ID ]]; then

8
config
View File

@@ -28,9 +28,9 @@ if [[ -n $DOKKU_API_VERSION ]]; then
export PLUGIN_BASE_PATH="$PLUGIN_ENABLED_PATH"
fi
export PLUGIN_BUSYBOX_IMAGE="busybox:1.34.1-uclibc"
export PLUGIN_AMBASSADOR_IMAGE="dokku/ambassador:0.5.0"
export PLUGIN_S3BACKUP_IMAGE="dokku/s3backup:0.14.0"
export PLUGIN_WAIT_IMAGE="dokku/wait:0.6.0"
export PLUGIN_BUSYBOX_IMAGE=${PLUGIN_BUSYBOX_IMAGE:=busybox:1.37.0-uclibc}
export PLUGIN_AMBASSADOR_IMAGE=${PLUGIN_AMBASSADOR_IMAGE:=dokku/ambassador:0.8.2}
export PLUGIN_S3BACKUP_IMAGE=${PLUGIN_S3BACKUP_IMAGE:=dokku/s3backup:0.18.0}
export PLUGIN_WAIT_IMAGE=${PLUGIN_WAIT_IMAGE:=dokku/wait:0.9.3}
export MONGO_CONFIG_OPTIONS=${MONGO_CONFIG_OPTIONS:=" --storageEngine wiredTiger --auth "}

View File

@@ -192,7 +192,7 @@ service_start() {
local QUIET="$2"
local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE"
local SERVICE_NAME="$(get_service_name "$SERVICE")"
local ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "status=running" --filter "name=^/$SERVICE_NAME$" --format '{{ .ID }}') || true
local ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "status=running" --filter "name=^/$SERVICE_NAME$") || true
if [[ -n $ID ]]; then
[[ -z $QUIET ]] && dokku_log_warn "Service is already started"
if [[ ! -f "$SERVICE_ROOT/ID" ]] || [[ "$(cat "$SERVICE_ROOT/ID")" != "$ID" ]]; then
@@ -203,7 +203,7 @@ service_start() {
fi
dokku_log_info2_quiet "Starting container"
local PREVIOUS_ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "status=exited" --filter "name=^/$SERVICE_NAME$" --format '{{ .ID }}') || true
local PREVIOUS_ID=$("$DOCKER_BIN" container ps -aq --no-trunc --filter "status=exited" --filter "name=^/$SERVICE_NAME$") || true
local ROOTPASSWORD="$(service_root_password "$SERVICE")"
local PASSWORD="$(service_password "$SERVICE")"

View File

@@ -1,4 +1,4 @@
[plugin]
description = "dokku mongo service plugin"
version = "1.33.2"
version = "1.38.13"
[plugin.config]

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/config"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
service-backup-set-public-key-encryption-cmd() {
#E set the GPG Public Key for encrypting backups
#E dokku $PLUGIN_COMMAND_PREFIX:backup-set-public-key-encryption lollipop
#A service, service to run command against
#A public-key-id, a GPG Public Key ID (or fingerprint) to use for encryption. Must be uploaded to the GPG keyserver beforehand.
declare desc="set GPG Public Key encryption for all future backups of $PLUGIN_SERVICE service"
local cmd="$PLUGIN_COMMAND_PREFIX:backup-set-public-key-encryption" argv=("$@")
[[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1" PUBLIC_KEY_ID="$2"
is_implemented_command "$cmd" || dokku_log_fail "Not yet implemented"
[[ -z "$SERVICE" ]] && dokku_log_fail "Please specify a valid name for the service"
[[ -z "$PUBLIC_KEY_ID" ]] && dokku_log_fail "Please specify a valid GPG Public Key ID (or fingerprint)"
verify_service_name "$SERVICE"
service_backup_set_public_key_encryption "$SERVICE" "$PUBLIC_KEY_ID"
}
service-backup-set-public-key-encryption-cmd "$@"

View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/config"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
service-backup-unset-public-key-encryption-cmd() {
#E unset the GPG Public Key encryption for backups
#E dokku $PLUGIN_COMMAND_PREFIX:backup-unset-public-key-encryption lollipop
#A service, service to run command against
declare desc="unset GPG Public Key encryption for future backups of the $PLUGIN_SERVICE service"
local cmd="$PLUGIN_COMMAND_PREFIX:backup-unset-public-key-encryption" argv=("$@")
[[ ${argv[0]} == "$cmd" ]] && shift 1
declare SERVICE="$1"
is_implemented_command "$cmd" || dokku_log_fail "Not yet implemented" # TODO: [22.03.2024 by Mykola]
[[ -z "$SERVICE" ]] && dokku_log_fail "Please specify a valid name for the service"
verify_service_name "$SERVICE"
service_backup_unset_public_key_encryption "$SERVICE" # TODO: [22.03.2024 by Mykola]
}
service-backup-unset-encryption-cmd "$@"

View File

@@ -17,9 +17,9 @@ service-clone-cmd() {
#F -m|--memory MEMORY, container memory limit in megabytes (default: unlimited)
#F -N|--initial-network INITIAL_NETWORK, the initial network to attach the service to
#F -p|--password PASSWORD, override the user-level service password
#F -P|--post-create-network NETWORKS, a comman-separated list of networks to attach the service container to after service creation
#F -P|--post-create-network NETWORKS, a comma-separated list of networks to attach the service container to after service creation
#F -r|--root-password PASSWORD, override the root-level service password
#F -S|--post-start-network NETWORKS, a comman-separated list of networks to attach the service container to after service start
#F -S|--post-start-network NETWORKS, a comma-separated list of networks to attach the service container to after service start
#F -s|--shm-size SHM_SIZE, override shared memory size for $PLUGIN_COMMAND_PREFIX docker container
declare desc="create container <new-name> then copy data from <name> into <new-name>"
local cmd="$PLUGIN_COMMAND_PREFIX:clone" argv=("$@")

View File

@@ -14,7 +14,7 @@ service-create-cmd() {
#E export ${PLUGIN_VARIABLE}_IMAGE_VERSION="${PLUGIN_IMAGE_VERSION}"
#E dokku $PLUGIN_COMMAND_PREFIX:create lollipop
#E you can also specify custom environment variables to start
#E the ${PLUGIN_COMMAND_PREFIX} service in semi-colon separated form.
#E the ${PLUGIN_COMMAND_PREFIX} service in semicolon-separated form.
#E export ${PLUGIN_VARIABLE}_CUSTOM_ENV="USER=alpha;HOST=beta"
#E dokku $PLUGIN_COMMAND_PREFIX:create lollipop
#A service, service to run command against
@@ -25,9 +25,9 @@ service-create-cmd() {
#F -m|--memory MEMORY, container memory limit in megabytes (default: unlimited)
#F -N|--initial-network INITIAL_NETWORK, the initial network to attach the service to
#F -p|--password PASSWORD, override the user-level service password
#F -P|--post-create-network NETWORKS, a comman-separated list of networks to attach the service container to after service creation
#F -P|--post-create-network NETWORKS, a comma-separated list of networks to attach the service container to after service creation
#F -r|--root-password PASSWORD, override the root-level service password
#F -S|--post-start-network NETWORKS, a comman-separated list of networks to attach the service container to after service start
#F -S|--post-start-network NETWORKS, a comma-separated list of networks to attach the service container to after service start
#F -s|--shm-size SHM_SIZE, override shared memory size for $PLUGIN_COMMAND_PREFIX docker container
declare desc="create a $PLUGIN_SERVICE service"
local cmd="$PLUGIN_COMMAND_PREFIX:create" argv=("$@")

View File

@@ -8,7 +8,7 @@ source "$(dirname "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")/functions"
service-expose-cmd() {
#E expose the service on the service's normal ports, allowing access to it from the public interface (0.0.0.0)
#E dokku $PLUGIN_COMMAND_PREFIX:expose lollipop ${PLUGIN_DATASTORE_PORTS[@]}
#E expose the service on the service's normal ports, with the first on a specified ip adddress (127.0.0.1)
#E expose the service on the service's normal ports, with the first on a specified ip address (127.0.0.1)
#E dokku $PLUGIN_COMMAND_PREFIX:expose lollipop 127.0.0.1:${PLUGIN_DATASTORE_PORTS[@]}
#A service, service to run command against
#A ports, a list of ports to run against

View File

@@ -15,9 +15,9 @@ service-upgrade-cmd() {
#F -i|--image IMAGE, the image name to start the service with
#F -I|--image-version IMAGE_VERSION, the image version to start the service with
#F -N|--initial-network INITIAL_NETWORK, the initial network to attach the service to
#F -P|--post-create-network NETWORKS, a comman-separated list of networks to attach the service container to after service creation
#F -P|--post-create-network NETWORKS, a comma-separated list of networks to attach the service container to after service creation
#F -R|--restart-apps "true", whether or not to force an app restart (default: false)
#F -S|--post-start-network NETWORKS, a comman-separated list of networks to attach the service container to after service start
#F -S|--post-start-network NETWORKS, a comma-separated list of networks to attach the service container to after service start
#F -s|--shm-size SHM_SIZE, override shared memory size for $PLUGIN_COMMAND_PREFIX docker container
declare desc="upgrade service <service> to the specified versions"
local cmd="$PLUGIN_COMMAND_PREFIX:upgrade" argv=("$@")

View File

@@ -48,7 +48,7 @@ teardown() {
assert_output_contains bridge 0
assert_output_contains custom-network
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.ls -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.Aliases}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.ls -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.DNSNames}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
echo "output: $output"
echo "status: $status"
assert_success
@@ -120,7 +120,7 @@ teardown() {
assert_output_contains custom-network
assert_output_contains bridge
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.ls -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.Aliases}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.ls -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.DNSNames}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
echo "output: $output"
echo "status: $status"
assert_success
@@ -192,7 +192,7 @@ teardown() {
assert_output_contains bridge
assert_output_contains custom-network
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.ls -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.Aliases}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.ls -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.DNSNames}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
echo "output: $output"
echo "status: $status"
assert_success
@@ -258,7 +258,7 @@ teardown() {
assert_output_contains bridge
assert_output_contains custom-network
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.lsa -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.Aliases}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
run docker inspect dokku.$PLUGIN_COMMAND_PREFIX.lsa -f '{{range $net,$v := .NetworkSettings.Networks}}{{range $k,$alias := $v.DNSNames}}{{printf "alias:%s\n" $alias}}{{end}}{{end}}'
echo "output: $output"
echo "status: $status"
assert_success

View File

@@ -1,4 +1,5 @@
# SC1090 - Can't follow non-constant source. Use a directive to specify location - https://github.com/koalaman/shellcheck/wiki/SC1090
# SC1091 - Not following - <https://github.com/koalaman/shellcheck/wiki/SC1091>
# SC2034 - Variable appears unused. Verify it or export it - https://github.com/koalaman/shellcheck/wiki/SC2034
# SC2155 - Declare and assign separately to avoid masking return values - https://github.com/koalaman/shellcheck/wiki/SC2155
# SC2206 - Quote to prevent word splitting/globbing, or split robustly with mapfile or read -a - https://github.com/koalaman/shellcheck/wiki/SC2206