introduce the new docker image build
This commit is contained in:
parent
064c2d2766
commit
3f2ec114d4
3 changed files with 4 additions and 1 deletions
2
build.py
2
build.py
|
@ -28,7 +28,7 @@ use_plugin("python.distutils")
|
||||||
default_task = "publish"
|
default_task = "publish"
|
||||||
|
|
||||||
name = "ddadevops"
|
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"
|
summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud"
|
||||||
description = __doc__
|
description = __doc__
|
||||||
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]
|
||||||
|
|
|
@ -2,6 +2,7 @@ from subprocess import run
|
||||||
from .python_util import filter_none
|
from .python_util import filter_none
|
||||||
from pkg_resources import *
|
from pkg_resources import *
|
||||||
from .devops_terraform_build import DevopsBuild, create_devops_build_config
|
from .devops_terraform_build import DevopsBuild, create_devops_build_config
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def create_devops_docker_build_config(stage,
|
def create_devops_docker_build_config(stage,
|
||||||
|
@ -40,6 +41,7 @@ class DevopsDockerBuild(DevopsBuild):
|
||||||
return '/'.join(filter_none(mylist)) + '/'
|
return '/'.join(filter_none(mylist)) + '/'
|
||||||
|
|
||||||
def copy_build_resource_file_from_package(self, name):
|
def copy_build_resource_file_from_package(self, name):
|
||||||
|
run('mkdir -p ' + self.build_path(), shell=True)
|
||||||
my_data = resource_string(
|
my_data = resource_string(
|
||||||
__name__, "src/main/resources/docker/" + name)
|
__name__, "src/main/resources/docker/" + name)
|
||||||
with open(self.build_path() + '/' + name, "w") as output_file:
|
with open(self.build_path() + '/' + name, "w") as output_file:
|
||||||
|
|
|
@ -5,6 +5,7 @@ from pkg_resources import *
|
||||||
from python_terraform import *
|
from python_terraform import *
|
||||||
from .python_util import filter_none
|
from .python_util import filter_none
|
||||||
from .devops_build import DevopsBuild, create_devops_build_config
|
from .devops_build import DevopsBuild, create_devops_build_config
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def create_devops_terraform_build_config(stage,
|
def create_devops_terraform_build_config(stage,
|
||||||
|
|
Loading…
Reference in a new issue