diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..ec60c69b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.sonar* +.scanner* diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..d88bc8456 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +pipeline { + agent { docker 'php' } + stages { + stage('build') { + steps { + sh 'php --version' + } + } + } +} diff --git a/README.md b/README.md index a161c977f..e7f8366cb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # Amazon ECS PHP Simple Demo App -Directions on how to launch this sample app on Amazon ECS can be found in the documentation: [Docker basics](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html). +Directions on how to launch this sample app on Amazon ECS can be found in the documentation: [Docker basics](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html). Testing branching diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..a7585d2f7 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +# must be unique in a given SonarQube instance +sonar.projectKey=demo_php +# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. +sonar.projectName=Demo PHP project +sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +# This property is optional if sonar.modules is set. +sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8 \ No newline at end of file diff --git a/src/index.php b/src/index.php index a17353240..952733df0 100644 --- a/src/index.php +++ b/src/index.php @@ -15,9 +15,9 @@
-

Simple PHP App

-

Congratulations

-

Your PHP application is now running on a container in Amazon ECS.

+

Let's do a another change

+

Sample app

+

The application is running on a container in Amazon ECS.

The container is running PHP version .