dockerize

master
Clemens Klug 2018-05-29 11:33:17 +02:00
parent b4f0e11b06
commit cdbb4f4688
4 changed files with 41 additions and 14 deletions

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM alpine:3.7
ADD . /
RUN apk add --update --no-cache python3 && pip3 --no-cache-dir install -r requirements.txt
ENTRYPOINT ["python3", "dudle2csv.py"]

31
Readme.md Normal file
View File

@ -0,0 +1,31 @@
# Usage
Steps in [] are optional
## Docker (compose)
### Docker-compose
* [`docker-compose build`]
* `docker-compose run dudle2csv <DUDLE-URL>` [> data.csv]
* [`docker-compose down --remove-orphans`]
* [`docker rmi fswiai/dudle2csv:0.1`]
### Docker
* `docker built -t fswiai/dudle2csv:0.1 .`
* `docker run --rm fswiai/dudle2csv:0.1 <DUDLE-URL>` [> data.csv]
* [`docker rmi fswiai/dudle2csv:0.1`]
## lame
### Preparation
* [make virtualenv: `python3 -m venv .venv`]
* [activate venv: `source .venv/bin/activate`]
* install dependencies: `pip3 install -r requirements.txt`
### Run
`python3 dudle2csv.py -h`

View File

@ -1,14 +0,0 @@
Usage
=====
Preparation
-----------
* [make virtualenv: `python3 -m venv .venv`]
* [activate venv: `source .venv/bin/activate`]
* install dependencies: `pip3 install -r requirements.txt`
Run
---
`python3 dudle2csv.py -h`

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
version: "3"
services:
dudle2csv:
build: .
image: fswiai/dudle2csv:0.1