test-dashboard
All checks were successful
gitea-lenape/dashboard-hw/pipeline/head This commit looks good
All checks were successful
gitea-lenape/dashboard-hw/pipeline/head This commit looks good
This commit is contained in:
55
Jenkinsfile
vendored
Executable file
55
Jenkinsfile
vendored
Executable file
@@ -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'
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}}
|
31
compose.bash
Executable file
31
compose.bash
Executable file
@@ -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
|
31
compose.yaml
Executable file
31
compose.yaml
Executable file
@@ -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
|
Reference in New Issue
Block a user