Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacman99 committed Mar 1, 2023
1 parent 90c0322 commit 8b39946
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Setting up Ops devshell

To manage services or access the postgres shell you will need to setup your github credentials for the ops devshell to authenticate you.

Create a personal access token on github.com with the entire `repo` and `workflow` scope: Settings -> Developer Settings -> Personal access tokens -> Tokens (classic) -> Generate new token (classic).
Expand All @@ -13,28 +14,31 @@ machine api.github.com login <github username> password <token>

Then clone `input-output-hk/dapps-world` and run:

``` sh
```sh
nix develop .#x86_64-linux.automation.devshells.ops
```

or if you have direnv setup, create a `.envrc.local` file in the repo and add the following:

``` sh
```sh

DEVSHELL_TARGET=ops
```

`

`
Then you can enter the `ops` devshell in this repo: `nix develop .#ops`.
`Then you can enter the`ops`devshell in this repo:`nix develop .#ops`.

If it worked right you should be able to see the `NOMAD_TOKEN` with `env | grep NOMAD_TOKEN`.

# Nomad Web UI

To login to https://nomad.dapps.aws.iohkdev.io, run `nomad ui -authenticate`. You can also enter the token manually into that webiste if the command doesn't work. Make sure to login with your IOHK google account.

In this webiste, you can view logs and restart/manage individual jobs and tasks.

# Access shell for database or other tasks

To access the postgres shell with the DB sync and chain-indexer tables, you can use nomad-exec once your in the ops devshell.

Run `nomad-exec -s -n infra`, choose `database` then `patroni`. Look for the allocation with `infra-database:master` and choose that one.
Expand Down

0 comments on commit 8b39946

Please sign in to comment.