Skip to content

Commit

Permalink
Merge pull request #371 from nexco-lk/compose-memory-exhausted-issue-fix
Browse files Browse the repository at this point in the history
compose memory exhausted issue fix
  • Loading branch information
curtisdelicata authored Jan 15, 2025
2 parents 5c11b99 + a8b8d35 commit f9f4b4f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- v1-dependencies-
- run: composer clearcache
- run: sudo composer selfupdate
- run: composer install -n --prefer-dist
- run: composer install --no-scripts -n --prefer-dist
- save_cache:
key: v1-dependencies-{{ checksum "composer.json" }}
paths:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: cp .env.testing .env

- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install
run: COMPOSER_MEMORY_LIMIT=-1 composer install --no-scripts

- name: Generate application key
run: php artisan key:generate
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
php-version: '8.3'
- name: 'Run Phpcpd'
run: |
sudo composer install
sudo composer install --no-scripts
sudo test -f phpcpd.phar || curl -L https://phar.phpunit.de/phpcpd.phar -o phpcpd.phar
sudo php phpcpd.phar app/
Expand All @@ -37,7 +37,7 @@ jobs:
php-version: '8.3'
- name: 'Run php-insight'
run: |
sudo composer install
sudo composer install --no-scripts
sudo php artisan insights --min-quality=90 --min-complexity=90 --min-architecture=80 --min-style=90 --no-interaction
security:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: cp .env.testing .env

- name: Install dependencies
run: composer install
run: composer install --no-scripts

- name: Generate application key
run: php artisan key:generate
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ USER ${USER}
COPY --chown=${USER}:${USER} --from=vendor /usr/bin/composer /usr/bin/composer
COPY --chown=${USER}:${USER} composer.json composer.lock ./

RUN composer install \
RUN composer install --no-scripts \
--no-dev \
--no-interaction \
--no-autoloader \
Expand All @@ -126,7 +126,7 @@ COPY --chown=${USER}:${USER} .docker/supervisord.*.conf /etc/supervisor/conf.d/
COPY --chown=${USER}:${USER} .docker/php.ini ${PHP_INI_DIR}/conf.d/99-octane.ini
COPY --chown=${USER}:${USER} .docker/start-container /usr/local/bin/start-container

RUN composer install \
RUN composer install --no-scripts \
--classmap-authoritative \
--no-interaction \
--no-ansi \
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

## Setup

1. Ensure your environment is set up with PHP 8.3 and Composer installed.
1. Ensure your environment is set up with PHP 8.3 and composer install --no-scriptsed.
2. Download the project files from this GitHub repository.
3. Open a terminal in the project folder. If you are on Windows and have Git Bash installed, you can use it for the following steps.
4. Run the following command:
Expand All @@ -63,7 +63,7 @@ NOTE 1: The script will ask you if you want to have your .env be overwritten by

NOTE 2: This script will run seeders, please make sure you are aware of this and don't run this script if you don't want this to happen.
```bash
composer install
composer install --no-scripts
php artisan key:generate
php artisan migrate --seed
```
Expand Down
2 changes: 1 addition & 1 deletion app/Services/InstallationScriptService.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function generateScript()
"git clone {$this->gitRepo} .",
'',
'# Install composer dependencies',
'composer install --no-dev --optimize-autoloader',
'composer install --no-scripts --no-dev --optimize-autoloader',
'',
'# Install npm dependencies and build assets',
'npm install',
Expand Down
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ echo "=================================="
echo ""
echo ""
# Install laravel dependencies with composer
echo "🎬 DEV ---> COMPOSER INSTALL"
composer install
echo "🎬 DEV ---> composer install --no-scripts"
composer install --no-scripts
echo ""
echo "=================================="
echo ""
Expand Down

0 comments on commit f9f4b4f

Please sign in to comment.