This PR adds support for migrating data from OpsGenie to Grafana IRM. Closes https://github.com/grafana/irm/issues/1179
18 lines
421 B
Docker
18 lines
421 B
Docker
FROM python:3.12.3-alpine3.18
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt requirements.txt
|
|
RUN python3 -m pip install -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# Create data directory and generate session ID
|
|
RUN mkdir -p /app/data && \
|
|
python3 -c "import uuid; open('/app/data/.session', 'w').write(str(uuid.uuid4()))"
|
|
|
|
# Set session file location
|
|
ENV SESSION_FILE=/app/data/.session
|
|
|
|
CMD ["python3", "main.py"]
|