diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..0ed6303 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,6 @@ +# Default ignored files +/workspace.xml + +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..fe03d41 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,27 @@ + + + + + mysql.8 + true + nextcloud + com.mysql.cj.jdbc.Driver + jdbc:mysql://sql.xai-corp.net:3306/nextcloud2 + + + + + + + + + + + postgresql + true + production postgres database + org.postgresql.Driver + jdbc:postgresql://sql.xai-corp.net:5432/xaicorp_default + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/jenkinsSettings.xml b/.idea/jenkinsSettings.xml new file mode 100644 index 0000000..0b4abbc --- /dev/null +++ b/.idea/jenkinsSettings.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..30a0bad --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..ce075b1 --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/provisioning.iml b/.idea/provisioning.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/provisioning.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_Apps.xml b/.idea/runConfigurations/Build_Apps.xml new file mode 100644 index 0000000..ad1b739 --- /dev/null +++ b/.idea/runConfigurations/Build_Apps.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_Services.xml b/.idea/runConfigurations/Build_Services.xml new file mode 100644 index 0000000..ba7b903 --- /dev/null +++ b/.idea/runConfigurations/Build_Services.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_ansible.xml b/.idea/runConfigurations/Build_ansible.xml new file mode 100644 index 0000000..698e504 --- /dev/null +++ b/.idea/runConfigurations/Build_ansible.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_apidocjs.xml b/.idea/runConfigurations/Build_apidocjs.xml new file mode 100644 index 0000000..b98e15d --- /dev/null +++ b/.idea/runConfigurations/Build_apidocjs.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_composer.xml b/.idea/runConfigurations/Build_composer.xml new file mode 100644 index 0000000..8301a0b --- /dev/null +++ b/.idea/runConfigurations/Build_composer.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_php.xml b/.idea/runConfigurations/Build_php.xml new file mode 100644 index 0000000..6e36acc --- /dev/null +++ b/.idea/runConfigurations/Build_php.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_sslproxy.xml b/.idea/runConfigurations/Build_sslproxy.xml new file mode 100644 index 0000000..e90cacf --- /dev/null +++ b/.idea/runConfigurations/Build_sslproxy.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Build_xaicloud.xml b/.idea/runConfigurations/Build_xaicloud.xml new file mode 100644 index 0000000..40c679b --- /dev/null +++ b/.idea/runConfigurations/Build_xaicloud.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Launch_Apps.xml b/.idea/runConfigurations/Launch_Apps.xml new file mode 100644 index 0000000..803e409 --- /dev/null +++ b/.idea/runConfigurations/Launch_Apps.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Launch_Networks.xml b/.idea/runConfigurations/Launch_Networks.xml new file mode 100644 index 0000000..af9680a --- /dev/null +++ b/.idea/runConfigurations/Launch_Networks.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Launch_Services.xml b/.idea/runConfigurations/Launch_Services.xml new file mode 100644 index 0000000..093f510 --- /dev/null +++ b/.idea/runConfigurations/Launch_Services.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Launch_sslproxy.xml b/.idea/runConfigurations/Launch_sslproxy.xml new file mode 100644 index 0000000..c0ccebb --- /dev/null +++ b/.idea/runConfigurations/Launch_sslproxy.xml @@ -0,0 +1,20 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Launch_xaicloud.xml b/.idea/runConfigurations/Launch_xaicloud.xml new file mode 100644 index 0000000..d867e63 --- /dev/null +++ b/.idea/runConfigurations/Launch_xaicloud.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Recover_System.xml b/.idea/runConfigurations/Recover_System.xml new file mode 100644 index 0000000..c67fa5c --- /dev/null +++ b/.idea/runConfigurations/Recover_System.xml @@ -0,0 +1,21 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Recover_system.xml b/.idea/runConfigurations/Recover_system.xml new file mode 100644 index 0000000..c6f6bb5 --- /dev/null +++ b/.idea/runConfigurations/Recover_system.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Stop_Apps.xml b/.idea/runConfigurations/Stop_Apps.xml new file mode 100644 index 0000000..aa36ee0 --- /dev/null +++ b/.idea/runConfigurations/Stop_Apps.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Stop_Services.xml b/.idea/runConfigurations/Stop_Services.xml new file mode 100644 index 0000000..27f8e36 --- /dev/null +++ b/.idea/runConfigurations/Stop_Services.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Update_Apps.xml b/.idea/runConfigurations/Update_Apps.xml new file mode 100644 index 0000000..bdd0140 --- /dev/null +++ b/.idea/runConfigurations/Update_Apps.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Update_Containers.xml b/.idea/runConfigurations/Update_Containers.xml new file mode 100644 index 0000000..0e95a5f --- /dev/null +++ b/.idea/runConfigurations/Update_Containers.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Update_System.xml b/.idea/runConfigurations/Update_System.xml new file mode 100644 index 0000000..fbfd7a1 --- /dev/null +++ b/.idea/runConfigurations/Update_System.xml @@ -0,0 +1,24 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/config_cubox_i_xai_corp_net.xml b/.idea/runConfigurations/config_cubox_i_xai_corp_net.xml new file mode 100644 index 0000000..a68ba7b --- /dev/null +++ b/.idea/runConfigurations/config_cubox_i_xai_corp_net.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/config_dkhost_xai_corp_net.xml b/.idea/runConfigurations/config_dkhost_xai_corp_net.xml new file mode 100644 index 0000000..93908cc --- /dev/null +++ b/.idea/runConfigurations/config_dkhost_xai_corp_net.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/config_home_xai_corp_net.xml b/.idea/runConfigurations/config_home_xai_corp_net.xml new file mode 100644 index 0000000..fa4e5ed --- /dev/null +++ b/.idea/runConfigurations/config_home_xai_corp_net.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/setup_glusterfs.xml b/.idea/runConfigurations/setup_glusterfs.xml new file mode 100644 index 0000000..a1f260c --- /dev/null +++ b/.idea/runConfigurations/setup_glusterfs.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/setup_managed.xml b/.idea/runConfigurations/setup_managed.xml new file mode 100644 index 0000000..644d45d --- /dev/null +++ b/.idea/runConfigurations/setup_managed.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/update_managed.xml b/.idea/runConfigurations/update_managed.xml new file mode 100644 index 0000000..db86fcc --- /dev/null +++ b/.idea/runConfigurations/update_managed.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/update_name_servers.xml b/.idea/runConfigurations/update_name_servers.xml new file mode 100644 index 0000000..f075093 --- /dev/null +++ b/.idea/runConfigurations/update_name_servers.xml @@ -0,0 +1,18 @@ + + + + \ No newline at end of file diff --git a/.idea/sshConfigs.xml b/.idea/sshConfigs.xml new file mode 100644 index 0000000..94748b2 --- /dev/null +++ b/.idea/sshConfigs.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/dockerfiles/tasks/acme-nginx/cli/.bash_cli b/dockerfiles/tasks/acme-nginx/cli/.bash_cli new file mode 100644 index 0000000..e69de29 diff --git a/dockerfiles/tasks/acme-nginx/cli/update-scripts b/dockerfiles/tasks/acme-nginx/cli/update-scripts new file mode 100755 index 0000000..d7ad27f --- /dev/null +++ b/dockerfiles/tasks/acme-nginx/cli/update-scripts @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +echo -e "\033[36mTODO\033[39m: Implement this command" + +CONFIG='run/docker-compose.yml' + +docker-compose -f ${CONFIG} run --rm app \ + -k /path/to/account.key \ + --domain-private-key /path/to/domain.key \ + --virtual-host /etc/nginx/sites-enabled/customvhost \ + -o /path/to/signed_certificate.pem \ + -d example.com -d www.example.com diff --git a/dockerfiles/tasks/acme-nginx/cli/update-scripts.help b/dockerfiles/tasks/acme-nginx/cli/update-scripts.help new file mode 100644 index 0000000..7aa5493 --- /dev/null +++ b/dockerfiles/tasks/acme-nginx/cli/update-scripts.help @@ -0,0 +1,3 @@ +ARGS - The arguments you wish to provide to this command + +TODO: Fill out the help information for this command. diff --git a/dockerfiles/tasks/acme-nginx/cli/update-scripts.usage b/dockerfiles/tasks/acme-nginx/cli/update-scripts.usage new file mode 100644 index 0000000..5226895 --- /dev/null +++ b/dockerfiles/tasks/acme-nginx/cli/update-scripts.usage @@ -0,0 +1 @@ +ARGS... diff --git a/dockerfiles/tasks/acme-nginx/run/docker-compose.yml b/dockerfiles/tasks/acme-nginx/run/docker-compose.yml new file mode 100644 index 0000000..8d3048e --- /dev/null +++ b/dockerfiles/tasks/acme-nginx/run/docker-compose.yml @@ -0,0 +1,13 @@ +--- + +version: '3.4' + +services: + app: + image: dkregistry.xai-corp.net:5000/xaicorp/acme-nginx:latest + volumes: + - /etc/nginx:/etc/nginx + pid: host + command: + - -h + diff --git a/dockerfiles/tasks/acme-nginx/run/update_certs.Jenkinsfile b/dockerfiles/tasks/acme-nginx/run/update_certs.Jenkinsfile new file mode 100644 index 0000000..a5b3cc0 --- /dev/null +++ b/dockerfiles/tasks/acme-nginx/run/update_certs.Jenkinsfile @@ -0,0 +1,17 @@ +pipeline { + agent { label 'docker' } + triggers { + cron('@monthly') + } + options { + disableConcurrentBuilds() + buildDiscarder(logRotator(numToKeepStr: '2')) + } + stages { + stage('Update Certificates') { + steps { + sh 'echo TODO: run docker' + } + } + } +}