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.
implement basic auth for boot endpoint and configuration via environm…
…ent variables (#1)
- Loading branch information
Showing
7 changed files
with
218 additions
and
64 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 |
---|---|---|
@@ -1,10 +1,42 @@ | ||
FROM weboftrust/keri:1.1.17 | ||
ARG IMAGE_PYTHON_VERSION=3.10 | ||
FROM python:${IMAGE_PYTHON_VERSION}-alpine AS builder | ||
ARG IMAGE_PYTHON_VERSION | ||
|
||
WORKDIR /usr/local/var | ||
RUN apk --no-cache add \ | ||
bash \ | ||
alpine-sdk \ | ||
libffi-dev \ | ||
libsodium \ | ||
libsodium-dev | ||
|
||
RUN mkdir keria | ||
COPY . /usr/local/var/keria | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
WORKDIR /usr/local/var/keria | ||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
|
||
RUN pip install -r requirements.txt | ||
WORKDIR /keria | ||
|
||
RUN pip install --upgrade pip && python -m venv venv | ||
ENV PATH="/keria/venv/bin/:~/.cargo/bin:${PATH}" | ||
|
||
COPY requirements.txt requirements-freeze.txt setup.py ./ | ||
RUN mkdir /keria/src && pip install -r requirements.txt -r requirements-freeze.txt | ||
|
||
FROM python:${IMAGE_PYTHON_VERSION}-alpine AS runner | ||
ARG IMAGE_PYTHON_VERSION | ||
|
||
RUN apk --no-cache add \ | ||
bash \ | ||
alpine-sdk \ | ||
libsodium-dev | ||
|
||
WORKDIR /keria | ||
|
||
COPY --from=builder /keria /keria | ||
|
||
RUN mkdir -p /usr/local/var/keri | ||
|
||
COPY src/ src/ | ||
|
||
ENV PATH="/keria/venv/bin/:${PATH}" | ||
ENTRYPOINT [ "keria" ] | ||
CMD [ "start" ] |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apispec==6.6.1 | ||
attrs==23.2.0 | ||
blake3==0.4.1 | ||
cbor2==5.6.4 | ||
cffi==1.16.0 | ||
cryptography==42.0.8 | ||
dataclasses-json==0.6.7 | ||
falcon==3.1.3 | ||
hio==0.6.10 | ||
hjson==3.1.0 | ||
http_sfv==0.9.9 | ||
jsonschema==4.22.0 | ||
jsonschema-specifications==2023.12.1 | ||
keri==1.1.17 | ||
lmdb==1.5.1 | ||
marshmallow==3.21.3 | ||
mnemonic==0.21 | ||
msgpack==1.0.8 | ||
multicommand==1.0.0 | ||
multidict==6.0.5 | ||
mypy-extensions==1.0.0 | ||
ordered-set==4.1.0 | ||
packaging==24.1 | ||
prettytable==3.10.0 | ||
pycparser==2.22 | ||
pysodium==0.7.17 | ||
PyYAML==6.0.1 | ||
referencing==0.35.1 | ||
rpds-py==0.18.1 | ||
typing-inspect==0.9.0 | ||
typing_extensions==4.12.2 | ||
wcwidth==0.2.13 |
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.