Added wimpy.build role

This commit is contained in:
José Armesto 2017-04-01 19:25:33 +02:00
parent 69faabbbd2
commit c1ce104cf8
No known key found for this signature in database
GPG key ID: C10B9C02529D58DB
4 changed files with 14 additions and 5 deletions

View file

@ -21,7 +21,8 @@ install:
- pip install boto3 - pip install boto3
- pip install troposphere - pip install troposphere
- printf '[defaults]\nroles_path=../' >ansible.cfg - printf '[defaults]\nroles_path=../' >ansible.cfg
- ansible-galaxy install -p ../ fiunchinho.wimpy,feature/build_app_with_compose - ansible-galaxy install -p ../ fiunchinho.wimpy,feature/decouple_role
- ansible-galaxy install -p ../ fiunchinho.wimpy.build
script: script:
- ./mvnw package - ./mvnw package

View file

@ -4,10 +4,18 @@
vars_files: vars_files:
- "{{ playbook_dir }}/{{ wimpy_deployment_environment }}.yml" - "{{ playbook_dir }}/{{ wimpy_deployment_environment }}.yml"
vars: vars:
wimpy_project: "spring-petclinic" wimpy_project_name: "spring-petclinic"
wimpy_docker_image_name: "fiunchinho/spring-petclinic" wimpy_docker_image_name: "fiunchinho/spring-petclinic"
wimpy_app_port: 8080 wimpy_app_port: 8080
wimpy_needs_elb: True
wimpy_aws_elb_scheme: "internet-facing" wimpy_aws_elb_scheme: "internet-facing"
wimpy_aws_elb_healthcheck:
ping_protocol: "http"
ping_port: 8080
ping_path: "/"
response_timeout: 5
interval: 6
unhealthy_threshold: 2
healthy_threshold: 3
roles: roles:
- role: wimpy.build
- role: fiunchinho.wimpy - role: fiunchinho.wimpy

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

View file

@ -7,10 +7,10 @@
<h2 th:text="#{welcome}">Welcome</h2> <h2 th:text="#{welcome}">Welcome</h2>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<img class="img-responsive" src="../static/resources/images/pets.png" th:src="@{/resources/images/pets.png}"/> <img class="img-responsive" src="../static/resources/images/kitten.jpg" th:src="@{/resources/images/pets.png}"/>
</div> </div>
</div> </div>
</body> </body>
</html> </html>