Update Makefile setup
This commit is contained in:
parent
6940e6ffc8
commit
7aa4e94d88
5 changed files with 55 additions and 53 deletions
3
Makefile
3
Makefile
|
@ -1,5 +1,6 @@
|
||||||
export COMPOSE_FILE=./docker-compose.yml
|
export COMPOSE_FILE=./docker-compose.yml
|
||||||
export COMPOSE_PROJECT_NAME=publichealth
|
export COMPOSE_PROJECT_NAME=publichealth
|
||||||
|
export EMAIL=change_me@localhost.localhost
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
||||||
|
@ -36,7 +37,7 @@ apply-migrations: migrations migrate
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
docker-compose exec web ./manage.py migrate
|
docker-compose exec web ./manage.py migrate
|
||||||
docker-compose exec web ./manage.py createsuperuser
|
docker-compose exec web ./manage.py createsuperuser --username admin --email $(EMAIL) --noinput
|
||||||
docker-compose exec web ./manage.py compress
|
docker-compose exec web ./manage.py compress
|
||||||
docker-compose exec web ./manage.py collectstatic
|
docker-compose exec web ./manage.py collectstatic
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
net.ipv4.ip_forward: 1
|
net.ipv4.ip_forward: 1
|
||||||
roles:
|
roles:
|
||||||
- role: dev-sec.os-hardening
|
- role: dev-sec.os-hardening
|
||||||
# - role: dev-sec.ssh-hardening
|
- role: dev-sec.ssh-hardening
|
||||||
# - role: nginxinc.nginx
|
- role: nginxinc.nginx
|
||||||
# - role: dev-sec.nginx-hardening
|
- role: dev-sec.nginx-hardening
|
||||||
# - role: jnv.unattended-upgrades
|
- role: jnv.unattended-upgrades
|
||||||
|
|
|
@ -9,8 +9,9 @@ memcached_memory_allocation_mb: 256
|
||||||
nginx_worker_processes: 2
|
nginx_worker_processes: 2
|
||||||
nginx_worker_connections: 1024
|
nginx_worker_connections: 1024
|
||||||
|
|
||||||
domain: "{{ vault_domain }}"
|
email_admin: "{{ vault_email_admin }}"
|
||||||
|
|
||||||
|
domain: "{{ vault_domain }}"
|
||||||
allowed_domains: "{{ vault_allowed_domains }}"
|
allowed_domains: "{{ vault_allowed_domains }}"
|
||||||
|
|
||||||
django_email_key: "{{ vault_django_email_key }}"
|
django_email_key: "{{ vault_django_email_key }}"
|
||||||
|
|
|
@ -1,46 +1,35 @@
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
66633532633065306238613537323739643935353461666533613435353935386237353935636231
|
66363630316536316131333937366161306233636266653639363839393639343831333461316264
|
||||||
3235643564396462323063353264633436353335633333660a623236313663336361313739363564
|
6234393462613538323364353937383132316563653031320a643836623266353238346238366264
|
||||||
63653464316464373031383636326465396436373639646136663466343464323262623136303361
|
63656334613639653862663636633631323764393162373533396435366165643731663537303631
|
||||||
3066653062326230310a393534653837323735393339326434356437373436303634646235396130
|
3535336536366636370a343133623639323661316635656435393366636634633965343335623731
|
||||||
65353635323065343132353162636531653339313665656166393238356232633763653730383633
|
62393732666463366130666361336663333036396430356531326431666464663831363338353833
|
||||||
32636134336565666564616434373539353031366261303761613361336664353638303739396265
|
38373034323165333036663066353337643332663639386262653266303163373939656337323433
|
||||||
39666132353966323738623966383439313332323230333462356463353935653635613435393232
|
36313036643364653366393738333864333266373663643531613762343039333135643839356566
|
||||||
34643436313665663362393037636536386634623137623665663464366563393061643335386433
|
64396231636339356538373830393963333239636231306633643937356265666335316135643361
|
||||||
63353138653331623331323634663137346661653264326562396136323033346239643962366466
|
62396262633634363462306239636163663565346361636361336231653064393537316139393935
|
||||||
61313038646233663662363530336365656166646434393737383064653635666361363462633564
|
65313339613836323836396631396230653266313265326363373365303966366531323438646138
|
||||||
33336335636366373061366361333034353466346631353432633738356464653162373237623066
|
61656234336138663736376537373062386265303462356561323966386138396631326230633230
|
||||||
36616264323436343465313837326464363531656135626463366432363266363333346533336339
|
39633936363065623664333335656665363562333962633039663962353166326639353532653731
|
||||||
33643439636562373261663465316134373838323931663539353531643764653338393161653732
|
34373161393661386232666131376431643732343731616230636332386536613930316361313463
|
||||||
34333434373234636265383564623630613235313932303839336438623639626538383061336130
|
37616562363362633230663164653638343037393037306262636636303662343361323363336136
|
||||||
61343866656431303034373130636238336463613963366465663862373232626137383336326161
|
35393834373439626337363633366464376361646634636564633831646639383864656531386230
|
||||||
65323030643735653562313664333363663630613137366136313739373932393235663138333733
|
65336630326333343130373663346566613031356561346161353162366230333864333766333132
|
||||||
36336163313136623238643239613763653864623765343463333532326534306166306437643831
|
38373663356136633234613266343865363061656664656666383966623164333835336631633061
|
||||||
38636537333835643635363237303036336432386439643564623632616639323864386630396339
|
62366664393533386431373265366135303766303733316366363331386166363362386563613031
|
||||||
36663039363462653064623565653364303739643962306531626335393433343334343331663239
|
37346166373836373437663839663739646166396661343633386233643435363536386334373430
|
||||||
37613337373937343565313866396335366338303532613434653062653763376134383935633430
|
65303033636464336166363966336335653665306663633432306262626166373865663465656235
|
||||||
61383463326366626536363839373633363330376135306637386335353237303133386264373436
|
38653163643363346431633333353035626361383730366136646533623931303036386263356233
|
||||||
66666332666665363063316366643331663532323165636634313862663966383531333532663834
|
32363663326139643065373830386365323638383039356236336330373966643633626638303437
|
||||||
39393664616135326661316264643361316337336636366461366265653062633232653766623432
|
34383566623733343339336331386231633030643432396264663130616666623636663062633565
|
||||||
32326131303164623234326232616437666436666562376135656339386239336665336236366664
|
38323139323635373532346331663863343239313163303431653537633839623766373333376261
|
||||||
30353538666330346230303335636361656130633139383334393861393462336265313261313135
|
66613437376233303035623864363532356139313834366236613764646131363835663963623565
|
||||||
65323430376461336238626632316561366636616139643131346631316138613037346435393938
|
65336238613665356438376631636163343331366235346537393437313336313437353936336565
|
||||||
61376639343962393535633637346561643339663363356235646363333932346332343639333930
|
65656431303636383736616465313833353234346362653565346634336634356364643838353637
|
||||||
65653238656636313732316337373432316662626331626134346139396131383764656366316631
|
34393666633332623235663261636235336662396134346565376436666366613339353065663065
|
||||||
38313464353035626561633536656136306432663565356366333732396262353031653561303636
|
32333162363132353137613664616338616363643337313161346335323466663334656531616536
|
||||||
37633634393536363964646533333263346231366664323764306233386333353037333766333839
|
34656266323238663235323466346433303261313633336533663762336161376231366462636136
|
||||||
31396433383331386637613334616665633336623162323161323939646137313535363061306261
|
30663133316130393733346631333563343830353865623761363266303237643131653864303266
|
||||||
34383765633134616637386566376132393862326666626363646132643365633964376138663263
|
64663462663830303463313633343938633761313937646434323366633536626331303639363639
|
||||||
64646635663632626165366333636533393966363935616537616138636538373362633334613036
|
30653436666539366433646464643961643238343633646362303134646634373036633233343535
|
||||||
64396335393264666638333162643866316539663135363263666463643431653631373366323235
|
3764643337353533376365643662646635313562303532346132
|
||||||
35343731313461316335656231373434393533363433336563646131316464666537356530353263
|
|
||||||
65346361653031336236303439396630613130323536313762356135333863383230333637343261
|
|
||||||
65326165663239383638393431353936663438366263373238313634653361323037323030363733
|
|
||||||
38623532393165393962356437303562653163383032656239616135623162353233373263393264
|
|
||||||
36633363633334643637396338383735376663653436346437656235393766356163383964646136
|
|
||||||
39306366316439383162653539666636623537643961613432643664653862633430666439626435
|
|
||||||
32333734323930613930306561623833303562323564363861313035663636376232616366383663
|
|
||||||
33656464663937323933633231323031303937316438346362383663376236623066653332313636
|
|
||||||
62306332356462316637653036383761393039643437663339313461613631313037306538653531
|
|
||||||
36353033663938313831613565623561343132306463393734326334353135363332643866353038
|
|
||||||
35323835343366393466343564343538313837623334393765323530306135343566
|
|
||||||
|
|
|
@ -22,11 +22,22 @@
|
||||||
pkg: make
|
pkg: make
|
||||||
|
|
||||||
- name: Deploy Wagtail site on Docker
|
- name: Deploy Wagtail site on Docker
|
||||||
shell: make build
|
shell: make build-cached
|
||||||
args:
|
args:
|
||||||
chdir: "{{ release_dir }}"
|
chdir: "{{ release_dir }}"
|
||||||
|
|
||||||
- name: Set up Wagtail site
|
- name: Start Wagtail site
|
||||||
|
shell: make run
|
||||||
|
args:
|
||||||
|
chdir: "{{ release_dir }}"
|
||||||
|
|
||||||
|
|
||||||
|
- name: Finish setup of Wagtail site
|
||||||
shell: make setup
|
shell: make setup
|
||||||
args:
|
args:
|
||||||
chdir: "{{ release_dir }}"
|
chdir: "{{ release_dir }}"
|
||||||
|
|
||||||
|
- name: Finish setup of Wagtail site
|
||||||
|
shell: make setup EMAIL={{ email_admin }}
|
||||||
|
args:
|
||||||
|
chdir: "{{ release_dir }}"
|
||||||
|
|
Loading…
Reference in a new issue