logo

Docker

This guide helps you set up hoop with Docker.

Embedded

Hoop can be run alongside your main application via embedded mode.
docker
FROM python:3.9-slim RUN mkdir /app WORKDIR /app RUN apt-get update -y && \ apt-get install curl -y && \ curl -s -L https://releases.hoop.dev/release/install-cli.sh | sh RUN pip install --upgrade pip COPY requirements.txt /app RUN pip install -r requirements.txt COPY . /app/ EXPOSE 8000 ENTRYPOINT ["hoopstart", "--"] CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
Python Dockerfile example

Standalone

It runs the agent as a single process in a docker container
shell
docker run --name hoopagent -e HOOP_KEY=<AUTH-KEY> hoophq/hoopdev
💡
The image hoophq/hoopdev is only suited for amd64 architecture

Powered by Notaku