Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

porting and extending Markus IIW tutorial #32

Merged
merged 19 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
faf40e9
porting and extending Markus IIW tutorial from https://github.com/pea…
2byrds Dec 15, 2023
0bcdeb2
removing oobi option. should generate from local hab
2byrds Dec 17, 2023
b20952c
getting started without oobi
2byrds Dec 17, 2023
390aeec
readable formatting
2byrds Dec 17, 2023
80873d7
Merge branch 'hyperledger-labs:main' into getting_started
2byrds Dec 17, 2023
9b2511b
improved integration test for generate, need to work service/resolve
2byrds Dec 21, 2023
9f410b8
improved integration test for generate, need to work service/resolve
2byrds Dec 21, 2023
fe7c909
fixed integration serving and resolving
2byrds Dec 22, 2023
191511a
testing docker and getting started guide. modifying commands, needs m…
2byrds Dec 23, 2023
fa0f12e
more progress for docker images scenario
2byrds Dec 25, 2023
682838a
align example with docker containers. still needs hosting and resolvi…
2byrds Dec 26, 2023
6221e96
Cleaning up script names
2byrds Dec 26, 2023
02bdf5e
served did:webs files from docker container and updated instructions
2byrds Dec 29, 2023
99e3978
Improving file server setup/instructions/impl, still working on hab f…
2byrds Jan 1, 2024
4bddca6
in the middle of a test to fix the missing hab bug during resolve call
2byrds Jan 2, 2024
48225d2
added unit test for non-hab aid
2byrds Jan 3, 2024
0dc58ba
recreating integration bug in integration script. will fix the bug next
2byrds Jan 3, 2024
9870033
Merge branch 'main' into getting_started
2byrds Jan 4, 2024
ef12efa
integration testing for the verifier/resolver. i'll create issues for…
2byrds Jan 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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