diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100755 index 0000000..eaeee3c --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,55 @@ +pipeline { + + agent none + + options { + + disableConcurrentBuilds(abortPrevious: true) + + buildDiscarder(logRotator(numToKeepStr: '1')) + } + + stages { + + + stage('docker compose build') { + + agent { + + label "xochi" + + } + + steps { + + dir('.') { + + sh 'docker compose build' + + } + + } + + } + + stage('docker compose push') { + + agent { + + label "xochi" + + } + + steps { + + dir('.') { + + sh 'docker compose push' + + } + + } + + } + +}} diff --git a/compose.bash b/compose.bash new file mode 100755 index 0000000..87be17f --- /dev/null +++ b/compose.bash @@ -0,0 +1,31 @@ +#!/bin/bash + +## + +set -e + +set -x + +## + +reset + +clear + + +## + + +previousDir=`pwd` + +cd src/main/resources/templates/ + +bash cascade.bash + +cd $previousDir + +## + +docker compose down --remove-orphans + +docker compose up --build -d diff --git a/compose.yaml b/compose.yaml new file mode 100755 index 0000000..5e34a2f --- /dev/null +++ b/compose.yaml @@ -0,0 +1,31 @@ +services: + + shinobi-notus-react-dashboard: + + container_name: shinobi-notus-react-dashboard + + image: jacqueskingram/test-dashboard + + build: + + context: . + + dockerfile: Dockerfile + + restart: unless-stopped + + ports: + + - "8080:80" + + environment: + + DB_HOST: garuda-agile-ops-database + + DB_PORT: 3306 + + DB_NAME: garudaops + + DB_USER: garudaops + + DB_PASS: garudaops