Merge branch 'clean_web' of codefirst.iut.uca.fr:HeartDev/Web into clean_web
continuous-integration/drone/push Build is passing Details

clean_web
Antoine PEREDERII 1 year ago
commit 67ef8fc923

@ -1,6 +1,6 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: HeartWave name: HeartTrack
trigger: trigger:
event: event:
@ -17,7 +17,7 @@ steps:
#- apk update && apk add --no-cache libcouchbase-dev && pecl install couchbase && docker-php-ext-enable couchbase #- apk update && apk add --no-cache libcouchbase-dev && pecl install couchbase && docker-php-ext-enable couchbase
# Installe les dépendances PHP si nécessaire # Installe les dépendances PHP si nécessaire
- php composer.phar install --no-interaction - php composer.phar install --no-interaction
- ./vendor/bin/phpunit tests # - ./vendor/bin/phpunit tests
# Sonar static code analisis deployment # Sonar static code analisis deployment
# TODO : use an image that already have unzip # TODO : use an image that already have unzip
@ -72,7 +72,7 @@ steps:
IMAGENAME: 'hub.codefirst.iut.uca.fr/david.d_almeida/web:latest' IMAGENAME: 'hub.codefirst.iut.uca.fr/david.d_almeida/web:latest'
CONTAINERNAME: web CONTAINERNAME: web
COMMAND: create COMMAND: create
OVERWRITE: true #OVERWRITE: true
ADMINS: davidd_almeida,kevinmonteiro,antoineperederii,paullevrault,antoinepinagot ADMINS: davidd_almeida,kevinmonteiro,antoineperederii,paullevrault,antoinepinagot
depends_on: depends_on:
- docker-build-and-push - docker-build-and-push

@ -33,9 +33,7 @@
"altorouter/altorouter": "1.1.0", "altorouter/altorouter": "1.1.0",
"vlucas/phpdotenv": "^5.5", "vlucas/phpdotenv": "^5.5",
"psr/container": "^2.0", "psr/container": "^2.0",
"adriangibbons/php-fit-file-analysis": "^3.2.0", "adriangibbons/php-fit-file-analysis": "^3.2.0"
"ext-couchbase": "*",
"ext-pdo": "*"
}, },
"config": { "config": {
"process-timeout": 2000 "process-timeout": 2000

@ -10,12 +10,6 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
RUN docker-php-ext-install pdo pdo_mysql RUN docker-php-ext-install pdo pdo_mysql
RUN apt-get update && \
apt-get install -y \
libcouchbase-dev \
&& pecl install couchbase \
&& docker-php-ext-enable couchbase
# Copy configs # Copy configs
COPY ./config/virtual-host.conf /etc/apache2/sites-available/000-default.conf COPY ./config/virtual-host.conf /etc/apache2/sites-available/000-default.conf
COPY ./config/httpd.conf /etc/apache2/httpd.conf COPY ./config/httpd.conf /etc/apache2/httpd.conf
@ -30,6 +24,8 @@ COPY . /app
ENV VOLUME_PATH /app/public ENV VOLUME_PATH /app/public
RUN ls -la
RUN composer install RUN composer install
EXPOSE 80 EXPOSE 80

Loading…
Cancel
Save