From b73565dc940743276e52f029bbb04543e2cbf462 Mon Sep 17 00:00:00 2001 From: shokinn Date: Sat, 17 May 2025 19:36:07 +0200 Subject: [PATCH] hacky af never use this! --- .env | 1 + .gitignore | 155 +++++++++++++++++++++++++++++++++++++++++++++ Dockerfile | 74 ++++++++++++++++++++++ README.md | 19 ++++++ config/.gitkeep | 0 docker-compose.yml | 26 ++++++++ 6 files changed, 275 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 config/.gitkeep create mode 100644 docker-compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..4fafc1d --- /dev/null +++ b/.env @@ -0,0 +1 @@ +COMPOSE_PROJECT_NAME=wow_simple_registration \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aaccb13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,155 @@ +config/* +!config +!config/.gitkeep + + +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# Metadata left by Dolphin file manager, which comes with KDE Plasma +.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* + +# Log files created by default by the nohup command +nohup.out + +# General +.DS_Store +.AppleDouble +.LSOverride +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 + +# 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 + +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ + +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ +dist/ + +# Flycheck +flycheck_*.el + +# server auth directory +/server/ + +# projectiles files +.projectile + +# directory configuration +.dir-locals.el + +# network security +/network-security.data + + +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2ecbfb0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,74 @@ +ARG WOWSIMPLEREGISTRATION_VERSION=master + +FROM composer:2.8 AS composer +RUN apk --no-cache add \ + git \ + gmp-dev \ + libgd \ + libpng-dev \ + libxml2-dev \ + libzip-dev \ + oniguruma-dev \ + sed \ + zlib-dev + +RUN docker-php-ext-install \ + gd \ + gmp \ + mbstring \ + mysqli \ + pdo \ + pdo_mysql \ + soap \ + zip + +RUN git clone https://github.com/masterking32/WoWSimpleRegistration \ + && cd WoWSimpleRegistration \ + && git checkout ${WOWSIMPLEREGISTRATION_VERSION} + +RUN cd ./WoWSimpleRegistration/application \ + && composer install + +RUN sed -i '/ [!WARNING] +> This Docker container is not intended in any way to run it as a production +> container! +> +> **DO NOT RUN THIS IN PRODUCTION** ‼️‼️‼️ + +This Docker compose is based on [masterking32/WoWSimpleRegistration] project. + +## Setup + +1. Copy [application/config/config.php.sample] to this repo as `config/config.php`. +2. Setup your configuration. +3. Run the docker compose: `docker compose up -d --build; docker compose logs -f` + + +[application/config/config.php.sample]: https://github.com/masterking32/WoWSimpleRegistration/blob/master/application/config/config.php.sample +[masterking32/WoWSimpleRegistration]: https://github.com/masterking32/WoWSimpleRegistration \ No newline at end of file diff --git a/config/.gitkeep b/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..540de4d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +# docker-compose.yml for WoWSimpleRegistration. +# +# Start the server with `docker compose up -d --build` +# +# Don't make changes this file! make a `docker-compose.override.yml` and make your +# changes there instead. + +services: + app: + image: wow-simple-registration:${DOCKER_IMAGE_TAG:-latest} + build: + context: . + dockerfile: Dockerfile + args: + WOWSIMPLEREGISTRATION_VERSION: master + networks: + - ac-network + volumes: + - ./config/config.php:/var/www/html/application/config/config.php + ports: + - 8080:8000 + +networks: + ac-network: + name: azerothcore-wotlk_ac-network + external: true \ No newline at end of file