-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add fullstack-fp workflow and Dockerfile with PHP 8.5 support #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| ARG NODE_VERSION='22.16.0' | ||
| ARG PHP_VERSION='8.3' | ||
| ARG BASE_IMAGE="serversideup/php:${PHP_VERSION}-frankenphp-bookworm" | ||
|
|
||
| FROM node:${NODE_VERSION}-slim AS node | ||
|
|
||
| FROM oven/bun:debian AS bun | ||
|
|
||
| FROM ${BASE_IMAGE} | ||
|
|
||
| LABEL maintainer="Qisthi Ramadhani (https://qisthi.dev)" | ||
|
|
||
| ENV PHP_OPCACHE_ENABLE=1 | ||
|
|
||
| USER root | ||
|
|
||
| RUN install-php-extensions gd exif bcmath mongodb && \ | ||
| apt-get update && \ | ||
| apt-get install -y --no-install-recommends git unzip bash && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Install node and npm | ||
| COPY --from=node /usr/lib /usr/lib | ||
| COPY --from=node /usr/local/lib /usr/local/lib | ||
| COPY --from=node /usr/local/include /usr/local/include | ||
| COPY --from=node /usr/local/bin /usr/local/bin | ||
| COPY --from=node /opt/yarn-v1.22.22 /opt/yarn-v1.22.22 | ||
|
|
||
| # Install bun | ||
| COPY --from=bun /usr/local/bin /usr/local/bin | ||
|
|
||
| # Install sonar-scanner | ||
| RUN apt-get update && \ | ||
| apt-get install -y --no-install-recommends curl unzip && \ | ||
| if [ "$(uname -m)" = "aarch64" ]; then \ | ||
| # aarch64 | ||
| curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.2.1.4610-linux-aarch64.zip --output /tmp/sonar-scanner.zip && \ | ||
| SONAR_DIR="sonar-scanner-6.2.1.4610-linux-aarch64" ; \ | ||
| else \ | ||
| # x86_64 | ||
| curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.2.1.4610-linux-x64.zip --output /tmp/sonar-scanner.zip && \ | ||
| SONAR_DIR="sonar-scanner-6.2.1.4610-linux-x64" ; \ | ||
| fi && \ | ||
| unzip /tmp/sonar-scanner.zip -d /opt && \ | ||
| ln -s /opt/${SONAR_DIR}/bin/sonar-scanner /usr/local/bin/sonar-scanner && \ | ||
| rm /tmp/sonar-scanner.zip && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Clean up | ||
| RUN rm -rf /tmp/* /var/tmp/* | ||
|
|
||
| # Drop back to our unprivileged user | ||
| USER www-data | ||
|
|
||
| RUN composer global config allow-plugins.gmta/composer-velocita true && \ | ||
| composer global require gmta/composer-velocita && \ | ||
| git config --global --add safe.directory /builds | ||
|
|
||
| # Copy shell aliases to both root and www-data user homes | ||
| COPY shell/aliases.sh /root/.aliases.sh | ||
| COPY shell/aliases.sh /var/www/.aliases.sh | ||
|
|
||
| # Copy shell configuration | ||
| COPY shell/bashrc /root/.sh | ||
| COPY shell/bashrc /var/www/.bashrc | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # -- Aliases ------------------------------------------ | ||
| alias a="php artisan" | ||
| alias art="php artisan" | ||
| alias migrate="php artisan migrate" | ||
| alias seed="php artisan db:seed" | ||
| alias fresh="php artisan migrate:fresh" | ||
| alias c="composer" | ||
| alias test="php artisan test" | ||
| alias routes="php artisan route:list" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Set LS color options | ||
| export LS_OPTIONS='--color=auto' | ||
|
|
||
| # Define common aliases | ||
| alias ls='ls $LS_OPTIONS' | ||
| alias ll='ls $LS_OPTIONS -l' | ||
| alias l='ls $LS_OPTIONS -lA' | ||
|
|
||
| # Safety aliases | ||
| alias rm='rm -i' | ||
| alias cp='cp -i' | ||
| alias mv='mv -i' | ||
|
|
||
| # Source aliases file if it exists | ||
| if [ -f ~/.aliases.sh ]; then | ||
| source ~/.aliases.sh | ||
| else | ||
| echo "404: ~/.aliases.sh not found." | ||
| fi |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file path appears to be incorrect. The target path is
/root/.shbut should likely be/root/.bashrcto match the naming convention and the corresponding www-data user configuration on line 67.