Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ SERVER_ROOT=/var/www/
APP_CODE_PATH_HOST=/tmp
APP_CODE_CONTAINER_FLAG=:cached
APP_CODE_PATH_NGINX=/var/www
PHP_VERSION=8.1
PHP_VERSION=8.3
NGINX_HOST_HTTP_PORT=5647
DISPLAY_PHPERROR=true
XDEBUG=flase
INSTALL_ADDITIONAL_EXTENSIONS=
USER_ID=1000
GROUP_ID=1000
GROUP_ID=1000
14 changes: 7 additions & 7 deletions .github/workflows/Daily-checklist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
Nginx-AMD64:
strategy:
matrix:
pv: ["8.2", "8.1", "8.0", "7.4", "7.2"]
pv: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.2"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
status: ${{ job.status }}
notification_title: "{emoji} *{job}* has {status_message}"
message_format: "*{workflow}* {status_message} in <{branch_url}|{branch}> Architecture <{run_url}|{job}> Approved by ${{ github.event.head_commit.author.name }}"
footer: "Linked Repo <{repo_url}|{repo}>"
footer: "Linked Repo <{repo_url}|{repo}>"
mention_users: "D056LFW47NF,"
mention_users_when: "SUCCESS"
mention_groups: "C06H0SB11JL"
Expand All @@ -82,7 +82,7 @@ jobs:
Nginx-ARM64:
strategy:
matrix:
pv: ["8.2", "8.1", "8.0", "7.4", "7.2"]
pv: ["8.3", "8.2", "8.1", "8.0", "7.4", "7.2"]
runs-on: ubuntu-22.04
name: Nginx-ARM64
steps:
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
status: ${{ job.status }}
notification_title: "{emoji} *{job}* has {status_message}"
message_format: "*{workflow}* {status_message} in <{branch_url}|{branch}> Architecture <{run_url}|{job}> Approved by ${{ github.event.head_commit.author.name }}"
footer: "Linked Repo <{repo_url}|{repo}>"
footer: "Linked Repo <{repo_url}|{repo}>"
mention_users: "D056LFW47NF,"
mention_users_when: "SUCCESS"
mention_groups: "C06H0SB11JL"
Expand All @@ -162,7 +162,7 @@ jobs:
mention_groups_when: "failure,warnings"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FAIL }}

Nginx75-AMD64:
strategy:
matrix:
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
status: ${{ job.status }}
notification_title: "{emoji} *{job}* has {status_message}"
message_format: "*{workflow}* {status_message} in <{branch_url}|{branch}> Architecture <{run_url}|{job}> Approved by ${{ github.event.head_commit.author.name }}"
footer: "Linked Repo <{repo_url}|{repo}>"
footer: "Linked Repo <{repo_url}|{repo}>"
mention_users: "D056LFW47NF,"
mention_users_when: "SUCCESS"
mention_groups: "C06H0SB11JL"
Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:
status: ${{ job.status }}
notification_title: "{emoji} *{job}* has {status_message}"
message_format: "*{workflow}* {status_message} in <{branch_url}|{branch}> Architecture <{run_url}|{job}> Approved by ${{ github.event.head_commit.author.name }}"
footer: "Linked Repo <{repo_url}|{repo}>"
footer: "Linked Repo <{repo_url}|{repo}>"
mention_users: "D056LFW47NF,"
mention_users_when: "SUCCESS"
mention_groups: "C06H0SB11JL"
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
PHP_VERSION: "5.6"
XDEBUG: true
DISPLAY_PHPERROR: true

- name: Build the Docker image with php7.1
run: docker-compose build
env:
PHP_VERSION: "7.1"
XDEBUG: true
DISPLAY_PHPERROR: true

- name: Build the Docker image with php7.2
run: docker-compose build
env:
Expand All @@ -48,17 +48,23 @@ jobs:
PHP_VERSION: "8.0"
XDEBUG: true
DISPLAY_PHPERROR: true

- name: Build the Docker image with php8.1
run: docker-compose build
env:
PHP_VERSION: "8.1"
XDEBUG: true
DISPLAY_PHPERROR: true

- name: Build the Docker image with php8.2
run: docker-compose build
env:
PHP_VERSION: "8.2"
XDEBUG: true
DISPLAY_PHPERROR: true
DISPLAY_PHPERROR: true
- name: Build the Docker image with php8.3
run: docker-compose build
env:
PHP_VERSION: "8.3"
XDEBUG: true
DISPLAY_PHPERROR: true
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
data
data
.idea
60 changes: 60 additions & 0 deletions Dockerfile-8.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
FROM ghcr.io/deck-app/nginx:v8.3
LABEL maintainer Naba Das <hello@get-deck.com>

# Persistent runtime dependencies
# Example RUN apk add --no-cache php83-openssl php83-sysvmsg php83-curl

COPY default.conf /etc/nginx/conf.d/default.conf
ARG SERVER_ROOT
RUN sed -i "s#{SERVER_ROOT}#${SERVER_ROOT}#g" /etc/nginx/conf.d/default.conf
VOLUME [ "/var/www/" ]
WORKDIR /var/www

#PHP display error enable or disable
ENV PHP_VERSION=83
ADD package.sh /package.sh
COPY php_ini/php.ini /etc/php${PHP_VERSION}/php.ini
ARG DISPLAY_PHPERROR
RUN if [ ${DISPLAY_PHPERROR} = true ]; then \
sed -i "s#{DISPLAY}#On#g" /etc/php${PHP_VERSION}/php.ini \
;else \
sed -i "s#{DISPLAY}#Off#g" /etc/php${PHP_VERSION}/php.ini \
;fi

## Linux permission issue
ARG USER_ID
ARG GROUP_ID
RUN apk --no-cache add shadow sudo php${PHP_VERSION}-pecl-mongodb
RUN usermod -u ${USER_ID} nobody && groupmod -g ${GROUP_ID} nobody

# sudo command without password
RUN echo "nobody ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

#Xdebug enable or disable
ARG XDEBUG
RUN if [ ${XDEBUG} = true ]; then \
apk add php${PHP_VERSION}-pecl-xdebug \
&& echo "zend_extension=xdebug" >> /etc/php${PHP_VERSION}/php.ini \
;fi

## nobody permission issue
COPY www.conf /etc/php${PHP_VERSION}/php-fpm.d/www.conf
COPY nginx.conf /etc/nginx/nginx.conf
RUN touch /env
RUN chown -R nobody:nobody /env
RUN chown -R nobody:nobody /sbin/
RUN chown -R nobody:nobody /etc/php83/
RUN chown -R nobody:nobody /etc/service/
RUN chown -R nobody:nobody /var/run/
RUN chown -R nobody:nobody /var/log/
RUN chown -R nobody:nobody /var/lib/nginx
RUN chown -R nobody:nobody /etc/nginx

ARG INSTALL_ADDITIONAL_EXTENSIONS
ENV INSTALL_ADDITIONAL_EXTENSIONS=$INSTALL_ADDITIONAL_EXTENSIONS
RUN if [ -z "$INSTALL_ADDITIONAL_EXTENSIONS" ] ; then \
echo "No additional PHP extensions added" \
;else \
bash /package.sh \
;fi
USER nobody
9 changes: 5 additions & 4 deletions settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ user:
- 7.1
- 7.2
- 7.4
- "8.0"
- "8.1"
- "8.2"
- 8.0
- 8.1
- 8.2
- 8.3
target:
PHP_VERSION

Expand All @@ -23,7 +24,7 @@ user:
Enable PHP error reporting?
type:
checkbox
hint: Check the box to display PHP errors
hint: Check the box to display PHP errors
target:
DISPLAY_PHPERROR
php_xdebug:
Expand Down