From 6eedeb0c5fb0c01510b51bca97e87fb49a187a09 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:24:12 +0100 Subject: [PATCH 01/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 2d8d5c7..9e3fe46 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,6 +60,8 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password + commands: + - mysqldump -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API image: plugins/docker From d7becf10968e3f149a718372673e4e91a22f57da Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:26:24 +0100 Subject: [PATCH 02/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9e3fe46..26fd887 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,8 +60,7 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - commands: - - mysqldump -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql + - name: web-API image: plugins/docker @@ -92,4 +91,10 @@ steps: from_secret: db_password depends_on: [ web-API, deploy-container-mysql ] - \ No newline at end of file + + + - name: injectsql + commands: + - mysqldump -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql + + depends_on: [ deploy-container-mysql, deploy-web-container ] \ No newline at end of file From 28d5adf5ee0aa129d46d924997022c95e9612049 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:27:27 +0100 Subject: [PATCH 03/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 26fd887..1dd44f5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -89,12 +89,6 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - - depends_on: [ web-API, deploy-container-mysql ] - - - - name: injectsql commands: - mysqldump -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql - - depends_on: [ deploy-container-mysql, deploy-web-container ] \ No newline at end of file + depends_on: [ web-API, deploy-container-mysql ] \ No newline at end of file From e22ef96cfd65934a9fecaebad31f62d487d20599 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:28:46 +0100 Subject: [PATCH 04/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1dd44f5..2dfdc99 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,6 +60,8 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password + commands: + - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API @@ -89,6 +91,4 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - commands: - - mysqldump -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql depends_on: [ web-API, deploy-container-mysql ] \ No newline at end of file From 92f88b19659984604691074045e6c1c01fe99ced Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:29:28 +0100 Subject: [PATCH 05/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2dfdc99..440d484 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,8 +60,6 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - commands: - - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API @@ -76,6 +74,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: @@ -91,4 +90,6 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password + commands: + - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql depends_on: [ web-API, deploy-container-mysql ] \ No newline at end of file From ce7d6b27ec7fcbc519914bdaef08a3e48cc8eb1d Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:34:44 +0100 Subject: [PATCH 06/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 440d484..72a7369 100644 --- a/.drone.yml +++ b/.drone.yml @@ -90,6 +90,4 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - commands: - - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql depends_on: [ web-API, deploy-container-mysql ] \ No newline at end of file From 7b7f0164a86408ce5af99b154f4a51fd0c605a5c Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:34:59 +0100 Subject: [PATCH 07/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02d098e..2d263b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ FROM php:8.1-apache 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/ +RUN mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From 29027efbef2b015d2ea41e62754e53f78b6f14fd Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:37:30 +0100 Subject: [PATCH 08/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2d263b9..63575f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -RUN mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql \ No newline at end of file +RUN mysql -u db_user -p db_database > https://codefirst.iut.uca.fr/git/ConsEcoTeam/ConsEco/src/branch/master/Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From 53e00fdfb2feb97c3a5097df3b090ea54ae4cca4 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:39:14 +0100 Subject: [PATCH 09/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 63575f6..529d35f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -RUN mysql -u db_user -p db_database > https://codefirst.iut.uca.fr/git/ConsEcoTeam/ConsEco/src/branch/master/Sources/Data/tablewithgeneratedid.sql \ No newline at end of file +RUN mysql -u db_user -p db_database > /Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From 081cd9554c33850bd8adcaadd2c271dd8f489597 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:41:52 +0100 Subject: [PATCH 10/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 529d35f..a4dc0ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ +RUN pwd RUN mysql -u db_user -p db_database > /Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From 9b64f67fe51dd1ed0edf3665dcc5e68e85c68b2e Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:43:14 +0100 Subject: [PATCH 11/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a4dc0ab..cac9712 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -RUN pwd +RUN cd RUN mysql -u db_user -p db_database > /Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From e36abf4079c30bb9e206da71a63145dc0861693f Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:44:02 +0100 Subject: [PATCH 12/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index cac9712..3b93d60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ +RUN pwd RUN cd +RUN pwd RUN mysql -u db_user -p db_database > /Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From 345f6c83149964d2f86982016d4da476da837adb Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:47:46 +0100 Subject: [PATCH 13/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b93d60..edc257c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -RUN pwd -RUN cd -RUN pwd +RUN ls -a RUN mysql -u db_user -p db_database > /Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From b108356b16218cb0ee5037a7eb4d8a8e199d8d00 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:51:19 +0100 Subject: [PATCH 14/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index edc257c..981cfe3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ RUN ls -a -RUN mysql -u db_user -p db_database > /Sources/Data/tablewithgeneratedid.sql \ No newline at end of file +RUN mysql -u db_user -p db_database > ./Sources/Data/tablewithgeneratedid.sql \ No newline at end of file From 3d5eccb6c11f739e4de35cfd173c5af4759835c1 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:52:41 +0100 Subject: [PATCH 15/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 981cfe3..aba45e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -RUN ls -a -RUN mysql -u db_user -p db_database > ./Sources/Data/tablewithgeneratedid.sql \ No newline at end of file +RUN cd ./Sources/Data +RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file From 07f46b5dfb9a2fc3cac3ceb8c2fd759d6546c556 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:54:57 +0100 Subject: [PATCH 16/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aba45e6..0bf2a41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -RUN cd ./Sources/Data -RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file +COPY ./Sources/Data /sql/ +RUN mysql -u db_user -p db_database > sql/tablewithgeneratedid.sql \ No newline at end of file From 6a18ef22a2d3a699a384301e60d4f236329250f2 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:55:58 +0100 Subject: [PATCH 17/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0bf2a41..0b6ed22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ -RUN mysql -u db_user -p db_database > sql/tablewithgeneratedid.sql \ No newline at end of file +RUN cd /sql +RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file From c017c769586764da6bc88de4c6c7ea1a3b82f7b7 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:59:00 +0100 Subject: [PATCH 18/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b6ed22..e6c004e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ -RUN cd /sql -RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file +RUN apt-get installmysql-client +RUN mysql -u db_user -p db_database > /sql/tablewithgeneratedid.sql \ No newline at end of file From 4c7f9391d008d742489e4171991e2294ef9f425b Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 18:59:41 +0100 Subject: [PATCH 19/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e6c004e..9a351e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ -RUN apt-get installmysql-client +RUN apt-get install mysql-client RUN mysql -u db_user -p db_database > /sql/tablewithgeneratedid.sql \ No newline at end of file From b9486895e036309665ab07582b00b690e15f7e1a Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:04:06 +0100 Subject: [PATCH 20/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9a351e1..11c1469 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ -RUN apt-get install mysql-client +FROM mysql-client RUN mysql -u db_user -p db_database > /sql/tablewithgeneratedid.sql \ No newline at end of file From 7f5bbb06ba2ce85c8e7b335edbec3a8162883a9c Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:04:50 +0100 Subject: [PATCH 21/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 11c1469..9bb6a7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,5 +2,5 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ -FROM mysql-client +FROM mysql RUN mysql -u db_user -p db_database > /sql/tablewithgeneratedid.sql \ No newline at end of file From 6a9fa57b7f2bc35dc563a4325ba3f226e60b8e46 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:06:44 +0100 Subject: [PATCH 22/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9bb6a7c..97d8f98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM php:8.1-apache RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -COPY ./Sources/Data /sql/ FROM mysql -RUN mysql -u db_user -p db_database > /sql/tablewithgeneratedid.sql \ No newline at end of file +COPY ./Sources/Data /sql/ +RUN ls -a /sql/ +RUN cd /sql/ +RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file From 7aa281ae21de4aea9e31648074101b15545f83c7 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:11:43 +0100 Subject: [PATCH 23/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 97d8f98..e8a6450 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,6 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mys COPY ./Sources/API /var/www/html/ FROM mysql COPY ./Sources/Data /sql/ -RUN ls -a /sql/ RUN cd /sql/ +RUN /etc/init.d/mysql start RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file From f0bb87593f37177ce928d5d3856b76729eb5923c Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:14:20 +0100 Subject: [PATCH 24/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e8a6450..735cda1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM php:8.1-apache +RUN apt-get update && apt-get install -y mysql-client RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql COPY ./Sources/API /var/www/html/ -FROM mysql COPY ./Sources/Data /sql/ RUN cd /sql/ -RUN /etc/init.d/mysql start RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file From e748392be93c9f513bc8e7a63f1a94b6f4c20445 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:16:13 +0100 Subject: [PATCH 25/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 735cda1..88d057e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ FROM php:8.1-apache -RUN apt-get update && apt-get install -y mysql-client +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/ COPY ./Sources/Data /sql/ From 709124b73042c98427415dd017af681a0aa1ea58 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:31:32 +0100 Subject: [PATCH 26/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 72a7369..7cf9fa5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,6 +60,8 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password + volumes: + - ${PWD}/mariadb:/Sources/Data/tablewithgeneratedid.sql - name: web-API From 3f39b3e1c2301d2836699664c01b3ddf9bdb11bc Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:31:50 +0100 Subject: [PATCH 27/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7cf9fa5..36b96f4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,7 +61,7 @@ steps: CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password volumes: - - ${PWD}/mariadb:/Sources/Data/tablewithgeneratedid.sql + - /Sources/Data/tablewithgeneratedid.sql - name: web-API From 3002f215c16754b05c5df570fdecd4cb9560b91d Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:32:08 +0100 Subject: [PATCH 28/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 36b96f4..72a7369 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,8 +60,6 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - volumes: - - /Sources/Data/tablewithgeneratedid.sql - name: web-API From f45f252c523b79082d2ea37f522530dac996089d Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:34:23 +0100 Subject: [PATCH 29/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 72a7369..9d747e6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,6 +60,9 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password + commands: + - apt-get update && apt-get install -y mariadb-client + - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API From 03c969077f44e40071ba7cd58d7fdf151da81b2b Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:37:08 +0100 Subject: [PATCH 30/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 9d747e6..6799cfc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,7 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql + - echo db_password | mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API From e3d701b8b437411f4df8cfe16f36ba61cffdd36d Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:39:05 +0100 Subject: [PATCH 31/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6799cfc..0f04e2e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,8 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - echo db_password | mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql + - MYSQL_PWD = db_password + - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API From 9afdb0bd761abbd96bc79aa191bc260b44a6510b Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:41:01 +0100 Subject: [PATCH 32/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0f04e2e..561712f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,8 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - MYSQL_PWD = db_password + - declare -x MYSQL_PWD + - MYSQL_PWD = db_password - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql From 901ebe3c04085280bdf06df009c12608d97aa88d Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:48:47 +0100 Subject: [PATCH 33/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 561712f..647c1e6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -64,7 +64,7 @@ steps: - apt-get update && apt-get install -y mariadb-client - declare -x MYSQL_PWD - MYSQL_PWD = db_password - - mysql -u db_user -p db_database > Sources/Data/tablewithgeneratedid.sql + - mysql -u db_user -pdb_password db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API From 94ac0bf95d8db7cf672a4a32278df4cbc3387a54 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 19:49:11 +0100 Subject: [PATCH 34/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 647c1e6..7c07bb9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,8 +62,6 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - declare -x MYSQL_PWD - - MYSQL_PWD = db_password - mysql -u db_user -pdb_password db_database > Sources/Data/tablewithgeneratedid.sql From 4c268995ad286f1344f29b882921b7bd737cccb4 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:13:57 +0100 Subject: [PATCH 35/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7c07bb9..7fb04b9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,7 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - mysql -u db_user -pdb_password db_database > Sources/Data/tablewithgeneratedid.sql + - mysql -u ${db_user} -p${db_password} ${db_database} > Sources/Data/tablewithgeneratedid.sql - name: web-API From 72f1d8fa14ba98049ffe718930321515e07090ef Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:15:43 +0100 Subject: [PATCH 36/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 7fb04b9..64334cb 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,8 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - mysql -u ${db_user} -p${db_password} ${db_database} > Sources/Data/tablewithgeneratedid.sql + - mysql -u ${DB_USER} -p${DB_PASSWORD} ${DB_DATABASE} > Sources/Data/tablewithgeneratedid.sql + secrets: [ db_user, db_password,db_database ] - name: web-API From 896eaf6035a6284c294d848b44dd36c81ea5c4df Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:16:12 +0100 Subject: [PATCH 37/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 64334cb..ca7426d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -63,7 +63,7 @@ steps: commands: - apt-get update && apt-get install -y mariadb-client - mysql -u ${DB_USER} -p${DB_PASSWORD} ${DB_DATABASE} > Sources/Data/tablewithgeneratedid.sql - secrets: [ db_user, db_password,db_database ] + secrets: [ db_user, db_password,db_database ] - name: web-API From 311a7a603f1604b9ebd814d34ee6dffac8ed4765 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:34:43 +0100 Subject: [PATCH 38/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ca7426d..1e63758 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,7 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - mysql -u ${DB_USER} -p${DB_PASSWORD} ${DB_DATABASE} > Sources/Data/tablewithgeneratedid.sql + - mysql -u $${DB_USER} -p$${DB_PASSWORD} $${DB_DATABASE} > Sources/Data/tablewithgeneratedid.sql secrets: [ db_user, db_password,db_database ] From e07290cd63a49c9ff4cecb13b0966cca66e83917 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:36:32 +0100 Subject: [PATCH 39/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1e63758..0db98ae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,7 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - mysql -u $${DB_USER} -p$${DB_PASSWORD} $${DB_DATABASE} > Sources/Data/tablewithgeneratedid.sql + - mysql -u $DB_USER -p$DB_PASSWORD $DB_DATABASE > Sources/Data/tablewithgeneratedid.sql secrets: [ db_user, db_password,db_database ] From 23ef83b8e971aec57a7e37160ecfdda1cf8a3af1 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:40:34 +0100 Subject: [PATCH 40/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index 0db98ae..5929383 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,6 +61,7 @@ steps: CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password commands: + - echo $DB_USER - apt-get update && apt-get install -y mariadb-client - mysql -u $DB_USER -p$DB_PASSWORD $DB_DATABASE > Sources/Data/tablewithgeneratedid.sql secrets: [ db_user, db_password,db_database ] From 271d5ba63020f19c833c1451eeaaa47d0f005317 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:41:14 +0100 Subject: [PATCH 41/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 5929383..0db98ae 100644 --- a/.drone.yml +++ b/.drone.yml @@ -61,7 +61,6 @@ steps: CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password commands: - - echo $DB_USER - apt-get update && apt-get install -y mariadb-client - mysql -u $DB_USER -p$DB_PASSWORD $DB_DATABASE > Sources/Data/tablewithgeneratedid.sql secrets: [ db_user, db_password,db_database ] From 7b2448a646a63b4245b70c372bce4499ae15551b Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:56:06 +0100 Subject: [PATCH 42/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0db98ae..b74d756 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,9 +62,7 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - mysql -u $DB_USER -p$DB_PASSWORD $DB_DATABASE > Sources/Data/tablewithgeneratedid.sql - secrets: [ db_user, db_password,db_database ] - + - mysql -u $db_user -p$db_password $db_database > Sources/Data/tablewithgeneratedid.sql - name: web-API image: plugins/docker From 1731e4d5585952ee755f074c00720c8f5f535f15 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 20:57:27 +0100 Subject: [PATCH 43/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b74d756..c5e0aa5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -62,7 +62,7 @@ steps: from_secret: db_password commands: - apt-get update && apt-get install -y mariadb-client - - mysql -u $db_user -p$db_password $db_database > Sources/Data/tablewithgeneratedid.sql + - mysql -u $CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER -p$CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD $CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE > Sources/Data/tablewithgeneratedid.sql - name: web-API image: plugins/docker From b8a9eaf567d377136a21a5bfada0b83b5d07bd95 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 21:03:46 +0100 Subject: [PATCH 44/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index c5e0aa5..ed59caa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -60,10 +60,7 @@ steps: from_secret: db_user CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: from_secret: db_password - commands: - - apt-get update && apt-get install -y mariadb-client - - mysql -u $CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER -p$CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD $CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE > Sources/Data/tablewithgeneratedid.sql - + - name: web-API image: plugins/docker settings: From c72a79ae54149eb2654880ad013a8bbead802ff6 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 21:16:28 +0100 Subject: [PATCH 45/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 88d057e..06cfa2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,4 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mys COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ RUN cd /sql/ -RUN mysql -u db_user -p db_database > tablewithgeneratedid.sql \ No newline at end of file +RUN mysql -u lulu -plulu lulu > tablewithgeneratedid.sql \ No newline at end of file From 35ef3d3a7d438f7914b2786d6dc683f617c95d1c Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 21:21:55 +0100 Subject: [PATCH 46/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 06cfa2d..094b901 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,4 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mys COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ RUN cd /sql/ -RUN mysql -u lulu -plulu lulu > tablewithgeneratedid.sql \ No newline at end of file +RUN mysql --user=lulu --password=lulu lulu > tablewithgeneratedid.sql \ No newline at end of file From ef18ad6a88ae82c8a0b6bb0abf0e6a4749a8ab66 Mon Sep 17 00:00:00 2001 From: Lucas EVARD Date: Fri, 25 Nov 2022 21:25:48 +0100 Subject: [PATCH 47/47] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 094b901..c76abc5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,3 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mys COPY ./Sources/API /var/www/html/ COPY ./Sources/Data /sql/ RUN cd /sql/ -RUN mysql --user=lulu --password=lulu lulu > tablewithgeneratedid.sql \ No newline at end of file