# 1. Setup environment

Requirements:

docker-2.3.0 docker-compose-1.13.0

Note: make sure to run this on your host. This is needed for elasticsearch to work.

`sudo sysctl -w vm.max_map_count=262144`

Step 1: Get the code and Fetch the images

start by getting your copy of the spiderbreeder

`$ git clone git@git.acolono.net:hoaxly/hoaxly-scraping-container.git`&#x20;

`$ cd hoaxly-scraping-container`&#x20;

Login to our registry (using your gitlab credentials) to get at the images that you need in order to locally build and run spiders.

`docker login registry.acolono.net:444 docker pull registry.acolono.net:444/hoaxly/hoaxly-storage-container`&#x20;

`docker pull registry.acolono.net:444/hoaxly/hoaxly-scrapydaemon-container docker pull registry.acolono.net:444/hoaxly/hoaxly-scraping-container`

Step 2: Spin up the local instances and initialize them.

In your project's rootfolder, run:

`fin init`&#x20;

Open your preferred browser and go to: <http://portia.hoaxly.docksal>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hoaxly.gitbook.io/documentation/developer-documentation/adding-new-sites-to-the-database/technical-steps-to-create-spiders/setup-environment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
