Skip to content

Commit

Permalink
add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
kimpham54 committed Dec 19, 2024
1 parent 3f3e2b3 commit fd06b0c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions bin/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
#docker run --rm --mount type=bind,source=${PWD},target=/app -it --entrypoint /bin/bash artifactory.huit.harvard.edu/lts/jp2_remediator $@

## Executable Docker image
# docker run --rm --mount type=bind,source=${PWD},target=/app -it artifactory.huit.harvard.edu/lts/jp2_remediator $@
docker run --rm --mount type=bind,source=${PWD},target=/data -it artifactory.huit.harvard.edu/lts/jp2_remediator $@

# Create an .env file in the same directory with AWS credentials
set -a
source $(dirname "$0")/.env
set +a
## Passing AWS credentials: If you want to use the s3 bucket option, create an .env file in the same directory with AWS credentials
# set -a
# source $(dirname "$0")/.env
# set +a

docker run --rm \
--mount type=bind,source=${PWD},target=/app \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
-e AWS_SESSION_TOKEN \
-it artifactory.huit.harvard.edu/lts/jp2_remediator "$@"
# docker run --rm \
# --mount type=bind,source=${PWD},target=/data \
# -e AWS_ACCESS_KEY_ID \
# -e AWS_SECRET_ACCESS_KEY \
# -e AWS_SESSION_TOKEN \
# -it artifactory.huit.harvard.edu/lts/jp2_remediator "$@"

0 comments on commit fd06b0c

Please sign in to comment.