Skip to content
This repository was archived by the owner on Dec 8, 2017. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM python:3
RUN mkdir /code
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,19 @@ To check an individual, use `check_user.py` with a `YYYY-MM-DD` date and a usern
python check_user.py 2016-10-23 vladlen.zvenyach
```

## Docker Usage

The easiest way to use the script is to use Docker.

First, make sure to copy the `.env.example` file into `.env`. Then, use is as simple as:

``` sh
docker-compose run app python run.py <date>
```

## Installation

You'll need to use some sort of strategy to export the environment variables in `.env.` I use [autoenv](https://github.com/kennethreitz/autoenv). Then:
If you are not using Docker, you'll need to use some sort of strategy to export the environment variables in `.env.` I use [autoenv](https://github.com/kennethreitz/autoenv). Then:

``` sh
git clone git@github.com:18F/tock-management-reports.git
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app:
build: .
command: python run.py
environment:
- TOCK_API_KEY
volumes:
- .:/code