Docker-compose for every env

This commit is contained in:
José Armesto 2017-03-27 10:45:52 +02:00
parent af4f4e620f
commit 98c1b7051f
No known key found for this signature in database
GPG key ID: C10B9C02529D58DB
6 changed files with 79 additions and 67 deletions

View file

@ -1,14 +0,0 @@
---
- hosts: localhost
vars_files:
- "{{ playbook_dir }}/deploy/{{ wimpy_deployment_environment }}.yml"
vars:
wimpy_project: "spring-petclinic"
wimpy_app_port: 8080
wimpy_needs_elb: True
wimpy_app:
pre_commands:
- "/usr/bin/sh -c '/usr/bin/$(/usr/bin/docker run --rm xueshanf/awscli aws ecr get-login --region {{ wimpy_aws_region }} --registry-ids={{ registry_aws_account }})'"
roles:
- role: fiunchinho.wimpy

13
deploy/deploy.yml Normal file
View file

@ -0,0 +1,13 @@
---
- hosts: localhost
vars_files:
- "{{ playbook_dir }}/{{ wimpy_deployment_environment }}.yml"
vars:
wimpy_project: "spring-petclinic"
wimpy_docker_image_name: "fiunchinho/spring-petclinic"
wimpy_app_port: 8080
wimpy_needs_elb: True
wimpy_aws_elb_scheme: "internet-facing"
roles:
- role: fiunchinho.wimpy

View file

@ -1,28 +1,28 @@
$ANSIBLE_VAULT;1.1;AES256
39353361623432366431396661363739306162616362663034386662633965393864396330363566
3236633636623039303964663232636538633563646230380a336335373262316134303764386138
33646561343936333834326138306365313064326132353561366135333061383462323337653566
6562353438373963390a656538353562636161326262343530363266356133333737643863323862
34323565316630336632663361313961356464656265353736303838616631643336646134666164
63613437643037313963643962313336303239313063313332356365646639313163343964656163
31646365396263303836363762326531383464383934666666393039646135376263386635653630
35356464366162656165656336643466336436623132343638366535613162373666626430623961
61343462326631346535666537646436353132333838326364633431616136383265366637383064
64343736633439303566626261666339663134646266616130363138653535613537383638356362
62343939653366313632323634386566333730666665616166646132653039663966373936386362
37353333396364323466643966343830636464373632636133313031616631363166623532613237
66306433393237373134613833306561396163323466636234303238366333313139393430373962
34323363643237666330616161306532616235663430373334623631303766383261376263643835
33353635396536313336363561396633356534323839666536623136346461346365333033356362
64326334646665306364393232333636616134336136343031363837333864376136653539353637
37653330376230326464333632373334363336643830306133633032326630396531633138613862
66396331386137626465383935313536313231353039346539633339663266326565643164356634
34663663316266336562626635386531356631346161316364366462643533313532336661336339
36633330613464333237643664323936373665326137366138323135616235353032666165343861
36623434616131656633623365353862333830386532346461303834326535346336636330343533
63353434366638653362316332393930306461643436336462656639353737623764353563316636
32616332623665313731386262643562383738323233666432316430326435623030336265646235
64663234306530643836633564346665313439383163656331363733336136326164313065353136
66616663373032313365343466333430316431373638393937323532376232313132653339643139
34383062663266356439633130356363636562656136613539343136303432393230393330633331
336366336565323065336330303936313866
33626133326436613531336563383830653063386439646338316137383463383332343863653166
3263353135653132656365343934326338353965316263310a363733353634323763366362376661
37373734393564303332656138656162396235363533393562396636623138633961306239313838
3130303862633834310a666162636535646363623835613336633239613334653661363238643933
32626264363235623436316438326137633764373833313938323562613431363766666365656464
35333231373965623334353264616331656132333034313364613435626436303865303566386535
63333430633064323835363062346638626264613734653166636661396365363836613533393062
39366130336465666164643833653462303036353462343066613337366634303234646638336563
66313336646665383832316535333531663465393466383965396565616332353161636438353033
34643035303431643364366661623636613039643865363739333062356338393361343039616535
61616261363034306564626537643034626438303633316632373531663234666532383164663437
37383761633666313139356531393239636563343335366237316135343535643864336532346164
35323662316166646363343537323263623331343865646263313438643361353562393462326664
66396337666334343134666661346562343464303637663166373165343537386462346165313035
66643038346463323436386637326137396264393166636561386161363865343965383235623637
38316630383937313432333061346665613064303234626439613836656362336662643931376334
39643461306337373134666464613163323565316264323837303938636637313862376664343134
37626666336130653634323732356537663562323538336134313663663338623233663764623337
36316637393038653832306434373237353533303430333866333131653464396664376166326563
39313530336366323035366434323335663736653430623362393365646561393063343066613764
64393565386232613038303933313364623632616232313931396236626262363738653239613934
63393661323230623238626630626636313633663162353639366565623261356336353432333061
39313339326539306132343634366639363736366235333734313930336464343966366430343965
36623561613063356230313838323263383161343263376663373239343334643331643933613861
63666632343237616165393161646233656632343331346530346431313430393734336161623334
65393862373435633531393933346434313637626362386261336632626265303065306666353332
393735346237336463656639393833663531

View file

@ -1,27 +1,28 @@
$ANSIBLE_VAULT;1.1;AES256
31656437393536333261643162626432613163346332363365343737393463623437613535333533
3166623465303339373235333030313434353564313362320a653839633334313436336138343737
35636236346330663366333362346235386535633337323538323161363666313732363434346639
6431656466646333320a643833646561346235356535303161323962326665303461663466393839
38616264656133323966633966613739396534623031343639656232623262393465613733623762
61376335613264646337636537343963396335306636303932363836343631333234343938636535
63616264613966303631353739316630393861326537323237386234373261313335666434643937
34646465343138316237333534306131623063663165303362313462383261313862323937333434
32316262313864623438383263383337623835323833623764633061656161333764656264303662
64353337643966346537663538306165653030363935373962383163626535633766333030303363
37383430613966396239353465623233383162356161623264646464336663616439306539383232
62333336303264353263396266393237653532623933383161333330333133663363323437326465
66343730363739633931363866363435303464393334316566306361353161656366616130333836
38623532626136656662356130363262363063373564373466653534666661626535353963363965
38396165666466356135316632336361646532366564393964333538396637636564353565316338
36616163316436346637356663646461353665323163356336376164663663366439646661313633
61323161363732613361643161636638663530373365653833653134323232336363643037643534
35313465633865383865626362306161366232383264396261346663666264353731373463653538
34633832343730386361616136363438316664666161353631663763396437663231636634613763
37613662653139663430386239656365646333653337333530636361323838386234373932303835
65623165623330646630386636386330313062386563633534663839663232316135656136333434
64336530326133336139616139333464663836303765363561336338643163343064323031353332
63356539316638343733326238653461636636376139303539386439383835363066343462313565
35326366353137323565656334623333313366353965396438653365323830323936333734616333
61353735343534623336326163663630666537633033636562653431383362353034363965386664
3464396538336536393634613939623965653830343062303533
65663532373765346233343832383165306636383039303435323865663663343932623362366362
6435336134366432353261306463643631313138313333370a343565633333626536316131626337
35326439333537316665366339336262306362303661313930326433316339346334616635336534
6364663735396436390a353766303733646230366230623639366164656339613235336131363966
66383733306361643665306237353036313838386337303731316537636635366631313133643338
61386263326631653737656131393935663731313662653265616630353363616630613532316338
63663235653431663565326163666231303964303331366137636632393737626333396437633265
33343838663736616566306661396434316634616264663564323335656137303137623766313361
32396333383138646134383466373639633034663435663737356462633036653565393234613838
63303338353466326137633732313037363766353031633039393639396331653530626562643565
61376364393531616432633630363063613132353738303264396636356636633462346536316333
66323838336238643638393864396231353633363065383466393364373837316537356431353435
66373437316162346430633432356265386138633239366238346235333435636339646666373132
66313066396363663730316439353837383866386432666638333136346665626332636132323563
31646162323861326435393762633863653562616337336363323834613161393237323866636530
30373364356234623537386337346663303032323331636633343734613631383237613739626438
38363030393861396362386235646566366139653365333439646533393536333435643861363064
37663331366662353737353332616539343265356139336564326661316463353662653961633737
65663935396133656361666539316135626536613239363864616466626162303930336639366134
33313932383261396132356364366336636333373833363130353362386434343936303837356563
31366439643737623531383639373166623866366666616661363635373061663034373633353163
31303065366462656132313162333663373363323131376338623761396339626537626164326165
36386437653462323266656137643335633336333434363464386537343739393032383932316564
34303266653030306564666336336664653636386436656234373434616339373934626538636262
35316537643839353937303232353434616635653434643331663534376632373632653338653933
32326138663261653163313236636130366338613530383762393834373433653835393431363162
303366306533633961643131386136353032

View file

@ -0,0 +1,6 @@
version: '2'
services:
spring-petclinic:
image: fiunchinho/spring-petclinic
ports:
- "8080:8080"

View file

@ -0,0 +1,6 @@
version: '2'
services:
spring-petclinic:
image: fiunchinho/spring-petclinic
ports:
- "8080:8080"