Merge pull request 'docker-test-new-config' (#79) from docker-test-new-config into docker-implementation
continuous-integration/drone/push Build is passing Details

Reviewed-on: #79
pull/80/head
Félix MIELCAREK 3 years ago
commit a386d9bccb

@ -2,13 +2,20 @@ kind: pipeline
type: docker type: docker
name: DAFLPipeline name: DAFLPipeline
trigger:
event:
- push
steps: steps:
# build CONTAINER for app-build on cirrusci IMAGE
- name: app-build - name: app-build
image: cirrusci/flutter:stable image: cirrusci/flutter:stable
commands: commands:
- flutter doctor - flutter doctor
- flutter build - cd ./Sources/dafl_project_flutter/
- flutter build apk
# build CONTAINER for sonar on cirrusci IMAGE
- name: code-analysis - name: code-analysis
image: cirrusci/flutter:stable image: cirrusci/flutter:stable
environment: environment:
@ -24,29 +31,4 @@ steps:
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH - export PATH=$SONAR_SCANNER_HOME/bin:$PATH
- export SONAR_SCANNER_OPTS="-server" - export SONAR_SCANNER_OPTS="-server"
- sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar - sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
depends_on: [ app-build ] depends_on: [ app-build ]
- name: web-server
image: plugins/docker
settings:
dockerfile: Sources/Dockerfile
context: Sources/
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/felix.mielcarek/dafl_music
username:
from_secret: secret-registry-username
password:
from_secret: secret-registry-password
- name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment:
IMAGENAME: hub.codefirst.iut.uca.fr/felix.mielcarek/dafl_music:latest
CONTAINERNAME: dafl-container
COMMAND: create
OVERWRITE: true
username:
from_secret: secret-registry-username
password:
from_secret: secret-registry-password
depends_on: [ web-server ]

@ -1,6 +0,0 @@
FROM plugins/docker
RUN apk update
RUN apk add apache2
RUN apk add apache2-utils
EXPOSE 80
CMD [apache2ctl, -D, FOREGROUND]

@ -0,0 +1,4 @@
FROM httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/
CMD echo 'ServerName 127.0.0.1' >> /etc/httpd/conf/httpd.conf
CMD systemctl reload httpd

@ -0,0 +1,5 @@
<html>
<body>
<h1>Hello World !</h1>
</body>
</html>
Loading…
Cancel
Save