-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updating landing readme * removes the quick start from the homepage, merges main * refactors how the docs are configured to run with make docs-serve * renames the object section to resources, fixes a README typo, cleans up the getting started guides * checkpoints the deployment guide before it starts to get truly messy * checkpoint deployment guide * lander update finished writing the "five easy steps" though it's really not that easy * deployment.md Reworded, reorg'ed and reduced repeats * Update README.md style tings Co-authored-by: Thomas La Piana <tal103020@icloud.com>
- Loading branch information
1 parent
01480f0
commit 502200e
Showing
14 changed files
with
201 additions
and
203 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,4 +183,5 @@ compose-build: | |
|
||
.PHONY: docs-serve | ||
docs-serve: | ||
@docker-compose build docs | ||
@docker-compose up docs |
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 @@ | ||
# Fides Docs | ||
|
||
1. `pip install -r requirements.txt` | ||
1. `cd fides` | ||
1. `mkdocs serve` | ||
This is where the docs site for Fides lives. To run the docs locally, use `make docs-serve` and visit `localhost:8000` |
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,19 @@ | ||
FROM python:3.8-slim-buster | ||
|
||
# Install auxiliary software | ||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
git \ | ||
vim | ||
|
||
# Update pip and install requirements | ||
RUN pip install -U pip | ||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
# Copy in the application files and install it locally | ||
COPY ./docs /docs | ||
WORKDIR /docs | ||
|
||
EXPOSE 8000 | ||
CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000"] |
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,11 +1,42 @@ | ||
# Deployment | ||
|
||
The easiest way to deploy Fides is with `Docker`. There are separate containers for `Fidesctl`, the `Server` and the `DB`. | ||
We recommend deploying Fides with `Docker` using the included docker-compose file [found here in the repo](https://github.com/ethyca/fides/blob/main/docker-compose.yml). There are separate containers for `Fidesctl`, the `API` and the `DB`. | ||
|
||
## Application Variables | ||
## Requirements | ||
|
||
These are the environment variables that can be set to configure Fidesctl for a specific deployment: | ||
1. Install MySQL 8 | ||
1. Install Python 3.8 or newer (including pip) | ||
1. Install Docker | ||
|
||
* `FIDES_API_URL` - The URL of the Fides webserver | ||
## Setup | ||
|
||
After deploying the API and DB, you need to inject the `FIDES_SERVER_URL` that points to wherever the API got deployed. Fidesctl will check for this environment variable first when running any commands instead of requiring the `-u` flag. | ||
The setup is done via Docker, with configuration values injected at runtime into the container. | ||
|
||
1. Spin up a MySQL DB with the following env vars: | ||
|
||
```env | ||
MYSQL_ROOT_PASSWORD="<root_password>" | ||
MYSQL_USER="<user>" | ||
MYSQL_PASSWORD="<user_password>" | ||
MYSQL_DATABASE="<db>" | ||
``` | ||
1. Start the FidesAPI -> `docker run -p "127.0.0.1:8080:8080/tcp" --env FIDES_DB_JDBC_URL="jdbc:mysql://<server_address>:3306/<db>" --env FIDES_DB_JDBC_USER="<user>" --env FIDES_DB_JDBC_PASSWORD="<user_password>" ethyca/fidesapi:latest /bin/bash -c "sbt flywayMigrate && sbt ~jetty:start"` | ||
1. Install Fidesctl -> `pip install fidesctl` | ||
1. Configuration of Fidesctl will be done via an `ini` file that will then be mounted onto the docker container. Fidesctl will automatically look for a file called `fides.ini` in the local directory, or at a location set by the `FIDES_CONFIG_PATH` environment variable. | ||
<details> | ||
<summary>Here's an example ini file to get you started</summary> | ||
```ini | ||
[user] | ||
user_id = 1 | ||
api_key = test_api_key | ||
[cli] | ||
server_url = http://fidesapi:8080 | ||
``` | ||
</details> | ||
Write your `fides.ini` file and set your `FIDES_CONFIG_PATH` environment variable as needed | ||
5. Run `fidesctl` to see a list of possible commands! |
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.