Skip to content

Commit a4146fe

Browse files
authored
doc: add basic documentation (#23)
1 parent b5ec583 commit a4146fe

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed

docs/glossary.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Glossary
2+
3+
This section describes the core elements of dex.

docs/installation.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Installation
2+
3+
Dex ships as a single binary without any external dependencies making the installation very simple.
4+
5+
Dex is available for all major platforms (e.g., macOS, Windows, Linux, OpenBSD, FreeBSD, etc.)
6+
7+
Approaches to install Dex:
8+
9+
1. Using a [pre-compiled binary](#binary-cross-platform)
10+
2. Installing with [package manager](#homebrew)
11+
3. Installing from [source](#building-from-source)
12+
4. Installing with [Docker](#using-docker-image)
13+
14+
## Binary (Cross-platform)
15+
16+
Download the appropriate version for your platform from [releases](https://github.com/odpf/dex/releases) page. Once
17+
downloaded, the binary can be run from anywhere. You don’t need to install it into a global location. This works well
18+
for shared hosts and other systems where you don’t have a privileged account. Ideally, you should install it somewhere
19+
in your PATH for easy use. `/usr/local/bin` is the most probable location.
20+
21+
## Homebrew
22+
23+
```sh
24+
# Install dex (requires homebrew installed)
25+
brew install odpf/taps/dex
26+
27+
# Upgrade dex (requires homebrew installed)
28+
brew upgrade dex
29+
30+
# Check for installed dex version
31+
dex version
32+
```
33+
34+
## Building from source
35+
36+
To compile from source, you will need [Go](https://golang.org/) installed in your `PATH`.
37+
38+
```bash
39+
# Clone the repo
40+
https://github.com/odpf/dex.git
41+
42+
# Build dex binary file
43+
make build
44+
45+
# Check for installed dex version
46+
./dex version
47+
```
48+
49+
## Using Docker image
50+
51+
Dex ships a Docker image [odpf/dex](https://hub.docker.com/r/odpf/dex) that enables you to use `dex` as part of your Docker workflow.
52+
53+
For example, you can run `dex version` with this command:
54+
55+
```bash
56+
docker run odpf/dex version
57+
```

docs/introduction.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Introduction
2+
3+
Welcome to intro guide to Dex! This guide is the best place to start with Dex. We cover what Dex is, what problems it can solve, how it compares to existing DevOps practices, and how you can get started using it.
4+
5+
## What is Dex?
6+
7+
Dex is a platform that integrates all ODPF tools to provide a great experience for ODPF users.
8+
9+
## Why is dex required?
10+
11+
ODPF offers a suite of different data engineering tools. Each tool is designed with a specific use-case in mind and usually easy to setup. But in a real world setup, a lot of the tools also need to be configured & integrated to work together to get the most out of them.
12+
13+
Dex is being developed to reduce the support effort that goes into provisioning, integrating and scaling of these tools.
14+
15+
Dex will use [Entropy](https://github.com/odpf/entropy) to provision and manage deployments of various ODPF tools.

docs/usage_server.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Usage as Server
2+
3+
The following sections will detail the steps necessary to run the Dex server.
4+
5+
> Note: For installation instructions, refer [Installation](./installation.md) page.
6+
7+
## Pre-requisites
8+
9+
Dex is stateless and as such has no requirement of stateful components like databases, cache, etc.
10+
11+
But Dex is an orchestrator and needs the following ODPF services:
12+
13+
1. [Entropy](https://github.com/odpf/entropy) - Used for deployment and management of applications (e.g., firehose)
14+
2. [Siren](https://github.com/odpf/siren) - Used for configuring and managing alerting for tools deployed using Dex.
15+
3. [Shield](https://github.com/odpf/shield) - Used for access-control and project level metadata.
16+
17+
## Configurations
18+
19+
All the supported server configurations are documented in the [dex_server.yml](../dex_server.yml) file that is also shipped with the release package.
20+
21+
This configuration file comes with sensible defaults wherever possible.
22+
23+
## Running
24+
25+
Once you tune the configuration file as needed, dex server can be started by running the following command:
26+
27+
```shell
28+
dex server start --config dex_server.yml
29+
```

0 commit comments

Comments
 (0)