1. Install portia on mac.https://github.com/scrapinghub/portia
Gitcone for later use
docker build -t portia .
At last, a mistake broke out.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/python3-defaults/python3-dev_3.4.0-0ubuntu2_amd64.deb Connection failed [IP: 22.214.171.124 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Command failed (exitcode: 100), exiting ...
Is it because ubuntu’s source needs to be changed?
This is because the download from ubuntu official source failed during the build.
You can try it several times, maybe you will succeed when the network is good.
Or change ubuntu’s source to a domestic source: for example163Yes. Note that this requires modifying the command in Dockerfile.
However, it is still recommended to download directly.Docker mirror：
docker pull scrapinghub/portia-on-dash