Sign inSign up

mooreap/tweeboparserdocker

By mooreap

•Updated over 8 years ago

Docker image for TweeboParser API server

Image
0

488

mooreap/tweeboparserdocker repository overview

⁠TweeboParser Docker image

This Dockerfile installs all the requirements to run TweeboParser API server and by default runs on localhost on port 8000. Options to change the following can be given:

  1. port -- the port that the server runs from (default: 8000).
  2. hostname -- the hostname the server runs from (default: 0.0.0.0).
  3. threads -- the number of threads the server uses (default: Number of cpus on the machine running the server).

To run:

docker run -p 8000:8000 --rm mooreap/tweeboparserdocker

If you want to map the port 8000 running from the docker image to your local machines 8050 port:

docker run -p 8050:8000 --rm mooreap/tweeboparserdocker

If you want to run the server as a background task add -d:

docker run -p 8000:8000 -d --rm mooreap/tweeboparserdocker

Different options:

  1. Setting the port on the API server to 9000:
docker run -p 9000:9000 --rm mooreap/tweeboparserdocker --port 9000
  1. Setting the hostname to 10.1.1.1 on the API server:
docker run -p 8000:8000 --rm mooreap/tweeboparserdocker --hostname 10.1.1.1
  1. Setting the number of threads to 3:
docker run -p 8000:8000 --rm mooreap/tweeboparserdocker --threads 3
  1. To get help on any of the options above:
docker run --rm mooreap/tweeboparserdocker -h

Tag summary

Content type

Image

Digest

Size

867.5 MB

Last updated

over 8 years ago

docker pull mooreap/tweeboparserdocker