mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Fix #3 add dockerfile
This commit is contained in:
47
README.md
47
README.md
@@ -16,7 +16,6 @@
|
||||
|
||||
**kleinanzeigen-bot** is a console based application to ease publishing of ads to ebay-kleinanzeigen.de.
|
||||
|
||||
|
||||
It is a spiritual successor to [AnzeigenOrg/ebayKleinanzeigen](https://github.com/AnzeigenOrg/ebayKleinanzeigen) with the following advantages:
|
||||
- supports Microsoft Edge browser (Chromium based)
|
||||
- compatible chromedriver is installed automatically
|
||||
@@ -77,6 +76,52 @@ It is a spiritual successor to [AnzeigenOrg/ebayKleinanzeigen](https://github.co
|
||||
python -m kleinanzeigen_bot --help
|
||||
```
|
||||
|
||||
### Installation using Docker
|
||||
|
||||
1. The following components need to be installed:
|
||||
1. [Docker](https://www.docker.com/)
|
||||
1. [git client](https://git-scm.com/downloads)
|
||||
1. [Bash](https://www.gnu.org/software/bash/) (on Windows e.g. via [Cygwin](https://www.cygwin.com/), [MSys2](https://www.msys2.org/) or git)
|
||||
1. [X11 - X Window System](https://en.wikipedia.org/wiki/X_Window_System) display server (on Windows e.g. https://github.com/P-St/Portable-X-Server/releases/latest)
|
||||
|
||||
1. Clone the repo using
|
||||
```
|
||||
git clone https://github.com/kleinanzeigen-bot/kleinanzeigen-bot/
|
||||
```
|
||||
|
||||
1. Open the cloned directory in a Bash terminal window and navigate to the [docker](docker) subdirectory
|
||||
|
||||
1. Execute `bash build-image.sh`
|
||||
|
||||
1. Ensure the image is build:
|
||||
|
||||
```
|
||||
$ docker image ls
|
||||
REPOSITORY TAG IMAGE ID CREATED SIZE
|
||||
kleinanzeigen-bot/kleinanzeigen-bot latest c31fd256eeea 1 minute ago 590MB
|
||||
python 3-slim 2052f0475488 5 days ago 123MB
|
||||
```
|
||||
|
||||
**Running the docker image:**
|
||||
1. Ensure the X11 Server is running
|
||||
|
||||
1. Run the docker image:
|
||||
|
||||
```bash
|
||||
X11_DISPLAY=192.168.50.34:0.0 # replace with IP address of workstation where X11 server is running
|
||||
|
||||
DATA_DIR=/var/opt/data/kleinanzeigen-bot # path to config
|
||||
|
||||
# /mnt/data is the container's default working directory
|
||||
docker run --rm --interactive --tty \
|
||||
--shm-size=256m \
|
||||
-e DISPLAY=$X11_DISPLAY \
|
||||
-v $DATA_DIR:/mnt/data \
|
||||
kleinanzeigen-bot/kleinanzeigen-bot \
|
||||
--help
|
||||
```
|
||||
|
||||
|
||||
## <a name="usage"></a>Usage
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in New Issue
Block a user