Tista
Tista
RRailway
Created by Tista on 4/2/2024 in #✋|help
Down only in Dubai
Hi Railway, Starting around 7.30 PM UTC +4, we can’t access our production instances. The URL is zestequity.com and app.zestequity.com We are getting 503s when accessing both URLs from Dubai. However, we can access them from other parts of the world. We can confirm even though cloudflare is in front of the domains, they resolve to Railway. Here is our project link https://railway.app/project/56943544-81c5-486d-8741-d8cca3f88ed1 Thank you Railway.
2 replies
RRailway
Created by Tista on 3/19/2024 in #✋|help
Blue/Green Deployment - Traffic To New Deployments Delayed
No description
7 replies
RRailway
Created by Tista on 3/8/2024 in #✋|help
Experiencing Intermittent Network Issues
No description
24 replies
RRailway
Created by Tista on 10/19/2023 in #✋|help
Mount Type Cache in Dockerfile
FROM python:3.11-buster as builder

RUN pip install poetry==1.3.2

ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_CREATE=1 \
POETRY_CACHE_DIR=/tmp/poetry_cache

RUN rm -rf /var/lib/apt/lists/*

WORKDIR /src

COPY pyproject.toml poetry.lock ./
RUN touch README.md

RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --without dev --no-root

FROM python:3.11-buster as runtime

ENV VIRTUAL_ENV=/src/.venv \
PATH="/src/.venv/bin:$PATH"

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

WORKDIR /src
COPY . ./

RUN chmod +x /src/bin/run

CMD ["/src/bin/run"]
FROM python:3.11-buster as builder

RUN pip install poetry==1.3.2

ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_CREATE=1 \
POETRY_CACHE_DIR=/tmp/poetry_cache

RUN rm -rf /var/lib/apt/lists/*

WORKDIR /src

COPY pyproject.toml poetry.lock ./
RUN touch README.md

RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --without dev --no-root

FROM python:3.11-buster as runtime

ENV VIRTUAL_ENV=/src/.venv \
PATH="/src/.venv/bin:$PATH"

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

WORKDIR /src
COPY . ./

RUN chmod +x /src/bin/run

CMD ["/src/bin/run"]
Hi Railway, I tried to use this dockerfile but it's refusing to build because it says that I need to specfiy an ID for the cache mount. I added the ID but then docker couldn't find the ID. This dockerfile built just fine locally but I couldn't get it to work in Railway. I thought about adding a volume but it seems that the option to add a volume is not there anymore.
6 replies