From f5a502cd9b60f7cca5371290cae2ec66b4ecb729 Mon Sep 17 00:00:00 2001 From: Anurag Date: Thu, 4 Dec 2025 06:37:55 +0000 Subject: [PATCH 1/4] add docker file --- website/.dockerignore | 25 +++++++++++++++++++++++++ website/Dockerfile | 24 ++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 website/.dockerignore create mode 100644 website/Dockerfile diff --git a/website/.dockerignore b/website/.dockerignore new file mode 100644 index 00000000..7347a7fb --- /dev/null +++ b/website/.dockerignore @@ -0,0 +1,25 @@ +**/.classpath +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/bin +**/charts +**/docker-compose* +**/compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +LICENSE +README.md diff --git a/website/Dockerfile b/website/Dockerfile new file mode 100644 index 00000000..92f993d1 --- /dev/null +++ b/website/Dockerfile @@ -0,0 +1,24 @@ +# Use official PHP with Apache +FROM php:8.2-apache + +# Enable useful Apache modules (optional but common) +RUN a2enmod rewrite + +# Install any PHP extensions you need (example: PDO + MySQL) +# Remove pdo_mysql if you don't use a DB +RUN docker-php-ext-install pdo pdo_mysql + +# Set working directory to Apache web root +WORKDIR /var/www/html + +# Copy everything into the container (except what you .dockerignore) +COPY . /var/www/html/ + +# (Optional) If you rely on .htaccess and need overrides: +# RUN sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf + +# Expose Apache port +EXPOSE 80 + +# Apache is the default CMD in this image +# CMD ["apache2-foreground"] \ No newline at end of file From d6776253fc51e44a42e05a065aa90dd4373b997d Mon Sep 17 00:00:00 2001 From: nitesh4511 <112388271+nitesh4511@users.noreply.github.com> Date: Thu, 4 Dec 2025 06:53:13 +0000 Subject: [PATCH 2/4] updated file --- website/Dockerfile | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/website/Dockerfile b/website/Dockerfile index 92f993d1..335e0b91 100644 --- a/website/Dockerfile +++ b/website/Dockerfile @@ -1,24 +1,20 @@ -# Use official PHP with Apache + FROM php:8.2-apache -# Enable useful Apache modules (optional but common) + RUN a2enmod rewrite -# Install any PHP extensions you need (example: PDO + MySQL) -# Remove pdo_mysql if you don't use a DB + RUN docker-php-ext-install pdo pdo_mysql -# Set working directory to Apache web root + WORKDIR /var/www/html -# Copy everything into the container (except what you .dockerignore) + COPY . /var/www/html/ -# (Optional) If you rely on .htaccess and need overrides: -# RUN sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf +RUN sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf -# Expose Apache port EXPOSE 80 -# Apache is the default CMD in this image -# CMD ["apache2-foreground"] \ No newline at end of file +CMD ["apache2-foreground"] From 685fe464572a70387a39597b2533ec41fb0b86a9 Mon Sep 17 00:00:00 2001 From: nitesh4511 <112388271+nitesh4511@users.noreply.github.com> Date: Tue, 9 Dec 2025 12:37:08 +0000 Subject: [PATCH 3/4] Create dev.yaml --- website/dev.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 website/dev.yaml diff --git a/website/dev.yaml b/website/dev.yaml new file mode 100644 index 00000000..7294f918 --- /dev/null +++ b/website/dev.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: php-app-deployment + namespace: dev # Explicitly define the namespace +spec: + replicas: 1 + selector: + matchLabels: + app: my-php-app + template: + metadata: + labels: + app: my-php-app + spec: + containers: + - name: my-container + image: apand84/php-app/your-image-name + ports: + - containerPort: 80 From 5ddce6cc7ae1b434f43182a727d96d0a8d0e368b Mon Sep 17 00:00:00 2001 From: nitesh4511 <112388271+nitesh4511@users.noreply.github.com> Date: Tue, 9 Dec 2025 13:51:57 +0000 Subject: [PATCH 4/4] Create inventory dev --- website/inventory | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 website/inventory diff --git a/website/inventory b/website/inventory new file mode 100644 index 00000000..5f5d6811 --- /dev/null +++ b/website/inventory @@ -0,0 +1,8 @@ +[eks_dev] +eks-dev + +[eks_dev:vars] +aws_region=eu-west-2 +eks_cluster_name=eks_cluster-demo +kube_namespace=dev +k8s_manifest_dir=./website