From 3ccfa81155eb25bbb9c84f94ec432cb93c4ba7a7 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Thu, 20 Jul 2023 12:15:18 +0200 Subject: [PATCH] remove deprecated image --- infrastructure/devops-build/build.py | 51 ------------------- infrastructure/devops-build/image/Dockerfile | 6 --- infrastructure/devops-build/test/Dockerfile | 11 ---- .../devops-build/test/serverspec.edn | 1 - 4 files changed, 69 deletions(-) delete mode 100644 infrastructure/devops-build/build.py delete mode 100644 infrastructure/devops-build/image/Dockerfile delete mode 100644 infrastructure/devops-build/test/Dockerfile delete mode 100644 infrastructure/devops-build/test/serverspec.edn diff --git a/infrastructure/devops-build/build.py b/infrastructure/devops-build/build.py deleted file mode 100644 index 94000c8..0000000 --- a/infrastructure/devops-build/build.py +++ /dev/null @@ -1,51 +0,0 @@ -from os import environ -from pybuilder.core import task, init -from ddadevops import * - -name = "devops-build" -MODULE = "image" -PROJECT_ROOT_PATH = "../.." -version = "4.0.0-dev73" - - -@init -def initialize(project): - - input = { - "name": name, - "module": MODULE, - "stage": "notused", - "project_root_path": PROJECT_ROOT_PATH, - "build_types": ["IMAGE"], - "mixin_types": [], - } - - project.build_depends_on("ddadevops>=4.0.0") - - build = DevopsImageBuild(project, input) - build.initialize_build_dir() - - -@task -def image(project): - build = get_devops_build(project) - build.image() - - -@task -def drun(project): - build = get_devops_build(project) - build.drun() - - -@task -def test(project): - build = get_devops_build(project) - build.test() - - -@task -def publish(project): - build = get_devops_build(project) - build.dockerhub_login() - build.dockerhub_publish() diff --git a/infrastructure/devops-build/image/Dockerfile b/infrastructure/devops-build/image/Dockerfile deleted file mode 100644 index 4124d8a..0000000 --- a/infrastructure/devops-build/image/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM docker:latest - -RUN set -eux; -RUN apk add --no-cache build-base rust python3 python3-dev py3-pip py3-setuptools py3-wheel libffi-dev openssl-dev cargo bash git; -RUN python3 -m pip install -U pip; -RUN pip3 install pybuilder ddadevops deprecation dda-python-terraform boto3 pyyaml; diff --git a/infrastructure/devops-build/test/Dockerfile b/infrastructure/devops-build/test/Dockerfile deleted file mode 100644 index 99205bc..0000000 --- a/infrastructure/devops-build/test/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM devops-build - -RUN apk update -RUN apk add curl openjdk8 - -RUN curl -L -o /tmp/serverspec.jar \ - https://github.com/DomainDrivenArchitecture/dda-serverspec-crate/releases/download/2.0.0/dda-serverspec-standalone.jar - -COPY serverspec.edn /tmp/serverspec.edn - -RUN java -jar /tmp/serverspec.jar /tmp/serverspec.edn -v diff --git a/infrastructure/devops-build/test/serverspec.edn b/infrastructure/devops-build/test/serverspec.edn deleted file mode 100644 index 0967ef4..0000000 --- a/infrastructure/devops-build/test/serverspec.edn +++ /dev/null @@ -1 +0,0 @@ -{}