forked from WebOfTrust/keria
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
4,551 additions
and
1,247 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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
push: | ||
branches: | ||
- 'main' | ||
- 'dev' | ||
- 'development' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
|
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 build --no-cache -f images/keria.dockerfile --tag weboftrust/keria:0.0.1 . | ||
@docker buildx build --platform=linux/amd64 --no-cache -f images/keria.dockerfile --tag weboftrust/keria:0.1.0 --tag weboftrust/keria:latest . | ||
|
||
publish-keria: | ||
@docker push weboftrust/keria:0.0.1 | ||
@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
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,31 +1,55 @@ | ||
# Builder stage | ||
FROM python:3.10.13-alpine3.18 as builder | ||
|
||
FROM python:3.10.4-alpine3.16 | ||
# Install compilation dependencies | ||
RUN apk --no-cache add \ | ||
bash \ | ||
alpine-sdk \ | ||
libffi-dev \ | ||
libsodium \ | ||
libsodium-dev | ||
|
||
RUN apk update | ||
RUN apk add bash | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
RUN apk add alpine-sdk | ||
RUN apk add libffi-dev | ||
RUN apk add libsodium | ||
RUN apk add libsodium-dev | ||
|
||
# Setup Rust for blake3 dependency build | ||
# Install Rust for blake3 dependency build | ||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
|
||
COPY . /keria | ||
WORKDIR /keria | ||
|
||
# Install KERIpy dependencies | ||
# Must source the Cargo environment for the blake3 library to see the Rust intallation during requirements install | ||
RUN source "$HOME/.cargo/env" && pip install -r requirements.txt | ||
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 | ||
|
||
ENV KERI_AGENT_CORS=${KERI_AGENT_CORS:-false} | ||
|
||
RUN mkdir -p /usr/local/var/keri | ||
COPY src/ src/ | ||
|
||
ENTRYPOINT ["keria", "start", "--config-file", "demo-witness-oobis", "--config-dir", "./scripts"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,12 +34,12 @@ | |
|
||
setup( | ||
name='keria', | ||
version='0.0.1', # also change in src/keria/__init__.py | ||
version='0.1.0', # also change in src/keria/__init__.py | ||
license='Apache Software License 2.0', | ||
description='KERIA: KERI Agent in the cloud', | ||
long_description="KERIA: KERI Agent in the cloud.", | ||
author='Samuel M. Smith', | ||
author_email='[email protected]', | ||
author='Philip S. Feairheller', | ||
author_email='[email protected]', | ||
url='https://github.com/WebOfTrust/keria', | ||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
|
@@ -76,7 +76,7 @@ | |
python_requires='>=3.10.4', | ||
install_requires=[ | ||
'hio>=0.6.9', | ||
'keri @ git+https://[email protected]/WebOfTrust/keripy.git', | ||
'keri>=1.1.0', | ||
'mnemonic>=0.20', | ||
'multicommand>=1.0.0', | ||
'falcon>=3.1.0', | ||
|
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
main package | ||
""" | ||
|
||
__version__ = '0.0.1' # also change in setup.py | ||
__version__ = '0.1.0' # also change in setup.py | ||
|
Oops, something went wrong.