Browse Source

updated jenkinsfile etc

main
Linux Lenape 2 weeks ago
parent
commit
8baaf188c8
  1. 8
      Dockerfile
  2. 75
      Jenkinsfile
  3. 19
      compose.bash
  4. 20
      compose.yaml

8
Dockerfile

@ -0,0 +1,8 @@
FROM nginx:latest
##USER www-data
WORKDIR /usr/share/nginx/html
COPY --chown=www-data:www-data --chmod=755 . .

75
Jenkinsfile vendored

@ -0,0 +1,75 @@
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'
}
}
}
stage('prune') {
agent {
label "xochi"
}
steps {
dir('.') {
sh 'docker system prune -a -f'
}
}
}
}}

19
compose.bash

@ -0,0 +1,19 @@
#!/bin/bash
##
reset
clear
##
set -e
set -x
##
docker compose down --remove-orphans
docker compose up --build -d

20
compose.yaml

@ -0,0 +1,20 @@
services:
clocks.jacquesingram.online:
container_name: clocks.jacquesingram.online
image: jacqueskingram/clocks.jacquesingram.online
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "8080:80"
Loading…
Cancel
Save