Initial commit
commit
2842c05f61
|
|
@ -0,0 +1,137 @@
|
||||||
|
# Configuration files
|
||||||
|
config.php
|
||||||
|
|
||||||
|
# Docker Secrets
|
||||||
|
**/secrets/
|
||||||
|
|
||||||
|
# Include all README files
|
||||||
|
!**/README.md
|
||||||
|
|
||||||
|
# Eclipse
|
||||||
|
.settings
|
||||||
|
.buildpath
|
||||||
|
.project
|
||||||
|
.pydevproject
|
||||||
|
|
||||||
|
.bak
|
||||||
|
|
||||||
|
### WINDOWS ###
|
||||||
|
desktop.ini
|
||||||
|
|
||||||
|
### 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
|
||||||
|
__MACOSX
|
||||||
|
|
||||||
|
# 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*
|
||||||
|
|
||||||
|
### PhpStorm+all ###
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
# User-specific stuff
|
||||||
|
.idea/**/workspace.xml
|
||||||
|
.idea/**/tasks.xml
|
||||||
|
.idea/**/usage.statistics.xml
|
||||||
|
.idea/**/dictionaries
|
||||||
|
.idea/**/shelf
|
||||||
|
|
||||||
|
# Generated files
|
||||||
|
.idea/**/contentModel.xml
|
||||||
|
|
||||||
|
# Sensitive or high-churn files
|
||||||
|
.idea/**/dataSources/
|
||||||
|
.idea/**/dataSources.ids
|
||||||
|
.idea/**/dataSources.local.xml
|
||||||
|
.idea/**/sqlDataSources.xml
|
||||||
|
.idea/**/dynamic.xml
|
||||||
|
.idea/**/uiDesigner.xml
|
||||||
|
.idea/**/dbnavigator.xml
|
||||||
|
|
||||||
|
# Gradle
|
||||||
|
.idea/**/gradle.xml
|
||||||
|
.idea/**/libraries
|
||||||
|
|
||||||
|
# Gradle and Maven with auto-import
|
||||||
|
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||||
|
# since they will be recreated, and may cause churn. Uncomment if using
|
||||||
|
# auto-import.
|
||||||
|
# .idea/modules.xml
|
||||||
|
# .idea/*.iml
|
||||||
|
# .idea/modules
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
cmake-build-*/
|
||||||
|
|
||||||
|
# Mongo Explorer plugin
|
||||||
|
.idea/**/mongoSettings.xml
|
||||||
|
|
||||||
|
# File-based project format
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Cursive Clojure plugin
|
||||||
|
.idea/replstate.xml
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
|
||||||
|
# Editor-based Rest Client
|
||||||
|
.idea/httpRequests
|
||||||
|
|
||||||
|
# Android studio 3.1+ serialized cache file
|
||||||
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
|
### PhpStorm+all Patch ###
|
||||||
|
# Ignores the whole .idea folder and all .iml files
|
||||||
|
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
|
||||||
|
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
|
||||||
|
|
||||||
|
*.iml
|
||||||
|
modules.xml
|
||||||
|
.idea/misc.xml
|
||||||
|
*.ipr
|
||||||
|
|
||||||
|
# Sonarlint plugin
|
||||||
|
.idea/sonarlint
|
||||||
|
|
||||||
|
### Vim ###
|
||||||
|
# Swap
|
||||||
|
[._]*.s[a-v][a-z]
|
||||||
|
[._]*.sw[a-p]
|
||||||
|
[._]s[a-rt-v][a-z]
|
||||||
|
[._]ss[a-gi-z]
|
||||||
|
[._]sw[a-p]
|
||||||
|
|
||||||
|
# Session
|
||||||
|
Session.vim
|
||||||
|
|
||||||
|
# Temporary
|
||||||
|
.netrwhist
|
||||||
|
# Auto-generated tag files
|
||||||
|
tags
|
||||||
|
# Persistent undo
|
||||||
|
[._]*.un~
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "backend"]
|
||||||
|
path = backend
|
||||||
|
url = ./backend/
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit a2291b4a1f006b6035f7bf5afc1e83ad874b8e3f
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
# ***********************************************************************************************************************************
|
||||||
|
# * ___, _ ____ , __ *
|
||||||
|
# * / | o | | (| \ /|/ \ | *
|
||||||
|
# * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
|
||||||
|
# * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
|
||||||
|
# * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
|
||||||
|
# * /| *
|
||||||
|
# * \| *
|
||||||
|
# * *
|
||||||
|
# ***********************************************************************************************************************************
|
||||||
|
|
||||||
|
ARG NGINX_VERSION
|
||||||
|
FROM nginx:${NGINX_VERSION}
|
||||||
|
|
||||||
|
# Set timezone
|
||||||
|
RUN apk add --no-cache tzdata
|
||||||
|
ENV TZ=Etc/UTC
|
||||||
|
|
||||||
|
# Copy configurations
|
||||||
|
COPY etc/ /etc
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
|
|
@ -0,0 +1,19 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
root /var/www/html;
|
||||||
|
server_name adb.european-airports.org;
|
||||||
|
index index.php;
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_pass php:9000;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param REQUEST_METHOD $request_method;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
# ***********************************************************************************************************************************
|
||||||
|
# * ___, _ ____ , __ *
|
||||||
|
# * / | o | | (| \ /|/ \ | *
|
||||||
|
# * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
|
||||||
|
# * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
|
||||||
|
# * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
|
||||||
|
# * /| *
|
||||||
|
# * \| *
|
||||||
|
# * *
|
||||||
|
# ***********************************************************************************************************************************
|
||||||
|
|
||||||
|
ARG PHP_VERSION
|
||||||
|
FROM php:${PHP_VERSION}
|
||||||
|
|
||||||
|
# Set timezone
|
||||||
|
RUN apk add --no-cache tzdata
|
||||||
|
ENV TZ=Etc/UTC
|
||||||
|
|
||||||
|
# Install PHP config
|
||||||
|
RUN mv /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini
|
||||||
|
COPY etc/php /usr/local/etc/php/conf.d
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN apk update && \
|
||||||
|
apk upgrade && \
|
||||||
|
apk add git && \
|
||||||
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer && \
|
||||||
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
# Install and execute own entrypoint script. This scrpit should hold all instructions that are not
|
||||||
|
# executed while the image is build (use RUN in this file therefore) but that are run when the
|
||||||
|
# container starts up. One major advanatge is that mounted volumes are already available when this
|
||||||
|
# script is executed.
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
RUN ["chmod", "+x", "/entrypoint.sh"]
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# ***********************************************************************************************************************************
|
||||||
|
# * ___, _ ____ , __ *
|
||||||
|
# * / | o | | (| \ /|/ \ | *
|
||||||
|
# * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
|
||||||
|
# * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
|
||||||
|
# * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
|
||||||
|
# * /| *
|
||||||
|
# * \| *
|
||||||
|
# * *
|
||||||
|
# ***********************************************************************************************************************************
|
||||||
|
|
||||||
|
# This file provides a set of instructions to run, when the container starts. It is anchored as the
|
||||||
|
# entrypoint in the Dockerfile.
|
||||||
|
|
||||||
|
# Florian Meissner, DL1MRV
|
||||||
|
|
||||||
|
# Install PHP composer dependencies. This is done every time, the container is (re-)started.
|
||||||
|
composer -d /var/www/html -n update
|
||||||
|
composer -d /var/www/html -n install --no-dev
|
||||||
|
|
||||||
|
# Generate translation files
|
||||||
|
# /generate_mo.sh
|
||||||
|
|
||||||
|
# Create log dir
|
||||||
|
mkdir -p -m 777 /var/www/html/logs
|
||||||
|
|
||||||
|
# Finally start PHP.
|
||||||
|
source /usr/local/bin/docker-php-entrypoint
|
||||||
|
php-fpm
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
; ***********************************************************************************************************************************
|
||||||
|
; * ___, _ ____ , __ *
|
||||||
|
; * / | o | | (| \ /|/ \ | *
|
||||||
|
; * | | ,_ ,_ __, | | | | _ _ __, ,_ _|_ ,_ _ | __/ __ __, ,_ __| *
|
||||||
|
; * | | / | / | | | |_/ | |/ _| ||/ |/ \_/ | / | | | | / | |/ | \/ \_/ | / | / | *
|
||||||
|
; * \__/\_/ |_/ |_/|_/ \/ \_/|_/|__/ (/\___/ |__/|__/ \_/|_/ |_/|_/ \_/|_/ |_/|__/ |(__/\__/ \_/|_/ |_/\_/|_/ *
|
||||||
|
; * /| *
|
||||||
|
; * \| *
|
||||||
|
; * *
|
||||||
|
; ***********************************************************************************************************************************
|
||||||
|
;
|
||||||
|
; Author: Florian Meissner, DL1MRV
|
||||||
|
|
||||||
|
memory_limit = 256M
|
||||||
|
session.cookie_lifetime = 1440
|
||||||
|
session.gc_maxlifetime = 1440
|
||||||
Loading…
Reference in New Issue