Skip to content

Commit

Permalink
Restore aca-py script for when poetry's script support is not suitable
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavinok committed Sep 22, 2023
1 parent 0867ad1 commit aef0e2c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
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 "$@"
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
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 \"$@\"", "--"]

0 comments on commit aef0e2c

Please sign in to comment.