-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbash
More file actions
executable file
·18 lines (16 loc) · 814 Bytes
/
Copy pathbash
File metadata and controls
executable file
·18 lines (16 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
# This shell script is useful for launching a bash shell within
# the wkhtmltos3 docker container.
#
# The ACCESS_KEY_ID and SECRET_ACCESS_KEY env vars will be used
# from your host terminal session if defined. Otherwise, you will
# need to define them in the container's bash shell or in the
# command-line options passed to the `node src/wkhtmltos3.js`
# invocation.
#
# eg:
# hostOS$ export ACCESS_KEY_ID=AKIA000NOTREALKEY000
# hostOS$ export SECRET_ACCESS_KEY=l2r+0000000NotRealSecretAccessKey0000000
# hostOS$ ./bash
# docker# node src/wkhtmltos3.js -V -b my-unique-bucket -k 123/profile12345.jpg 'http://some.com/retailers/123/users/12345/profile.html'
docker run --rm -it -v $(pwd):/myapp --entrypoint=/bin/bash -e ACCESS_KEY_ID -e SECRET_ACCESS_KEY danlynn/wkhtmltos3:latest