Skip to content

Commit

Permalink
install akatsuki-cli in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Nov 10, 2023
1 parent 4c19195 commit 3bbdd92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ COPY migrations /migrations

RUN apt update && apt install -y openssl python3-pip

RUN pip install -i https://pypi2.akatsuki.gg/cmyui/dev akatsuki-cli

COPY --from=build /performance-service/target/release/performance-service /usr/local/bin
CMD ["/scripts/bootstrap.sh"]
3 changes: 1 addition & 2 deletions scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ if [ -z "$APP_COMPONENT" ]; then
fi

if [[ $PULL_SECRETS_FROM_VAULT -eq 1 ]]; then
pip install --break-system-packages -i $PYPI_INDEX_URL akatsuki-cli
# TODO: revert to $APP_ENV
akatsuki vault get performance-service production-k8s -o .env
source .env
Expand All @@ -28,4 +27,4 @@ fi
/scripts/await-service.sh $AMQP_HOST $AMQP_PORT $SERVICE_READINESS_TIMEOUT

# run the service (APP_COMPONENT is handled by the service)
/usr/local/bin/performance-service
exec /usr/local/bin/performance-service

0 comments on commit 3bbdd92

Please sign in to comment.