-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Docker instructions #337
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
|
||
Run portia: | ||
|
||
docker run -i -t --rm \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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:
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||
|
This file was deleted.
There was a problem hiding this comment.
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'
withDocker version 1.10.0, build 590d5108
in Ubuntu 14.04 LTSThere was a problem hiding this comment.
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
There was a problem hiding this comment.
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.edocker create --name portia-data -v /app/slyd/data portia
using the latest docker version