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

Fix/del rot smid rmid tests #254

Merged
merged 22 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
9a5e2dc
improved design and logic per review comments, still need to track th…
2byrds Jun 3, 2024
9348519
delegator endpoint processes dip as a long running processes. tests pass
2byrds Jun 3, 2024
042d551
small fixes to op checks
2byrds Jun 3, 2024
f589fab
small fixes on checking dip success
2byrds Jun 3, 2024
78cf663
remove unnecessary loop for interact operation
2byrds Jun 3, 2024
f9ab9a1
point to keri main for now, will use 1.2.0-dev5 when it's available
2byrds Jun 3, 2024
2c6ce5f
refactored degator end to delegating.py and corresponding tests and u…
2byrds Jun 4, 2024
f4de29d
consolidate to optype of 'delegation' and clean up tests
2byrds Jun 4, 2024
414744f
improve naming to be consistent with credentialing, and tested with s…
2byrds Jun 4, 2024
c900b85
fixes and tests rotation. also tested with signify-ts integration tes…
2byrds Jun 7, 2024
48046fd
fixed group end smids/rmids
2byrds Jun 12, 2024
6475a17
fix smid list in multisig request on_post
2byrds Jun 12, 2024
4a12a94
fix for intermittent smid/rmid dict or str
2byrds Jun 13, 2024
f41c79f
moving approval into longrunning operation, need to make approveDeleg…
2byrds Jun 13, 2024
903dfff
merged latest
2byrds Jun 13, 2024
32fc74f
successful delegated multisig integration testing with Signify-ts
2byrds Jun 13, 2024
54de5a7
set to tagged keripy 1.2.0.dev6
2byrds Jun 14, 2024
fcaf2fb
removed duplicate comment and simplified keria.dockerfile to leverage…
2byrds Jun 14, 2024
66b3e23
Remove any smids/rmids state dict test problems
2byrds Jun 21, 2024
59e7041
Removed unnecessary annotation
2byrds Jun 21, 2024
d3b3ee8
fix multisig join after original creation see https://github.com/WebO…
2byrds Jun 21, 2024
76d9a54
cleanup docker image entrypoint and instructions
2byrds Jun 22, 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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ All Agent db access is through the associated Agent.
make build-keria
```

#### Run with docker
* Specify an entrypoint with proper configuration, for instance if you want to use the demo-witness-oobis that is under the scripts/keri/cf dir:
```
ENTRYPOINT ["keria", "start", "--config-file", "demo-witness-oobis", "--config-dir", "./scripts"]
```
You can see a [working example here](https://github.com/WebOfTrust/signify-ts/blob/main/docker-compose.yaml).

### Running Tests

Expand Down
57 changes: 6 additions & 51 deletions images/keria.dockerfile
Original file line number Diff line number Diff line change
@@ -1,55 +1,10 @@
# Builder stage
FROM python:3.12-alpine3.19 as builder
FROM weboftrust/keri:1.2.0-dev6

# Install compilation dependencies
RUN apk --no-cache add \
bash \
alpine-sdk \
libffi-dev \
libsodium \
libsodium-dev
WORKDIR /usr/local/var

SHELL ["/bin/bash", "-c"]
RUN mkdir keria
COPY . /usr/local/var/keria

# Install Rust for blake3 dependency build
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
WORKDIR /usr/local/var/keria

WORKDIR /keria

RUN python -m venv venv
ENV PATH=/keria/venv/bin:${PATH}
RUN pip install --upgrade pip

# Copy in Python dependency files
COPY requirements.txt setup.py ./
# "src/" dir required for installation of dependencies with setup.py
RUN mkdir /keria/src
# Install Python dependencies
RUN . "$HOME/.cargo/env" && \
pip install -r requirements.txt

# Runtime stage
FROM python:3.12-alpine3.19

# Install runtime dependencies
RUN apk --no-cache add \
bash \
alpine-sdk \
libsodium-dev

WORKDIR /keria

# Copy over compiled dependencies
COPY --from=builder /keria /keria
# Copy in KERIA source files - enables near instantaneous builds for source only changes
RUN mkdir -p /usr/local/var/keri
ENV KERI_AGENT_CORS=${KERI_AGENT_CORS:-false}
ENV PATH=/keria/venv/bin:${PATH}

EXPOSE 3901
EXPOSE 3902
EXPOSE 3903

COPY src/ src/

ENTRYPOINT ["keria", "start", "--config-file", "demo-witness-oobis", "--config-dir", "./scripts"]
RUN pip install -r requirements.txt
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
python_requires='>=3.12.2',
install_requires=[
'hio>=0.6.12',
'keri @ git+https://github.com/WebOfTrust/keripy.git@main',
'keri>=1.2.0.dev6',
'mnemonic>=0.20',
'multicommand>=1.0.0',
'falcon>=3.1.3',
Expand Down
Loading
Loading