Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker instructions #337

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions DOCKER-README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Portia
======

Portia is a tool that allows you to visually scrape websites without any programming knowledge required. With Portia you can annotate a web page to identify the data you wish to extract, and Portia will understand based on these annotations how to scrape data from similar pages.

# Running Portia

The easiest way to run Portia is using Docker.

Clone the repository:

git clone https://github.com/scrapinghub/portia

Then inside the Portia directory, run:

docker build -t portia .

Create a Docker [volume](https://docs.docker.com/engine/userguide/dockervolumes/) for the Portia project data:

docker create --name portia-data -v /app/slyd/data:rw portia
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@e6 when i run this i get a Error response from daemon: Invalid bind mount spec "/app/slyd/data:rw": volumeinvalid: Invalid volume specification: '/app/slyd/data:rw' with Docker version 1.10.0, build 590d5108 in Ubuntu 14.04 LTS

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type the following command to create the volume where portia will store the data, then run the docker run command and report back --

docker create --name portia-data -v /app/slyd/data:rw portia

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@e6 i got this to work if i dont specify the rw i.e docker create --name portia-data -v /app/slyd/data portia using the latest docker version


Run portia:

docker run -i -t --rm \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@e6 when i try running this (without the volume created) i get a:

Traceback (most recent call last):
  File "bin/slyd", line 41, in <module>
    splash.server.main()
  File "/usr/local/lib/python2.7/dist-packages/splash/server.py", line 326, in main
    opts, _ = parse_opts(jupyter, argv)
TypeError: add_args() takes no arguments (2 given)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@e6 even with the volume successfully created i am still running into this issue. Could it be a master problem?

-v portia-data:/app/slyd/data:rw \
-p 9001:9001 \
--name portia \
portia

Portia will now be running on port 9001 and you can access it at:

http://localhost:9001/static/index.html (http://192.168.99.100:9001 if using boot2docker-windows)

Projects will be stored in the project folder that you mount at:

portia-data


For more detailed instructions, and alternatives such as Vagrant, see the [Installation](http://portia.readthedocs.org/en/latest/installation.html) docs.

# Documentation

Documentation can be found [here](http://portia.readthedocs.org/en/latest/index.html). Source files can be found in the ``docs`` directory.

23 changes: 0 additions & 23 deletions README.md

This file was deleted.