From 7d306fbc824659c1ce320d5b4551cd0bc1ebad1d Mon Sep 17 00:00:00 2001 From: Software Shinobi Date: Sun, 15 Jun 2025 16:27:05 -0400 Subject: [PATCH] automated push from the terminal --- .dockerignore | 11 ++++++++ .gitignore | 69 --------------------------------------------------- Dockerfile | 5 ++++ Jenkinsfile | 56 +++++++++++++++++++++++++++++++++++++++++ README.md | 2 -- compose.bash | 19 ++++++++++++++ compose.yaml | 17 +++++++++++++ index.html | 13 ++++++++++ readme.md | 2 ++ 9 files changed, 123 insertions(+), 71 deletions(-) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 Jenkinsfile delete mode 100644 README.md create mode 100755 compose.bash create mode 100644 compose.yaml create mode 100644 index.html create mode 100644 readme.md diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..43cb65d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +.git + +.pristine + +.trash + +.recycle + +.backup + +.template diff --git a/.gitignore b/.gitignore index 8357380..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,69 +0,0 @@ -# ---> Linux -*~ - -# temporary files which can be created if a process still has a handle open of a deleted file -.fuse_hidden* - -# KDE directory preferences -.directory - -# Linux trash folder which might appear on any partition or disk -.Trash-* - -# .nfs files are created when an open file is removed but is still being accessed -.nfs* - -# ---> Windows -# Windows thumbnail cache files -Thumbs.db -Thumbs.db:encryptable -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -# ---> macOS -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c7e06d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:latest + +WORKDIR /usr/share/nginx/html + +COPY --chown=www-data:www-data --chmod=755 . . diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..580599a --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,56 @@ +pipeline { + + agent none + + options { + + disableConcurrentBuilds(abortPrevious: true) + + buildDiscarder(logRotator(numToKeepStr: '10')) + } + + stages { + + stage('docker compose build') { + + agent { + + label "sian" + + } + + steps { + + dir('.') { + + sh 'docker compose build' + + } + + } + + } + + stage('docker compose push') { + + agent { + + label "sian" + + } + + steps { + + dir('.') { + + sh 'docker compose push' + + } + + } + + } + + } + +} diff --git a/README.md b/README.md deleted file mode 100644 index 624e4e1..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# deleteme - diff --git a/compose.bash b/compose.bash new file mode 100755 index 0000000..b72ea5d --- /dev/null +++ b/compose.bash @@ -0,0 +1,19 @@ +#!/bin/bash + +## + +reset; + +clear; + +## + +set -e; + +set -x; + +## + +docker compose down --remove-orphans + +docker compose up --build -d diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..68aea2c --- /dev/null +++ b/compose.yaml @@ -0,0 +1,17 @@ +services: + + resume.softwareshinobi.come: + + container_name: resume.softwareshinobi.com + + image: softwareshinobi/resume.softwareshinobi.com + + build: + + context: . + + dockerfile: Dockerfile + + ports: + + - 8000:80 diff --git a/index.html b/index.html new file mode 100644 index 0000000..409c455 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..95f52c4 --- /dev/null +++ b/readme.md @@ -0,0 +1,2 @@ +# www.softwareshinobi.com +