diff --git a/.drone.yml b/.drone.yml index 2d8d5c7..ed59caa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,7 +60,7 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - + - name: web-API image: plugins/docker settings: @@ -73,6 +73,7 @@ steps: password: from_secret: secret-registry-password + - name: deploy-web-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: @@ -88,6 +89,4 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - - depends_on: [ web-API, deploy-container-mysql ] - \ No newline at end of file + depends_on: [ web-API, deploy-container-mysql ] \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 02d098e..c76abc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ FROM php:8.1-apache +RUN apt-get update && apt-get install -y mariadb-client RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql -COPY ./Sources/API /var/www/html/ \ No newline at end of file +COPY ./Sources/API /var/www/html/ +COPY ./Sources/Data /sql/ +RUN cd /sql/