-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:BTrDB/smartgridstore
- Loading branch information
Showing
19 changed files
with
1,622 additions
and
61 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,4 +1,4 @@ | ||
#!/bin/bash | ||
set -ex | ||
docker build --no-cache -t btrdb/kubernetes-controller-manager-rbd:1.9.3 . | ||
docker push btrdb/kubernetes-controller-manager-rbd:1.9.3 | ||
docker build --no-cache -t btrdb/kubernetes-controller-manager-rbd:1.10.0 . | ||
docker push btrdb/kubernetes-controller-manager-rbd:1.10.0 |
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,93 @@ | ||
#!/bin/bash | ||
|
||
cat >devmachine-localhost.ca.pem << EOF | ||
-----BEGIN CERTIFICATE----- | ||
MIIDnzCCAoegAwIBAgIJAPRK/R59kVNbMA0GCSqGSIb3DQEBCwUAMGYxCzAJBgNV | ||
BAYTAlVTMREwDwYDVQQIDAhEZXZUb3BpYTEXMBUGA1UEBwwOTXlMb2NhbE1hY2hp | ||
bmUxGTAXBgNVBA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1FB0E4 | ||
alL9IOoTaR7TQRYf4TOATCw1m4nYe61pfXB1J/CQ0cLVPS5qnbs9m8heynn7066q | ||
HRNq0S1ryc6KVDR6FaxnN2bcuQ== | ||
-----END CERTIFICATE----- | ||
EOF | ||
|
||
docker exec -i devmachine-etcd /bin/bash << EOSCRIPT | ||
export ETCDCTL_API=3 | ||
etcdctl --endpoints 172.29.0.20:2379 put api/hardcoded_pub << EOF | ||
-----BEGIN CERTIFICATE----- | ||
MIIDqzCCApOgAwIBAgIJAI2ZCK3cIv9tMA0GCSqGSIb3DQEBCwUAMGYxCzAJBgNV | ||
BAYTAlVTMREwDwYDVQQIDAhEZXZUb3BpYTEXMBUGA1UEBwwOTXlMb2NhbE1hY2hp | ||
bmUxGTAXBgNVBAoMEEJUckRCIERldk1hY2hpbmUxEDAOBgNVBAMMB1JPT1QgQ0Ew | ||
HhcNMTgwNjA1MDAwMTA1WhcNMjgwNjAyMDAwMTA1WjB9MQswCQYDVQQGEwJVUzER | ||
MA8GA1UECAwIRGV2VG9waWExFzAVBgNVBAcMDk15TG9jYWxNYWNoaW5lMRkwFwYD | ||
VQQKDBBCVHJEQiBEZXZNYWNoaW5lMRMwEQYDVQQLDApEZXZNYWNoaW5lMRIwEAYD | ||
VQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCy | ||
/w3AztG1VRYnGxYowEOHhlyC0Z5eu5avFozftsKv16hB9WkrkQyyicbv5+bSfeiJ | ||
0EIEDXk7MMkuqhtkk3SOqgusLQUK05SCVKjtoBlagujds1W/X1E6kezjjSmOtnuc | ||
+7uxo3VG4UNxphjKpXNCegWa0gw3A3QaF0ZCub7XdAPSbpwNaGB9TyB7HEP1GctB | ||
0rqVnP7dG46bMSEfBs3UUHsUBEfv4akpf5i8Rk+igW2BUxHtbeQ+sLGvzpzAdLJF | ||
kGceOuIUDkt4ZBCTv7mhx4u+W+A9eXEvGBEglDKPI//+gsdpU279QWwVSjhcxySW | ||
iz61k43ao27CO/A0w0JbAgMBAAGjRTBDMAsGA1UdDwQEAwIEMDATBgNVHSUEDDAK | ||
BggrBgEFBQcDATAfBgNVHREEGDAWgglsb2NhbGhvc3SCCTEyNy4wLjAuMTANBgkq | ||
hkiG9w0BAQsFAAOCAQEAU40YmF7QcW8Z4UG9JRRHmMz1u4k8Vwb9pbsAeK1Yb6NO | ||
PCtvv0s3jF5ZEDdGMVwmOvD4VloSrs4TPtA4GE49KDhHJ7eFNZSeCA3bin52vxhH | ||
bSyqOnaMcDNqAY/nPwh262TCuCIWNG7MOXTWDYW+dXZ0uIqacrdx+xXBh5X3wFNA | ||
HrRCbMsy4aWGvwN18uHcMPDC3gclk5RB+MbvmzIEyer1po5Ekiu4V1CHLGbVXdOE | ||
o6Kir1OpmqtrxjhgtvwT4kC5TycE0FOAsh/v69dEIXT84pH7zvEYMBRNlmDbuz1u | ||
oHuLW0nt3rUNKzpHIOYd8xJXhvI5N3ChfAh4MuBSKA== | ||
-----END CERTIFICATE----- | ||
EOF | ||
etcdctl --endpoints 172.29.0.20:2379 put api/hardcoded_priv << EOF | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEowIBAAKCAQEAsv8NwM7RtVUWJxsWKMBDh4ZcgtGeXruWrxaM37bCr9eoQfVp | ||
K5EMsonG7+fm0n3oidBCBA15OzDJLqobZJN0jqoLrC0FCtOUglSo7aAZWoLo3bNV | ||
v19ROpHs440pjrZ7nPu7saN1RuFDcaYYyqVzQnoFmtIMNwN0GhdGQrm+13QD0m6c | ||
DWhgfU8gexxD9RnLQdK6lZz+3RuOmzEhHwbN1FB7FARH7+GpKX+YvEZPooFtgVMR | ||
7W3kPrCxr86cwHSyRZBnHjriFA5LeGQQk7+5oceLvlvgPXlxLxgRIJQyjyP//oLH | ||
aVNu/UFsFUo4XMcklos+tZON2qNuwjvwNMNCWwIDAQABAoIBAQCFrVVoGQ0kj1br | ||
/Z6e8Hd+TynnyQStWws912l96c+b40MVf2H712fULnET2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QGy2PeMrDZn9Ac5bOuXZ5WlR5G7lLzcK4Ew7rR | ||
SjMiAAkzJMUfacx7USkOfONx6VT1ZfQeUbqW3v7ZqA9C6vt+oCl8ji60HBEZ6Bx6 | ||
llPVnHF+J/lkQsB8FCCKd8tOBZuHE0uuwlmstgg4/Ce5DFqte3uo | ||
-----END RSA PRIVATE KEY----- | ||
EOF | ||
etcdctl --endpoints 172.29.0.20:2379 put api/certsrc hardcoded | ||
EOSCRIPT | ||
|
||
set -x | ||
docker restart devmachine-console | ||
set +x | ||
echo "We have created a 'devmachine-localhost.ca.pem' file. Add this to your browser's Certificate Authorities and everything will just work" |
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
Oops, something went wrong.