-
Notifications
You must be signed in to change notification settings - Fork 19
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' into auth/self-host-and-key-connector-docs-impr…
…ovements
- Loading branch information
Showing
7 changed files
with
381 additions
and
301 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
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 |
---|---|---|
|
@@ -35,6 +35,9 @@ understand how it works. | |
MacOS requires updated SSL libraries, otherwise you will receive the error "No usable version of | ||
libssl was found". | ||
|
||
<Tabs> | ||
<TabItem value="intel" label="Intel" default> | ||
|
||
1. Install [Homebrew](https://brew.sh/) | ||
2. Install the OpenSSL package: | ||
```bash | ||
|
@@ -47,6 +50,42 @@ libssl was found". | |
4. If you are running the Key Connector from a terminal, restart your terminal to make sure the | ||
updated `.zshrc` settings are applied | ||
|
||
</TabItem> | ||
<TabItem value="arm" label="ARM"> | ||
|
||
Given that the Key Connector project is based on NET 5 then we need to use the x86_64 version of | ||
OpenSSL, thus installing x86_64 packages using Homebrew (a guide with several approaches can be | ||
found | ||
[here](https://www.wisdomgeek.com/development/installing-intel-based-packages-using-homebrew-on-the-m1-mac/)). | ||
|
||
1. Install Rosetta | ||
```bash | ||
softwareupdate --install-rosetta | ||
``` | ||
2. Set your terminal to Open using Rosetta (create a duplicate of the terminal application -> Go to | ||
Get Info -> check Open using Rosetta). | ||
3. Install [Homebrew](https://brew.sh/) | ||
|
||
3.a This should gives us a Homebrew living in `/usr/local` but if it doesn't work prepend | ||
`arch -x86_64` before the Homebrew installation command. | ||
|
||
4. Install the OpenSSL package using the x86_64 Homebrew: | ||
```bash | ||
arch -x86_64 /usr/local/homebrew/bin/brew install openssl | ||
``` | ||
5. Set the required environment variables to point to the OpenSSL libraries: | ||
```bash | ||
echo 'export DYLD_LIBRARY_PATH="/usr/local/opt/[email protected]/lib"' >> ~/.zshrc | ||
``` | ||
6. If you are running the Key Connector from a terminal, restart your terminal to make sure the | ||
updated `.zshrc` settings are applied or run | ||
```bash | ||
source ~/.zshrc | ||
``` | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
## Setup and configuration | ||
|
||
1. Clone the repository: | ||
|
@@ -139,6 +178,16 @@ Run the following command from the repository root: | |
dotnet run --project src/KeyConnector --configuration Development | ||
``` | ||
|
||
:::note | ||
|
||
If running on ARM based Mac you may need to use `/usr/local/share/dotnet/x64/dotnet` | ||
|
||
```bash | ||
/usr/local/share/dotnet/x64/dotnet run --project src/KeyConnector --configuration Development | ||
``` | ||
|
||
::: | ||
|
||
The `--configuration` flag is required for MacOS to use the right SSL libraries. | ||
|
||
</TabItem> | ||
|
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.