From 35042af9ec4d036b8fc3f0bd9e4f10cc719e71e0 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 19 Oct 2024 01:00:13 -0400 Subject: [PATCH] chore: skip ssh key setup when starting docker image When deploying the Dokku via Docker, ssh keys are added directly via the ssh-keys:add command, and thus we can skip this step completely (as there won't be a public key in that path). --- docker/etc/my_init.d/10_dokku_init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/etc/my_init.d/10_dokku_init b/docker/etc/my_init.d/10_dokku_init index 3561114cd..6b40e3c11 100755 --- a/docker/etc/my_init.d/10_dokku_init +++ b/docker/etc/my_init.d/10_dokku_init @@ -89,6 +89,9 @@ main() { dokku --quiet domains:set-global "$DOKKU_HOSTNAME" fi + echo "dokku dokku/skip_key_file boolean true" | debconf-set-selections + echo "dokku dokku/key_file string /root/.ssh/id_rsa.pub" | debconf-set-selections + NGINX_ROOT="/etc/nginx" if [[ -x /usr/bin/openresty ]]; then NGINX_ROOT="/usr/local/openresty/nginx/conf"