From 674cb2b6ebc9889c9d333e97d2f964451748e485 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 12 Oct 2022 22:41:47 -0400 Subject: [PATCH] docs: document development in a dev container The process is roughly the same as in a VM. --- docs/development/testing.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/development/testing.md b/docs/development/testing.md index 2338df39b..e19554676 100644 --- a/docs/development/testing.md +++ b/docs/development/testing.md @@ -39,6 +39,25 @@ make copyfiles make go-build-plugin copyplugin PLUGIN_NAME=apps ``` +### VSCode Dev Container + +- Open Dokku in a VSCode DevContainer +- Run the following in the VSCode terminal to setup tests and execute them: + + ```shell + make ci-dependencies setup-deploy-tests + ``` + +After making changes to your local Dokku clone, don't forget to update the Vagrant Dokku install. + +```shell +# update vagrant dokku install from local git clone +make copyfiles + +# build a specific plugin +make go-build-plugin copyplugin PLUGIN_NAME=apps +``` + ### Executing tests Execute the entire test suite (linter, bats tests, and app deployment tests):