Skip to content

Commit

Permalink
docs: Update hydra versions
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed Nov 8, 2017
1 parent d67d703 commit 1e76b1a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/install.md
Expand Up @@ -46,19 +46,19 @@ $ export SYSTEM_SECRET=this_needs_to_be_the_same_always_and_also_very_$3cuR3-._
$ export DATABASE_URL=postgres://hydra:secret@postgres:5432/hydra?sslmode=disable
# Before starting, let's pull the latest ORY Hydra tag from docker.
$ docker pull oryd/hydra:v0.10.0-alpha.8
$ docker pull oryd/hydra:v0.10.0-alpha.11
# This command will show you all the environment variables that you can set. Read this carefully.
# It is the equivalent to `hydra help host`.
$ docker run -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.8 help host
$ docker run -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.11 help host
Starts all HTTP/2 APIs and connects to a database backend.
[...]
# ORY Hydra does not do magic, it requires concious decisions, for example, when running SQL migrations, which is required
# when installing a new version of ORY Hydra, or upgrading an existing installation.
# It is the equivalent to `hydra migrate sql postgres://hydra:secret@postgres:5432/hydra?sslmode=disable`
$ docker run --link ory-hydra-example--postgres:postgres -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.8 migrate sql $DATABASE_URL
$ docker run --link ory-hydra-example--postgres:postgres -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.11 migrate sql $DATABASE_URL
Applying `ladon` SQL migrations...
Applied 3 `ladon` SQL migrations.
Expand All @@ -76,7 +76,7 @@ $ docker run -d \
-e ISSUER=https://localhost:9000/ \
-e CONSENT_URL=http://localhost:9020/consent \
-e FORCE_ROOT_CLIENT_CREDENTIALS=admin:demo-password \
oryd/hydra:v0.10.0-alpha.8
oryd/hydra:v0.10.0-alpha.11
# And check if it's running:
$ docker logs ory-hydra-example--hydra
Expand Down Expand Up @@ -134,7 +134,7 @@ ORY Hydra can be managed using the Hydra Command Line Interface (CLI), which is
see the available commands, run:

```
$ docker run -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.8 help
$ docker run -it --entrypoint hydra oryd/hydra:v0.10.0-alpha.11 help
Hydra is a cloud native high throughput OAuth2 and OpenID Connect provider
Usage:
Expand Down Expand Up @@ -205,7 +205,7 @@ Next we need to connect to ORY Hydra and set up OAuth 2.0 Clients and access con
```
# We run a shell with ORY Hydra installed. We also expose port 4445 which we will use later to perform
# the authorize code flow. Also, we connect this container to our ORY Hydra instance.
$ docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.10.0-alpha.8
$ docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.10.0-alpha.11
# Let's connect to the ORY Hydra cluster
$ hydra connect
Expand Down Expand Up @@ -317,7 +317,7 @@ from the ORY Hydra docker container (`CONSENT_URL=http://localhost:9020/consent`
* `NODE_TLS_REJECT_UNAUTHORIZED=0` disables TLS verification, because we are using self-signed certificates.

Now close this shell and return to the one which is connected to the ORY Hydra bash container
(`docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.10.0-alpha.8`).
(`docker run -p 9010:4445 --link ory-hydra-example--hydra:hydra -it --entrypoint "/bin/sh" oryd/hydra:v0.10.0-alpha.11`).

## Perform OAuth 2.0 Flow

Expand Down
1 change: 1 addition & 0 deletions docs/tutorial.md
Expand Up @@ -13,6 +13,7 @@ download [this zip file](https://github.com/ory-am/hydra/archive/master.zip) or
```
$ git clone https://github.com/ory/hydra.git
$ cd hydra
$ git checkout tags/v0.10.0-alpha.13
$ docker-compose up --build -d
Starting hydra_mysqld_1
Starting hydra_postgresd_1
Expand Down

0 comments on commit 1e76b1a

Please sign in to comment.