-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jamshale <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,281 additions
and
1,095 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,21 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.134.0/containers/python-3/.devcontainer/base.Dockerfile | ||
ARG VARIANT="3.9" | ||
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} | ||
ARG VARIANT="3.12" | ||
FROM mcr.microsoft.com/devcontainers/python:${VARIANT} | ||
|
||
# Poetry | ||
ARG POETRY_VERSION="none" | ||
RUN if [ "${POETRY_VERSION}" != "none" ]; then su vscode -c "umask 0002 && pip3 install poetry==${POETRY_VERSION}"; fi | ||
ARG POETRY_VERSION="1.8.3" | ||
ENV POETRY_HOME="/opt/poetry" \ | ||
POETRY_VERSION=${POETRY_VERSION} | ||
|
||
RUN curl -sSL https://install.python-poetry.org | python3 - \ | ||
&& update-alternatives --install /usr/local/bin/poetry poetry /opt/poetry/bin/poetry 900 \ | ||
# Enable tab completion for bash | ||
&& poetry completions bash >> /home/vscode/.bash_completion \ | ||
# Enable tab completion for Zsh | ||
&& mkdir -p /home/vscode/.zfunc/ \ | ||
&& poetry completions zsh > /home/vscode/.zfunc/_poetry \ | ||
&& echo "fpath+=~/.zfunc\nautoload -Uz compinit && compinit" >> /home/vscode/.zshrc | ||
|
||
COPY pyproject.toml poetry.lock ./ | ||
COPY /traction_innkeeper ./traction_innkeeper | ||
RUN poetry config virtualenvs.create false \ | ||
&& poetry install --no-root --all-extras \ | ||
&& rm -rf /root/.cache/pypoetry |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.12.2 AS base | ||
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.12-1.0.0 AS base | ||
|
||
# Install and Configure Poetry | ||
USER root | ||
ENV POETRY_VERSION=1.6.1 | ||
ENV POETRY_VERSION=1.8.3 | ||
ENV POETRY_HOME=/opt/poetry | ||
RUN apt-get update && apt-get install -y curl && apt-get clean | ||
RUN curl -sSL https://install.python-poetry.org | python - | ||
|
@@ -24,16 +24,17 @@ RUN poetry install --only main | |
RUN ln -s $(poetry env info -p)/lib/python3.6/site-packages site-packages | ||
|
||
|
||
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.12.2 | ||
FROM ghcr.io/hyperledger/aries-cloudagent-python:py3.12-1.0.0 | ||
COPY --from=base --chown=aries:aries /home/aries/.venv /home/aries/.venv | ||
ENV PATH="/home/aries/.venv/bin:$PATH" | ||
|
||
COPY --chown=aries:aries docker/default.yml ./ | ||
COPY --chown=aries:aries traction_innkeeper/traction_innkeeper traction_plugins/traction_innkeeper | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=basicmessage_storage | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=connection_update | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=multitenant_provider | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=rpc | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=basicmessage_storage | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=connection_update | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=multitenant_provider | ||
RUN pip install git+https://github.com/hyperledger/[email protected]#subdirectory=rpc | ||
|
||
|
||
ENTRYPOINT ["/bin/bash", "-c", "aca-py \"$@\"", "--"] | ||
CMD ["start", "--arg-file", "default.yml"] |
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.