Commit Graph
100 Commits
Author SHA1 Message Date
Jose Diaz-Gonzalez 26a536bc9b feat: log the output of the do directory 2023-02-16 16:01:59 -05:00
Jose Diaz-Gonzalez 635f9c1bc5 chore: remove unused function 2023-02-16 15:49:37 -05:00
Jose Diaz-Gonzalez 47fddf1899 chore: remove extra cleanup line
Logs are already zero'd out
2023-02-16 15:49:16 -05:00
Jose Diaz-Gonzalez 7b1a2fa908 fix: add missing cleanup step 2023-02-16 15:49:02 -05:00
Jose Diaz-Gonzalez 1eada6a5e8 fix: purge log files and droplet-agent
This should fix a few of the warnings/errors shown during the image check process.
2023-02-16 15:32:55 -05:00
Jose Diaz-Gonzalez f1152cd6b7 fix: validate the packer image 2023-02-16 15:10:49 -05:00
Jose Diaz-Gonzalez 55c3b73f35 feat: run image check at the end of the build 2023-02-16 15:10:43 -05:00
Jose Diaz-Gonzalez 1eda16d186 refactor: simplify provisioning 2023-02-16 15:08:49 -05:00
Jose Diaz-Gonzalez b2fbefb6d3 refactor: remove use of format function 2023-02-16 15:07:58 -05:00
Jose Diaz-Gonzalez 11743afbf0 chore: drop ability to set a custom base image
We'll only ever test against the latest LTS.
2023-02-16 15:07:25 -05:00
Jose Diaz-Gonzalez d40ee36348 feat: update all base packages 2023-02-16 15:07:03 -05:00
Jose Diaz-Gonzalez c24e0d3888 feat: ensure we have a custom landing page for folks to view when going to their droplet ip/vhost 2023-02-16 15:00:37 -05:00
Jose Diaz-Gonzalez 360940f68e fix: use https urls 2023-02-16 14:53:58 -05:00
Jose Diaz-Gonzalez 4ce5ba6a75 refactor: unify cleanup script with the one used by the DO marketplace 2023-02-16 14:50:07 -05:00
Jose Diaz-Gonzalez 197bd0c864 feat: remove the default nginx site in built images
This is confusing for users and shouldn't really ever exist.
2023-02-16 14:49:13 -05:00
Jose Diaz-Gonzalez ba06bac1b9 feat: enable exit on error 2023-02-16 14:48:43 -05:00
Jose Diaz-Gonzalez 9dc6d8e130 refactor: cleanup ufw rules
- use nginx ful rules
- limit ssh by default
- force enable ufw
- drop access to 2375 and 2376 (this allows passwordless docker access...)
2023-02-16 14:47:52 -05:00
Jose Diaz-Gonzalez afe042de46 docs: cleanup motd
- standardize text with the sample marketplace app
- remove reference to web server (its unavailable in newer versions)
2023-02-16 14:46:39 -05:00
Jose Diaz-Gonzalez 358fb72baf fix: run build in nyc1
NYC1 is the only DC where the smallest size droplet is available.
2023-02-16 14:33:26 -05:00
Jose Diaz-Gonzalez 98d6a3b53e fix: run build on smallest image
This will allow anyone to use the resulting image, and not just those with at least 2GB of ram.
2023-02-16 14:32:30 -05:00
Jose Diaz-Gonzalez 9ebe708741 fix: run packer validate with access to the DO token
Without this, it fails when initializing the builder.
2023-02-16 14:31:41 -05:00
Jose Diaz-Gonzalez ba56474f15 fix: correct position of post-provisioner block 2023-02-16 14:26:29 -05:00
Jose Diaz-Gonzalez ec642788d3 fix: correct SC2004 2023-02-16 14:25:40 -05:00
Jose Diaz-Gonzalez adf98b53f5 chore: run shfmt 2023-02-16 14:22:44 -05:00
Jose Diaz-Gonzalez ae1b695fc5 feat: build digitalocean images in ci on release
While these don't (yet?) get submitted to the Digitalocean marketplace, it should bring us most of the way of making that possible.

The next step would be to somehow get notifications of the new image snapshot sent... Somewhere and have the lovely DO folks test/release it for us.
2023-02-16 14:21:36 -05:00
Jose Diaz-Gonzalez 6c099c4ad0 tests: lint the packer config in CI 2023-02-16 14:19:42 -05:00
Jose Diaz-Gonzalez 96c737eae4 refactor: update digitalocean image building to match what Digitalocean does
The scripts run/installed on the server are based on what was given to me by Digitalocean in 2019, so they may have diverged a bit since.
2023-02-16 14:19:10 -05:00
josegonzalez eba867a3bb Merge pull request #5676 from dokku/dependabot/pip/tests/apps/python-flask/flask-2.2.3
chore(deps): bump flask from 2.2.2 to 2.2.3 in /tests/apps/python-flask
2023-02-16 06:14:04 -05:00
josegonzalez 2769428405 Merge pull request #5679 from dokku/fix-paths-on-homepage
Revert invalid replacement in homepage html path objects
2023-02-16 01:49:07 -05:00
Jose Diaz-Gonzalez 9b44e9e1fb fix: revert invalid replacement in homepage html path objects 2023-02-16 01:48:49 -05:00
josegonzalez 19b4e08c3b Merge pull request #5678 from dokku/cleanup-home-install
Cleanup docs on homepage for installation
2023-02-16 01:39:36 -05:00
Jose Diaz-Gonzalez faa18ab8e1 docs: cleanup docs on homepage for installation
- Use linebreaks in a standard way
- Use the short url to get the bootstrap.sh script
- Store public key in a variable and reference that variable to avoid word-wrapping
- Use a shorter final sentence
- Remove console.log
2023-02-16 01:39:23 -05:00
josegonzalez cf1aab8c23 Merge pull request #5675 from dokku/new-release-types
Add new sections to release notes
2023-02-16 01:29:06 -05:00
Jose Diaz-Gonzalez 9c7968d924 chore: run shfmt 2023-02-16 01:28:53 -05:00
Jose Diaz-Gonzalez e8569f7054 feat: add new sections to release notes
- removals: things being removed in this release
- deprecations: things being deprecated in this release, for later removal
- dependencies: dependency updates (typically by dependabot)
2023-02-16 01:28:21 -05:00
josegonzalez c9efe22844 Merge pull request #5674 from dokku/fix-changelog-generation
Use authenticated requests to the github api in order to generate changelogs for a release
2023-02-15 22:31:24 -05:00
Jose Diaz-Gonzalez 46ea507182 fix: use authenticated requests to the github api in order to generate changelogs for a release 2023-02-15 22:30:39 -05:00
josegonzalez 1a39e72b14 Merge pull request #5671 from dokku/dependabot/pip/docs/_build/soupsieve-2.4
chore(deps): bump soupsieve from 2.3.2.post1 to 2.4 in /docs/_build
2023-02-15 18:39:15 -05:00
josegonzalez 7638ed11d6 Merge pull request #5666 from dokku/dependabot/docker/tests/apps/go-fail-predeploy/golang-1.20.1
chore(deps): bump golang from 1.20.0 to 1.20.1 in /tests/apps/go-fail-predeploy
2023-02-15 17:42:36 -05:00
josegonzalez f2b5531eb0 Merge pull request #5672 from dokku/dependabot/pip/tests/apps/dockerfile-release/django-4.1.7
chore(deps): bump django from 4.1.6 to 4.1.7 in /tests/apps/dockerfile-release
2023-02-15 17:04:40 -05:00
josegonzalez 537f6baa09 Merge pull request #5673 from dokku/josegonzalez-patch-1
Cancel in progress builds when a new commit is pushed
2023-02-15 16:34:52 -05:00
josegonzalez 4e905cdf71 tests: cancel in progress builds when a new commit is pushed 2023-02-15 16:34:41 -05:00
josegonzalez 1feb046645 Merge pull request #5670 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-no-tini/golang-1.20.1
chore(deps): bump golang from 1.20.0 to 1.20.1 in /tests/apps/zombies-dockerfile-no-tini
2023-02-15 16:32:57 -05:00
josegonzalez ec2310e08e Merge pull request #5669 from dokku/dependabot/docker/tests/apps/go-fail-postdeploy/golang-1.20.1
chore(deps): bump golang from 1.20.0 to 1.20.1 in /tests/apps/go-fail-postdeploy
2023-02-15 16:32:50 -05:00
josegonzalez d020e5e860 Merge pull request #5668 from dokku/dependabot/docker/tests/apps/gogrpc/golang-1.20.1
chore(deps): bump golang from 1.20.0 to 1.20.1 in /tests/apps/gogrpc
2023-02-15 16:32:37 -05:00
josegonzalez 84749d5241 Merge pull request #5667 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-tini/golang-1.20.1
chore(deps): bump golang from 1.20.0 to 1.20.1 in /tests/apps/zombies-dockerfile-tini
2023-02-15 16:32:29 -05:00
josegonzalez 3e4635d710 Merge pull request #5665 from dokku/dependabot/composer/tests/apps/php/heroku/heroku-buildpack-php-231
chore(deps-dev): bump heroku/heroku-buildpack-php from 230 to 231 in /tests/apps/php
2023-02-15 16:31:36 -05:00
josegonzalez acaa21d231 Merge pull request #5664 from dokku/dependabot/pip/tests/apps/python-flask/werkzeug-2.2.3
chore(deps): bump werkzeug from 2.2.2 to 2.2.3 in /tests/apps/python-flask
2023-02-15 16:31:07 -05:00
josegonzalez a5cd973156 Merge pull request #5559 from dokku/5556-app-json-extract
Move app.json extraction from built image artifact to source code
2023-02-14 04:58:34 -05:00
Jose Diaz-Gonzalez 87828515a1 fix: respect the build-dir in app-json extraction
Because the app-json extraction happens before the build-dir is set, it doesn't end up respecting the value, and thus the user might get the wrong app.json file.

This takes advantage of path.Join()'s default of ignoring empty paths.
2023-02-14 03:56:28 -05:00
Jose Diaz-Gonzalez 0eccfe8ba4 tests: add test ensuring the build-dir property is supported 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez af84293c3e fix: ensure we migrate data for all golang plugins 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez a8283824a5 fix: remove extra import 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez 0066b09405 fix: remove duplicate func as a result of rebase 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez e78fb84953 fix: ensure we create the app-json data directory for the app on app creation 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez b83e5fff64 fix: add missing triggers 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez 2ccc78023c fix: run go get to ensure we fetch the correct dependencies 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez 09eb0b2c8f refactor: move app.json extraction up to core-post-extract 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez 173434ef34 chore: reorder functions 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez 3f82c525ad chore: use helper to check if there is a Procfile 2023-02-14 03:08:02 -05:00
Jose Diaz-Gonzalez a53ead6c64 chore: rename function 2023-02-14 03:08:02 -05:00
josegonzalez c1da419d01 Merge pull request #5663 from dokku/fix-builder
Update build-base docker image to ensure we can build on all supported platforms without stalling
2023-02-14 03:02:12 -05:00
Jose Diaz-Gonzalez b5b50ace5e fix: install sudo 2023-02-14 01:16:42 -05:00
Jose Diaz-Gonzalez 8650977918 chore: drop already installed packages
These are installed in the base image.
2023-02-14 01:16:06 -05:00
Jose Diaz-Gonzalez 1a1590c299 fix: update build-base docker image to ensure we can build on all supported platforms without stalling
The image can now be built via:

    docker buildx build --platform linux/arm,linux/arm64,linux/amd64 --progress plain --push --tag dokku/build-base:latest --tag dokku/build-base:0.0.1 -f contrib/build-base.Dockerfile .
2023-02-14 01:14:10 -05:00
josegonzalez 3d930b1a3d Merge pull request #5661 from dokku/dependabot/pip/docs/_build/markdown-gte-3.2.1-and-lt-3.5
chore(deps): update markdown requirement from <3.4,>=3.2.1 to >=3.2.1,<3.5 in /docs/_build
2023-02-13 14:37:58 -05:00
josegonzalez 83fa48323f Merge pull request #5659 from dokku/remove-deprecated-functions
Remove deprecated functions and commands
2023-02-13 14:37:38 -05:00
Jose Diaz-Gonzalez f84a650849 chore: remove deprecated nginx commands 2023-02-12 13:20:45 -05:00
Jose Diaz-Gonzalez 954b2d9d34 chore: remove deprecated proxy functions 2023-02-12 13:20:24 -05:00
Jose Diaz-Gonzalez 59fde3a317 chore: remove deprecated nginx commands 2023-02-12 13:12:47 -05:00
Jose Diaz-Gonzalez 577aafb683 chore: remove deprecated git functions 2023-02-12 13:09:20 -05:00
Jose Diaz-Gonzalez e628e21879 chore: remove deprecated --rm-container and--rm global flags 2023-02-12 13:09:00 -05:00
Jose Diaz-Gonzalez d27c8f09d1 chore: remove deprecated common functions 2023-02-12 13:08:45 -05:00
Jose Diaz-Gonzalez 7f2a66df88 chore: remove deprecated app functions
These were deprecated in 0.20.0 and are unused in Dokku's official codebases.
2023-02-12 13:02:23 -05:00
josegonzalez 18c983d77a Merge pull request #5658 from mpslanker/debian-docs-update
#5644 - Removed reference to ubuntu (lines 16-18)
2023-02-12 12:17:11 -05:00
josegonzalez 46b81f5c46 Merge pull request #5308 from dokku/haproxy-plugin 2023-02-12 00:02:09 -05:00
Jose Diaz-Gonzalez d1c4cc89bf docs: fix plugin name in haproxy docs 2023-02-11 20:55:59 -05:00
Jose Diaz-Gonzalez 4ae64b23c6 fix: update test to get the correct label for testing if ssl redirects are working properly 2023-02-11 20:55:20 -05:00
Jose Diaz-Gonzalez 710b1db6be chore: run shfmt 2023-02-11 17:42:13 -05:00
Jose Diaz-Gonzalez 070f643a01 refactor: drop url management and sync logic with traefik plugin 2023-02-11 17:40:41 -05:00
Jose Diaz-Gonzalez 78d66dc68a docs: note that https:443 is now supported 2023-02-11 17:40:05 -05:00
Jose Diaz-Gonzalez 203dfe249b fix: run shfmt 2023-02-11 06:24:27 -05:00
Jose Diaz-Gonzalez cbd3c43176 feat: add letsencrypt support to haproxy plugin 2023-02-11 06:22:02 -05:00
Jose Diaz-Gonzalez 537d8321e4 chore: update easy-haproxy version to latest 2023-02-11 06:11:23 -05:00
Jose Diaz-Gonzalez 62004eab56 chore: sync plugin version 2023-02-11 06:11:10 -05:00
Jose Diaz-Gonzalez ab9e2b101e feat: install dev env tools correctly 2023-02-11 06:09:50 -05:00
Jose Diaz-Gonzalez f02f19652e fix: set default scheme correctly 2023-02-11 06:09:50 -05:00
Jose Diaz-Gonzalez 35c6d61a04 feat: test all compose-based proxy implementations with a dockerfile app
This allows the tests to run on arm systems.
2023-02-11 06:09:50 -05:00
Jose Diaz-Gonzalez c14154e5f7 feat: add a test for log levels 2023-02-11 06:09:50 -05:00
Jose Diaz-Gonzalez 40cb28287f fix: gate compose usage behind compose check 2023-02-11 06:09:50 -05:00
Jose Diaz-Gonzalez e1f9e44e51 fix: set correct help output 2023-02-11 06:09:50 -05:00
Jose Diaz-Gonzalez 212389980e feat: add initial tests for haproxy plugin 2023-02-11 06:09:50 -05:00
Jose Diaz-Gonzalez a249dea217 fix: add alias 2023-02-11 06:09:49 -05:00
Jose Diaz-Gonzalez 1a54e2263b fix: use correct variable name 2023-02-11 06:08:56 -05:00
Jose Diaz-Gonzalez fd09beaf48 feat: add the ability to set the haproxy log level 2023-02-11 06:08:56 -05:00
Jose Diaz-Gonzalez 8bd4f66bec chore: update to latest version 2023-02-11 06:08:56 -05:00
Jose Diaz-Gonzalez 3871a35de6 fix: respect EASYHAPROXY_LABEL_PREFIX 2023-02-11 06:08:56 -05:00
Jose Diaz-Gonzalez 44543c979a docs: add requirement for docker-compose-plugin 2023-02-11 06:08:56 -05:00
Jose Diaz-Gonzalez 49cd46df1d fix: properly name things 2023-02-11 06:08:56 -05:00
Jose Diaz-Gonzalez 237aae9eec feat: first pass at haproxy plugin implementation 2023-02-11 06:08:56 -05:00