Merge branch 'api_skeletton' of https://codefirst.iut.uca.fr/git/SmartFit/SmartFit_API into api_skeletton
continuous-integration/drone/push Build is passing Details

pull/3/head
remrem 1 year ago
commit ce466abda1

@ -26,12 +26,12 @@ steps:
CONTAINERNAME: smartfit_api
COMMAND: create
OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_HOST: SmartFit-smartfit_db
CODEFIRST_CLIENTDRONE_ENV_DATABASE:
CODEFIRST_CLIENTDRONE_ENV_SMDB_HOST: SmartFit-smartfit_db
CODEFIRST_CLIENTDRONE_ENV_SMDB_DATABASE:
from_secret: db_database
CODEFIRST_CLIENTDRONE_ENV_USER:
CODEFIRST_CLIENTDRONE_ENV_SMDB_USER:
from_secret: db_user
CODEFIRST_CLIENTDRONE_ENV_PASSWORD:
CODEFIRST_CLIENTDRONE_ENV_SMDB_PASSWORD:
from_secret: db_password
CODEFIRST_CLIENTDRONE_ENV_ROOT_PASSWORD:
from_secret: db_root_password
@ -47,11 +47,11 @@ steps:
COMMAND: create
CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD:
from_secret: db_root_password
CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE:
CODEFIRST_CLIENTDRONE_ENV_MARIADB_SMDB_DATABASE:
from_secret: db_database
CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER:
CODEFIRST_CLIENTDRONE_ENV_MARIADB_SMDB_USER:
from_secret: db_user
CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD:
CODEFIRST_CLIENTDRONE_ENV_MARIADB_SMDB_PASSWORD:
from_secret: db_password
ADMINS: remiarnal,enzojolys,othmanebenjelloun
depends_on: [ deploy_api_image ]

@ -1,11 +1,10 @@
FROM php:8.1-apache
RUN apt-get update && apt-get install -y git zip
RUN docker-php-ext-install pdo pdo_mysql
COPY ./public/index.php /var/www/html
COPY ./src ./app composer.json /var/www/
WORKDIR /var/www
COPY . /var/www/html/
WORKDIR /var/www/html/
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer update && composer install
RUN a2enmod rewrite
RUN a2enmod actions
RUN service restart apache2
RUN service apache2 restart
Loading…
Cancel
Save