Не удалось запустить cloudrun с ошибкой find_vma - PullRequest
1 голос
/ 04 мая 2020

Мой dockerfile для облачного запуска, как показано ниже.

FROM alpine:3.10.5

USER root

RUN apk update \
&& apk upgrade \
&& apk add --no-cache bash \
&& apk add --no-cache --virtual=build-dependencies unzip \
&& apk add --no-cache curl \
&& apk add --no-cache openjdk8-jre

RUN apk add --no-cache python3 \
&& python3 -m ensurepip \
&& pip3 install --upgrade pip setuptools wheel \
&& rm -r /usr/lib/python*/ensurepip && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi 

WORKDIR /opt/bin

RUN pip install Flask 'gunicorn>=20.0.1,<21' sqlalchemy pg8000 logger

COPY <some jar files>.jar /opt/bin/
COPY *.py /opt/bin/
RUN rm -r /root/.cache

CMD exec gunicorn --bind :$PORT --workers 2 --threads 8 --worker-tmp-dir /dev/shm --timeout 30 http_test 

, когда я запускаю образ docker на cloudrun, при отправке запроса GET на URL-адрес, указанный Cloudrun, я получаю следующую ошибку:

020-05-04 13:22:14.551 ISTContainer Sandbox: Unsupported syscall membarrier(0x10,0x0,0x0,0x8,0x3e57651d89a0,0x3e57651d8a30). It is very likely that you can safely ignore this message and that this is not the cause of any error you might be troubleshooting. Please, refer to https://gvisor.dev/c/linux/amd64/membarrier for more information.
2020-05-04 13:22:14.603 ISTOpenJDK 64-Bit Server VM warning: Can't detect primordial thread stack location - find_vma failed

Пробовали разные Альпийские изображения, переключены на gunicorn20.0.1, чтобы избежать проблем с lib c, безрезультатно. Любые предложения, помощь будет принята с благодарностью.

...