-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates for escrow fix, align with kerupy 1.1.17 and #235
Signed-off-by: Kevin Griffin <[email protected]>
- Loading branch information
Showing
11 changed files
with
86 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.PHONY: build-keria | ||
build-keria: | ||
@docker buildx build --platform=linux/amd64 --no-cache -f images/keria.dockerfile --tag weboftrust/keria:0.1.3 --tag weboftrust/keria:latest . | ||
@docker buildx build --platform=linux/amd64 --no-cache -f images/keria.dockerfile --tag weboftrust/keria:0.1.4-dev0 --tag weboftrust/keria:latest . | ||
|
||
publish-keria: | ||
@docker push weboftrust/keria --all-tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,10 @@ | ||
# Builder stage | ||
FROM python:3.10.13-alpine3.18 as builder | ||
FROM weboftrust/keri:1.1.17 | ||
|
||
# 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.10.13-alpine3.18 | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.