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.
docker-compose HTTPS fix (ivanpaulovich#232)
* docker-compose HTTPS fix
- Loading branch information
1 parent
9aece74
commit 2d889c6
Showing
16 changed files
with
41 additions
and
194 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 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,3 @@ | ||
#!/bin/bash | ||
dotnet tool update --global dotnet-ef --version 3.1.8 | ||
dotnet ef database update --project ../accounts-api/src/Infrastructure --startup-project ../accounts-api/src/WebApi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
#!/bin/bash | ||
openssl req -x509 -newkey rsa:2048 -keyout localhost.key -out localhost.crt -days 365 -nodes -config ./ssl-selfsigned.cnf | ||
openssl pkcs12 -export -out localhost.pfx -inkey localhost.key -in localhost.crt -name "Localhost selfsigned certificate" -password pass:MyCertificatePassword | ||
rm ~/.aspnet/https/localhost.key | ||
rm ~/.aspnet/https/localhost.crt | ||
rm ~/.aspnet/https/localhost.pfx | ||
rm ../wallet-spa/localhost.key | ||
rm ../wallet-spa/localhost.crt | ||
rm ../nginx/localhost.key | ||
rm ../nginx/localhost.crt | ||
cp localhost.key ~/.aspnet/https/localhost.key | ||
cp localhost.crt ~/.aspnet/https/localhost.crt | ||
cp localhost.pfx ~/.aspnet/https/localhost.pfx | ||
cp localhost.key ../wallet-spa/localhost.key | ||
cp localhost.crt ../wallet-spa/localhost.crt | ||
cp localhost.key ../nginx/localhost.key | ||
cp localhost.crt ../nginx/localhost.crt | ||
mkdir https | ||
openssl req -x509 -newkey rsa:2048 -keyout https/localhost.key -out https/localhost.crt -days 365 -nodes -config ssl-selfsigned.cnf | ||
openssl pkcs12 -export -out https/localhost.pfx -inkey https/localhost.key -in https/localhost.crt -name "Localhost selfsigned certificate" -password pass:MyCertificatePassword |
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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
#!/bin/bash | ||
echo "1. Building Docker images in silent mode. This may take few minutes..." | ||
echo -e "\n\n\tEnsure Docker is up and running.\n\n" | ||
docker-compose build accounts-api | ||
docker-compose build identity-server | ||
docker-compose build --quiet | ||
echo "2. Starting up SQL Server in Docker..." | ||
docker-compose up -d sql1 | ||
echo "3. Installing Entity Framework Tool to migrate databases." | ||
dotnet tool update --global dotnet-ef --version 3.1.7 | ||
echo "4. Generating accounts schema in DB..." | ||
dotnet ef database update --project ../accounts-api/src/Infrastructure --startup-project ../accounts-api/src/WebApi | ||
echo "5. Starting up Identity Server and Accounts applications." | ||
echo "3. Updating DB using Entity Framework Tool..." | ||
./init-db | ||
echo -e "4. Starting up applications:" | ||
echo -e "\tIdentity Server." | ||
echo -e "\tAccounts." | ||
docker-compose up -d identity-server | ||
docker-compose up -d accounts-api |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
# https://gist.github.com/epcim/03f66dfa85ad56604c7b8e6df79614e0 | ||
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain localhost.crt | ||
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain https/localhost.crt |
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,4 @@ | ||
#!/bin/bash | ||
# https://gist.github.com/epcim/03f66dfa85ad56604c7b8e6df79614e0 | ||
dotnet dev-certs https -ep https/localhost.pfx -p MyCertificatePassword | ||
dotnet dev-certs https --trust |
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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
FROM nginx:latest | ||
|
||
COPY nginx.conf /etc/nginx/nginx.conf | ||
COPY localhost.crt /etc/ssl/certs/localhost.crt | ||
COPY localhost.key /etc/ssl/private/localhost.key | ||
COPY nginx.conf /etc/nginx/nginx.conf |
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.