Skip to content

Commit

Permalink
Attach aws cli configuration to docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
breadcentric committed Mar 26, 2020
1 parent b21af92 commit bdda351
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,22 @@ a set of Python files from which a notebook can then be genereted.
Finally, the project files have been moved to
[DeepRacer utils](https://github.com/aws-deepracer-community/deepracer-utils).

## Required setup

It is assumed that you have aws-cli installed and configured in your account.
You will find instructions in [documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html).
Without this the notebooks will not fail to load but fetching logs from AWS
will not work. If you realise this after running the notebook, you can open
a terminal withing Jupyter Lab and perform the configuration.

If this happens in Docker, just bear in mind that ~/.aws folder will be created
for you with root privileges - this may lead to permissions problems at some point.

## Using the notebooks with Docker

The recommended way to work with this project is by using Docker containers. Containers
provide an isolated, disposable environment for your use. If you however prefer not to use
Docker, see "Using the notebooks without Docker" below.
Docker (or are using Windows), see "Using the notebooks without Docker" below.

Since you're using DeepRacer Analysis, chances are you've already got Docker installed.
If not, find instructions in [Docker documentation](https://docs.docker.com/install/).
Expand Down
5 changes: 4 additions & 1 deletion bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ if test "$1" = "lab"; then
LAB_ENV="-e JUPYTER_ENABLE_LAB=yes"
fi

docker run --rm -d -p 8888:8888 $LAB_ENV -v "$SCRIPTPATH/..":/home/jovyan/work --name deepracer-analysis deepracer-analysis
docker run --rm -d -p 8888:8888 $LAB_ENV \
-v "$SCRIPTPATH/..":/home/jovyan/work \
-v ~/.aws:/home/jovyan/.aws \
--name deepracer-analysis deepracer-analysis

0 comments on commit bdda351

Please sign in to comment.