Skip to content

Commit

Permalink
Merge pull request #32 from 2byrds/getting_started
Browse files Browse the repository at this point in the history
porting and extending Markus IIW tutorial
  • Loading branch information
2byrds authored Jan 5, 2024
2 parents 1f091f2 + ef12efa commit 85ed646
Show file tree
Hide file tree
Showing 54 changed files with 1,467 additions and 251 deletions.
568 changes: 568 additions & 0 deletions GETTING_STARTED.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
.PHONY: build-did-keri-resolver
build-did-keri-resolver:
@docker buildx build --platform=linux/amd64 --no-cache -f images/did-keri-resolver.dockerfile --tag weboftrust/did-keri-resolver:latest --tag weboftrust/did-keri-resolver:0.1.0 .
.PHONY: build-did-webs-resolver
build-did-webs-resolver:
@docker buildx build --platform=linux/amd64 --no-cache -f images/did-webs-resolver.dockerfile --tag weboftrust/did-webs-resolver:latest --tag weboftrust/did-webs-resolver:0.1.0 .

.PHONY: build-did-web
build-did-web:
@docker build --platform=linux/amd64 -f images/did-web.dockerfile --tag weboftrust/did-web:latest --tag weboftrust/did-web:0.1.0 .

.PHONY: run-did-keri-resolver
.PHONY: run-did-webs-resolver
run-agent:
@docker run -p 5921:5921 -p 5923:5923 --name agent weboftrust/did-keri-resolver:0.1.0
@docker run -p 5921:5921 -p 5923:5923 --name agent weboftrust/did-webs-resolver:0.1.0

.PHONY: push-all
push-all:
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Introduction

Welcome to the `did:webs` reference implementation repository. See the did:webs [specification](https://trustoverip.github.io/tswg-did-method-webs-specification/) for more information.

Thank you to Phil Feairheller @pfeairheller from GLEIF who started this work [here](https://github.com/WebOfTrust/did-keri-resolver)

# Developers - Getting Started

Developers who want to jump into using the `did:webs` reference implementation should follow the [Getting Started](./GETTING_STARTED.md) guide.

Thank you to Markus Sabadello @peacekeeper from DanubeTech who started the original tutorial for IIW37 [here](https://github.com/peacekeeper/did-webs-iiw-tutorial)

# dkr

did:keri/did:webs DID Resolver Reference Implementation
Expand Down
3 changes: 0 additions & 3 deletions data/did.json

This file was deleted.

53 changes: 30 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
version: "3"

services:
dkr:
container_name: dkr
hostname: dkr
witnesshost:
container_name: witnesshost
hostname: witnesshost
image: gleif/keri:latest
platform: linux/amd64
tty: true
ports:
- 5642:5642 # witness
- 5643:5643 # witness
- 5644:5644 # witness
entrypoint: kli witness demo

webs:
container_name: webs
hostname: webs
build:
context: .
dockerfile: ./images/dkr.dockerfile
image: gleif/dkr:latest
dockerfile: ./images/webs.dockerfile
image: 2byrds/webs:latest
tty: true
volumes:
- ~/VSCode/did-keri-resolver/volume/dkr/examples:/usr/local/var/webs/volume/dkr/examples
- ~/VSCode/did-keri-resolver/volume/dkr/pages:/usr/local/var/webs/volume/dkr/pages

did-webs-service:
container_name: did-webs-service
Expand All @@ -17,31 +32,23 @@ services:
context: .
dockerfile: ./images/did-webs-service.dockerfile
depends_on:
- dkr
image: gleif/did-webs-service:latest
- webs
ports:
- 7676:7676
tty: true
volumes:
- ~/VSCode/did-keri-resolver/volume/dkr/examples:/usr/local/var/webs/volume/dkr/examples
- ~/VSCode/did-keri-resolver/volume/dkr/pages:/usr/local/var/webs/volume/dkr/pages

did-webs-resolver-service:
container_name: did-webs-resolver-service
hostname: did-webs-resolver-service
container_name: did-webs-resolver
hostname: did-webs-resolver
build:
context: .
dockerfile: ./images/did-webs-resolver-service.dockerfile
depends_on:
- dkr
image: gleif/did-webs-resolver-service:latest
image: did-webs-resolver:latest
ports:
- 7677:7677

did-keri-resolver-service:
container_name: did-keri-resolver-service
hostname: did-keri-resolver-service
build:
context: .
dockerfile: ./images/did-keri-resolver-service.dockerfile
tty: true
depends_on:
- dkr
image: gleif/did-keri-resolver-service:latest
ports:
- 7678:7678
- webs
4 changes: 2 additions & 2 deletions images/did-keri-resolver-service.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM gleif/dkr:latest
FROM 2byrds/webs:latest

EXPOSE 7678

CMD ["/usr/local/var/did-keri-resolver/scripts/did-keri-resolver-service.sh"]
CMD ["/usr/local/var/webs/scripts/webs-resolver-service.sh"]
4 changes: 2 additions & 2 deletions images/did-webs-resolver-service.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM gleif/dkr:latest
FROM 2byrds/webs:latest

EXPOSE 7677

CMD ["/usr/local/var/did-keri-resolver/scripts/did-webs-resolver-service.sh"]
WORKDIR /usr/local/var/webs/volume/dkr/examples
4 changes: 2 additions & 2 deletions images/did-webs-service.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM gleif/dkr:latest
FROM 2byrds/webs:latest

EXPOSE 7676

CMD ["/usr/local/var/did-keri-resolver/scripts/did-webs-service.sh"]
WORKDIR /usr/local/var/webs/volume/dkr/pages
12 changes: 0 additions & 12 deletions images/dkr.dockerfile

This file was deleted.

10 changes: 10 additions & 0 deletions images/webs.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM gleif/keri:latest

WORKDIR /usr/local/var

RUN mkdir webs
COPY . /usr/local/var/webs

WORKDIR /usr/local/var/webs/

RUN pip install -r requirements.txt
Loading

0 comments on commit 85ed646

Please sign in to comment.