From d1aa1253ce96da855c9bdbfef023da6716720a7a Mon Sep 17 00:00:00 2001 From: Mario Kahlhofer Date: Mon, 29 Jul 2024 15:34:43 +0200 Subject: [PATCH] TR-785 Remove Jenkinsfile and reference container image from GHCR --- Jenkinsfile | 47 --------------------------------------------- README.md | 3 +-- pod-definition.yaml | 33 ------------------------------- 3 files changed, 1 insertion(+), 82 deletions(-) delete mode 100644 Jenkinsfile delete mode 100644 pod-definition.yaml diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index a98c549..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,47 +0,0 @@ -pipeline { - agent { - kubernetes { - cloud 'linux-amd64' - defaultContainer 'python-node' - yamlFile 'pod-definition.yaml' - } - } - - options { - buildDiscarder(logRotator(numToKeepStr: '10')) - disableConcurrentBuilds() - timeout(time: 3, unit: 'HOURS') - timestamps() - ansiColor('xterm') - } - - stages { - stage('hooks') { - environment { - RPY2_CFFI_MODE = 'ABI' - } - steps { - sh 'git config --global --add safe.directory $PWD' - sh 'git status' - dir('./src/honeyfront') { - sh 'npm install' - } - dir('./src/honeyback') { - sh 'poetry install --with hooks,analytics,docker' - sh 'poetry run pre-commit run --all-files' - } - } - } - - stage('build') { - environment { - DOCKER_BUILDKIT = '1' - } - steps { - container('docker') { - sh 'docker build -t honeyquest .' - } - } - } - } -} diff --git a/README.md b/README.md index ee19da2..8314237 100644 --- a/README.md +++ b/README.md @@ -23,8 +23,7 @@ Use the Docker image to start Honeyquest. Append the `--help` argument to see all available options. ```sh -docker build -t honeyquest . -docker run -it -p 3000:3000 -v "$(pwd)/query-database:/opt/honeyquest/data" honeyquest --data /opt/honeyquest/data +docker run -it -p 3000:3000 -v "$(pwd)/query-database:/opt/honeyquest/data" ghcr.io/dynatrace-oss/honeyquest --data /opt/honeyquest/data ``` Then, navigate to 🌍 [localhost:3000](http://localhost:3000) in your browser. diff --git a/pod-definition.yaml b/pod-definition.yaml deleted file mode 100644 index 2559c49..0000000 --- a/pod-definition.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: v1 -kind: Pod -spec: - containers: - - name: python-node - image: docker.io/nikolaik/python-nodejs:python3.10-nodejs20@sha256:97f8a87d28786db28a2796ca3932a52aaff75b703f9020a29fd6fc4387f64b47 - imagePullPolicy: Always - tty: true - args: - - "cat" - resources: - requests: - cpu: "1" - memory: "1Gi" - limits: - cpu: "2" - memory: "4Gi" - - name: docker - image: registry.lab.dynatrace.org/jci/ubuntu18-amd64-docker - imagePullPolicy: Always - tty: true - args: - - "cat" - securityContext: - # required to interact with docker daemon - privileged: true - resources: - requests: - cpu: "1" - memory: "1Gi" - limits: - cpu: "2" - memory: "4Gi"