hacky af never use this!
This commit is contained in:
		
						commit
						b73565dc94
					
				
					 6 changed files with 275 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								.env
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								.env
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
COMPOSE_PROJECT_NAME=wow_simple_registration
 | 
			
		||||
							
								
								
									
										155
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										155
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
							
								
								
									
										74
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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 '/<?php/a error_reporting(E_ALL ^ E_DEPRECATED);' ./WoWSimpleRegistration/index.php
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
FROM php:8.4-alpine3.20
 | 
			
		||||
RUN apk add --no-cache \
 | 
			
		||||
  gmp \
 | 
			
		||||
  libgd \
 | 
			
		||||
  libpng \
 | 
			
		||||
  libxml2 \
 | 
			
		||||
  libzip \
 | 
			
		||||
  oniguruma \
 | 
			
		||||
  zlib
 | 
			
		||||
 | 
			
		||||
RUN apk --no-cache add --virtual .build-deps \
 | 
			
		||||
    gmp-dev \
 | 
			
		||||
    libgd \
 | 
			
		||||
    libpng-dev \
 | 
			
		||||
    libxml2-dev \
 | 
			
		||||
    libzip-dev \
 | 
			
		||||
    oniguruma-dev \
 | 
			
		||||
    zlib-dev \
 | 
			
		||||
  && docker-php-ext-install \
 | 
			
		||||
    gd \
 | 
			
		||||
    gmp \
 | 
			
		||||
    mbstring \
 | 
			
		||||
    mysqli \
 | 
			
		||||
    pdo \
 | 
			
		||||
    pdo_mysql \
 | 
			
		||||
    soap \
 | 
			
		||||
    zip \
 | 
			
		||||
  && apk del .build-deps
 | 
			
		||||
 | 
			
		||||
COPY --from=composer /app/WoWSimpleRegistration/application/ /var/www/html/application/
 | 
			
		||||
COPY --from=composer /app/WoWSimpleRegistration/template/ /var/www/html/template/
 | 
			
		||||
COPY --from=composer /app/WoWSimpleRegistration/favicon.ico /var/www/html/
 | 
			
		||||
COPY --from=composer /app/WoWSimpleRegistration/index.php /var/www/html/
 | 
			
		||||
 | 
			
		||||
RUN chown -R www-data:www-data /var/www/html
 | 
			
		||||
 | 
			
		||||
WORKDIR /var/www/html
 | 
			
		||||
 | 
			
		||||
CMD [ "php", "-S", "0.0.0.0:8000" ]
 | 
			
		||||
EXPOSE 8000
 | 
			
		||||
							
								
								
									
										19
									
								
								README.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								README.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,19 @@
 | 
			
		|||
# Simple WoWSimpleRegistration container
 | 
			
		||||
 | 
			
		||||
> [!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
 | 
			
		||||
							
								
								
									
										0
									
								
								config/.gitkeep
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								config/.gitkeep
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										26
									
								
								docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue