emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dockerfile-mode 11c43de04b: Add --pull and --force-rm swit


From: ELPA Syncer
Subject: [nongnu] elpa/dockerfile-mode 11c43de04b: Add --pull and --force-rm switches toggling defcustoms.
Date: Sun, 20 Feb 2022 09:58:13 -0500 (EST)

branch: elpa/dockerfile-mode
commit 11c43de04b128b7638cd98a1e80be2b661c18fbb
Author: pataquets <amontero@tinet.org>
Commit: Drew Csillag <drew@thecsillags.com>

    Add --pull and --force-rm switches toggling defcustoms.
---
 dockerfile-mode.el | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dockerfile-mode.el b/dockerfile-mode.el
index 759e02b85c..52d04690ec 100644
--- a/dockerfile-mode.el
+++ b/dockerfile-mode.el
@@ -49,6 +49,16 @@
   :type 'boolean
   :group 'dockerfile)
 
+(defcustom dockerfile-build-force-rm nil
+  "Runs docker builder command with --force-rm switch."
+  :type 'boolean
+  :group 'dockerfile)
+
+(defcustom dockerfile-build-pull nil
+  "Runs docker builder command with --pull switch."
+  :type 'boolean
+  :group 'dockerfile)
+
 (defcustom dockerfile-build-args nil
   "List of --build-arg to pass to docker build.
 
@@ -195,11 +205,13 @@ The build string will be of the format:
   (save-buffer)
     (compilation-start
         (format
-            "%s%s%s build %s %s %s -f %s %s"
+            "%s%s%s build %s %s %s %s %s -f %s %s"
             (if dockerfile-use-buildkit "DOCKER_BUILDKIT=1 " "")
             (if dockerfile-use-sudo "sudo " "")
             dockerfile-mode-command
             (if no-cache "--no-cache" "")
+            (if dockerfile-build-force-rm "--force-rm " "")
+            (if dockerfile-build-pull "--pull " "")
             (dockerfile-tag-string image-name)
             (dockerfile-build-arg-string)
             (shell-quote-argument (dockerfile-standard-filename



reply via email to

[Prev in Thread] Current Thread [Next in Thread]