Skip to content
Snippets Groups Projects
Verified Commit 14985207 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

feat: update Dockerfile and .gitlab-ci.yml for improved build process

- Removed the installation of Laravel Envoy from the Dockerfile.
- Added a command to run Laravel Octane in the Dockerfile.
- Configured npm registries for FontAwesome in the unit_test job of .gitlab-ci.yml.
- Added the installation of the SSH client and Laravel Envoy in the deploy_production job of .gitlab-ci.yml.
parent 93a2caa3
No related branches found
No related tags found
1 merge request!52Ajout de Laravel Octane
Pipeline #965 failed
......@@ -11,6 +11,10 @@ stages:
unit_test:
stage: test
before_script:
- npm config set @awesome.me:registry https://npm.fontawesome.com/
- npm config set @fortawesome:registry https://npm.fontawesome.com/
- npm config set //npm.fontawesome.com/:_authToken $FONT_AWESOME_TOKEN
script:
- cp .env.testing .env
- composer install --prefer-dist --no-interaction
......@@ -22,6 +26,9 @@ unit_test:
deploy_production:
stage: deploy
before_script:
- apt-get update && apt-get install -y --no-install-recommends openssh-client
- composer global require "laravel/envoy"
script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
......
......@@ -15,13 +15,9 @@ RUN install-php-extensions \
# Install Composer
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Install Laravel Envoy
RUN composer global require "laravel/envoy"
# Install Nodejs and NPM
RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get install -y nodejs
# Install SSH client for GitLab CI
RUN apt-get update && apt-get install -y --no-install-recommends openssh-client
CMD [ "php artisan octane:frankenphp --workers=1 --max-requests=1" ]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment