forked from ivanpaulovich/clean-architecture-manga
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows Instructions (ivanpaulovich#258)
Windows setup scripts
- Loading branch information
1 parent
7d52fa0
commit 9fc48e1
Showing
33 changed files
with
214 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# 1. makecert | ||
|
||
openssl req -x509 -newkey rsa:2048 -keyout ./https/localhost.key -out ./https/localhost.crt -days 365 -subj "/CN=wallet.local/O=wallet.local/C=US" -config ./ssl-selfsigned.cnf -passout pass:MyCertificatePassword | ||
openssl pkcs12 -export -out ./https/localhost.pfx -inkey ./https/localhost.key -in ./https/localhost.crt -name "Localhost selfsigned certificate" -password pass:MyCertificatePassword -passin pass:MyCertificatePassword | ||
openssl rsa -in ./https/localhost.key -out ./https/localhost.key -passin pass:MyCertificatePassword | ||
|
||
# 2. [trustcert](https://gist.github.com/epcim/03f66dfa85ad56604c7b8e6df79614e0) | ||
|
||
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ./https/localhost.crt | ||
|
||
# 3. hostadd | ||
|
||
cat << EOF >> /etc/hosts | ||
# To allow the same website for Wallet SPA/IdentityServer and AccountsAPI | ||
127.0.0.1 wallet.local | ||
# End of section | ||
EOF | ||
exit | ||
|
||
# 4. build | ||
|
||
docker-compose build --no-cache | ||
|
||
# 5. run | ||
|
||
docker-compose -f docker-compose.yml -f docker-compose.production.yml up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 1. makecert | ||
|
||
openssl req -x509 -newkey rsa:2048 -keyout ./https/localhost.key -out ./https/localhost.crt -days 365 -subj "/CN=wallet.local/O=wallet.local/C=US" -config ./ssl-selfsigned.cnf -passout pass:MyCertificatePassword | ||
openssl pkcs12 -export -out ./https/localhost.pfx -inkey ./https/localhost.key -in ./https/localhost.crt -name "Localhost selfsigned certificate" -password pass:MyCertificatePassword -passin pass:MyCertificatePassword | ||
openssl rsa -in ./https/localhost.key -out ./https/localhost.key -passin pass:MyCertificatePassword | ||
|
||
# 2. [trustcert](https://gist.github.com/epcim/03f66dfa85ad56604c7b8e6df79614e0) | ||
|
||
certutil -addstore -f "ROOT" ./https/localhost.crt | ||
|
||
# 3. hostadd | ||
|
||
Add-Content -Path $env:windir\System32\drivers\etc\hosts -Value "`n127.0.0.1`twallet.local" -Force | ||
|
||
# 4. build | ||
|
||
docker-compose build --no-cache | ||
|
||
# 5. run | ||
|
||
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# 1. makecert | ||
|
||
openssl req -x509 -newkey rsa:2048 -keyout ./https/localhost.key -out ./https/localhost.crt -days 365 -subj "/CN=wallet.local/O=wallet.local/C=US" -config ./ssl-selfsigned.cnf -passout pass:MyCertificatePassword | ||
openssl pkcs12 -export -out ./https/localhost.pfx -inkey ./https/localhost.key -in ./https/localhost.crt -name "Localhost selfsigned certificate" -password pass:MyCertificatePassword -passin pass:MyCertificatePassword | ||
openssl rsa -in ./https/localhost.key -out ./https/localhost.key -passin pass:MyCertificatePassword | ||
|
||
# 2. [trustcert](https://gist.github.com/epcim/03f66dfa85ad56604c7b8e6df79614e0) | ||
|
||
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ./https/localhost.crt | ||
|
||
# 3. hostadd | ||
|
||
cat << EOF >> /etc/hosts | ||
# To allow the same website for Wallet SPA/IdentityServer and AccountsAPI | ||
127.0.0.1 wallet.local | ||
# End of section | ||
EOF | ||
exit | ||
|
||
# 4. build | ||
|
||
docker-compose build --no-cache | ||
|
||
# 5. run | ||
|
||
docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.