diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..24a672b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM nginx:latest + +##USER www-data + +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..ffb847c --- /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 "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 da5e525..0000000 --- a/README.md +++ /dev/null @@ -1,2 +0,0 @@ -# portal.intranet.valorantdigital.com - diff --git a/compose.bash b/compose.bash new file mode 100755 index 0000000..8a61369 --- /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..3ef7767 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,20 @@ +services: + + portal.intranet.valorantdigital.com: + + container_name: portal.intranet.valorantdigital.com + + image: softwareshinobi/portal.intranet.valorantdigital.com + + build: + + context: . + + dockerfile: Dockerfile + + restart: unless-stopped + + ports: + + - "8000:80" + diff --git a/img/background.png b/img/background.png new file mode 100644 index 0000000..50a9293 Binary files /dev/null and b/img/background.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..a67bc6e --- /dev/null +++ b/index.html @@ -0,0 +1,77 @@ + + +
+ + +