From 535dc239a718f95426b26db4f5cd0a551e55463b Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Thu, 22 Aug 2024 14:26:42 +0200 Subject: [PATCH] - Initial release. --- .env | 4 ++++ .gitignore | 2 ++ Dockerfile | 25 +++++++++++++++++++++++++ ReadMe.txt | 19 +++++++++++++++++++ ReleaseNotes.txt | 7 +++++++ compose.yaml | 19 +++++++++++++++++++ 6 files changed, 76 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 ReadMe.txt create mode 100644 ReleaseNotes.txt create mode 100644 compose.yaml diff --git a/.env b/.env new file mode 100644 index 0000000..441a5cd --- /dev/null +++ b/.env @@ -0,0 +1,4 @@ +IMG_ID="php-apache-mga9" +IMG_NAME="Rx3 PHP Apache Mageia-9 Docker Image" +IMG_VERSION="1.0.0" +IMG_MAINTAINER='"Arnaud G. GIBERT" ' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..556bc65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*.old diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c6033e9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# Rx3 PHP Apache Mageia-9 Docker Image +#------------------------------------------------------------------------------- + +FROM docker.xor.rx3:5000/rx3/base-mga9:1.2.0 + +ARG IMG_ID +ARG IMG_NAME +ARG IMG_VERSION +ARG IMG_MAINTAINER + +LABEL org.rx3.${IMG_ID}.name=${IMG_NAME} +LABEL org.rx3.${IMG_ID}.version=${IMG_VERSION} +LABEL org.rx3.${IMG_ID}.maintainer=${IMG_MAINTAINER} +LABEL maintainer=${IMG_MAINTAINER} + + +RUN urpmi --force apache apache-mod_php php-cli php-pgsql php-mysqli php-phpmailer \ + && echo -e "RewriteEngine On\n\n Options Includes Indexes FollowSymLinks\n AllowOverride All\n Require all granted\n" >/etc/httpd/conf/conf.d/rx3.conf \ + && echo -e "\n" >/var/www/html/info.php + +VOLUME /var/www/html + +EXPOSE 80 + +ENTRYPOINT ["/usr/sbin/httpd", "-DFOREGROUND"] diff --git a/ReadMe.txt b/ReadMe.txt new file mode 100644 index 0000000..ffa006a --- /dev/null +++ b/ReadMe.txt @@ -0,0 +1,19 @@ +Welcome to php-apache-mga9 docker image! + + + +This is project aims to build a PHP + Apache + Mageia 9 docker image used by others Rx3 packaging projects. + +Features: + - Curtently based on base-mga9:1.2.0 image, + - PostgreSQL & MySQL ready, + - PHPMailer installed. + + +Enjoy it! + +Your Rx3 Team. + +-- +arnaud@rx3.net +https://git.rx3.org/gitea/rx3/php-apache-mga9 diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt new file mode 100644 index 0000000..4fc7d02 --- /dev/null +++ b/ReleaseNotes.txt @@ -0,0 +1,7 @@ +------------------------------------------------------------------------------------------------------------------------------------ +PHP-Apache-Mga9 V 1.0.0 - A. GIBERT - 2024/08/22 +------------------------------------------------------------------------------------------------------------------------------------ + +- Initial release, +- Use based on base-mga9:1.2.0 image, +- PostgreSQL & MySQL ready. diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..7cbc61c --- /dev/null +++ b/compose.yaml @@ -0,0 +1,19 @@ +# Rx3 PHP Apache Mageia-9 Docker Image +#------------------------------------------------------------------------------- + +name: ${IMG_ID} +services: + webapp: + container_name: ${IMG_ID} + image: docker.xor.rx3:5000/rx3/${IMG_ID}:${IMG_VERSION} + build: + context: . + args: + - IMG_ID=${IMG_ID} + - IMG_NAME=${IMG_NAME} + - IMG_VERSION=${IMG_VERSION} + - IMG_MAINTAINER=${IMG_MAINTAINER} + restart: unless-stopped + network_mode: bridge + ports: + - "127.0.0.1:8080:80"