Skip to content

Commit

Permalink
Merge pull request #3 from canonical/IAM-233-hydra-rock
Browse files Browse the repository at this point in the history
Add hydra rock
  • Loading branch information
nsklikas authored Apr 28, 2023
2 parents 28ed704 + a6605fc commit 353eced
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Contributing

## Build and deploy

```bash
rockcraft pack -v
sudo skopeo --insecure-policy copy oci-archive:hydra_2.1.1_amd64.rock docker-daemon:hydra:latest
docker run hydra:latest
```
28 changes: 28 additions & 0 deletions rockcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: hydra
base: bare
build-base: ubuntu:22.04
version: "2.1.1"
summary: Ory Hydra
description: |
Ory Hydra is a hardened and certified OAuth 2.0 and OpenID Connect provider.
license: Apache-2.0
platforms:
amd64:

services:
hydra:
override: replace
command: hydra serve
startup: enabled

parts:
hydra:
plugin: go
build-snaps:
- go/1.19/stable
build-environment:
- GOFLAGS: -ldflags=-w -ldflags=-s
- CGO_ENABLED: 0
source: https://github.com/ory/hydra
source-type: git
source-tag: v2.1.1

0 comments on commit 353eced

Please sign in to comment.