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

Restore aca-py script for when poetry's script support is not suitable #2511

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 10 additions & 0 deletions bin/aca-py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

if [ -z "$PYTHON" ]; then
PYTHON=`command -v python3`
if [ -z "$PYTHON" ]; then
PYTHON=python
fi
fi

$PYTHON -m aries_cloudagent "$@"
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ENV HOME="/home/$user" \
PIP_NO_CACHE_DIR=off \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8 \
RUST_LOG=warning \
RUST_LOG=warn \
SHELL=/bin/bash \
SUMMARY="aries-cloudagent image" \
DESCRIPTION="aries-cloudagent provides a base image for running Hyperledger Aries agents in Docker. \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.demo
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ADD README.md pyproject.toml poetry.lock ./
RUN poetry install --no-root --no-directory -E "askar bbs"

ADD aries_cloudagent ./aries_cloudagent
ADD bin ./bin
ADD scripts ./scripts

RUN pip3 install --no-cache-dir -e .
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.indy
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ENV HOME="/home/$user" \
PIP_NO_CACHE_DIR=off \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8 \
RUST_LOG=warning \
RUST_LOG=warn \
SHELL=/bin/bash \
SUMMARY="indy-python base image" \
DESCRIPTION="aries-cloudagent provides a base image for running Hyperledger Aries agents in Docker. \
Expand Down Expand Up @@ -227,7 +227,7 @@ ENV HOME="/home/$user" \
PIP_NO_CACHE_DIR=off \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8 \
RUST_LOG=warning \
RUST_LOG=warn \
SHELL=/bin/bash \
SUMMARY="aries-cloudagent image" \
DESCRIPTION="aries-cloudagent provides a base image for running Hyperledger Aries agents in Docker. \
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.run
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ ADD aries_cloudagent/version.py aries_cloudagent/version.py

RUN mkdir -p logs && chmod -R ug+rw logs
ADD aries_cloudagent ./aries_cloudagent
ADD bin ./bin

ENTRYPOINT ["/bin/bash", "-c", "poetry run aca-py \"$@\"", "--"]