From 3f2ec114d4ae93b95dc0d0c881a535a53dbb56b1 Mon Sep 17 00:00:00 2001 From: jem Date: Sat, 18 Apr 2020 11:42:24 +0200 Subject: [PATCH] introduce the new docker image build --- build.py | 2 +- src/main/python/ddadevops/devops_docker_build.py | 2 ++ src/main/python/ddadevops/devops_terraform_build.py | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index be30624..ba648e9 100644 --- a/build.py +++ b/build.py @@ -28,7 +28,7 @@ use_plugin("python.distutils") default_task = "publish" name = "ddadevops" -version = "0.6.0.dev6" +version = "0.6.0.dev9" summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud" description = __doc__ authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")] diff --git a/src/main/python/ddadevops/devops_docker_build.py b/src/main/python/ddadevops/devops_docker_build.py index c85523e..10efd80 100644 --- a/src/main/python/ddadevops/devops_docker_build.py +++ b/src/main/python/ddadevops/devops_docker_build.py @@ -2,6 +2,7 @@ from subprocess import run from .python_util import filter_none from pkg_resources import * from .devops_terraform_build import DevopsBuild, create_devops_build_config +import sys def create_devops_docker_build_config(stage, @@ -40,6 +41,7 @@ class DevopsDockerBuild(DevopsBuild): return '/'.join(filter_none(mylist)) + '/' def copy_build_resource_file_from_package(self, name): + run('mkdir -p ' + self.build_path(), shell=True) my_data = resource_string( __name__, "src/main/resources/docker/" + name) with open(self.build_path() + '/' + name, "w") as output_file: diff --git a/src/main/python/ddadevops/devops_terraform_build.py b/src/main/python/ddadevops/devops_terraform_build.py index d001e75..8ec04cd 100644 --- a/src/main/python/ddadevops/devops_terraform_build.py +++ b/src/main/python/ddadevops/devops_terraform_build.py @@ -5,6 +5,7 @@ from pkg_resources import * from python_terraform import * from .python_util import filter_none from .devops_build import DevopsBuild, create_devops_build_config +import sys def create_devops_terraform_build_config(stage,