Giter Club home page Giter Club logo

Comments (8)

jan-auer avatar jan-auer commented on May 31, 2024

Hi, thanks for reporting this. It has already been fixed and a release is on the way

from symbolic.

jan-auer avatar jan-auer commented on May 31, 2024

Quick follow-up: We're introducing a couple of breaking changes so the release might actually take a little longer. In the meanwhile, you can always just use the prebuilt wheels that we distribute with every release.

from symbolic.

jjlorenzo avatar jjlorenzo commented on May 31, 2024

I understand
I forgot to mention that the prebuilt wheels doesn't works because I use Alpine.
Thanks

from symbolic.

mitsuhiko avatar mitsuhiko commented on May 31, 2024

Just a quick heads up: sentry itself does not run on alpine so if the attempt is to make sentry work on alpine that won't go very far :)

from symbolic.

jjlorenzo avatar jjlorenzo commented on May 31, 2024

Well to be honest, I don't have much knowledge of sentry because I'm new to this wonderful project, but I was able to run sentry on alpine and it seams to be working, I'm missing something?

I had a restricted environment for a client that manage PHI and because the rest of the containers are based on alpine I try installing onpremise using alpine and except symbolic compilation, I have not faced big problems so far.

This is my dockerfile

FROM alpine:3.7

RUN set -ex &&\
  apk upgrade --no-cache &&\
  echo "@edge-testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories &&\
  echo "@v36-main http://dl-cdn.alpinelinux.org/alpine/v3.6/main" >> /etc/apk/repositories &&\
  apk add --no-cache \
    jansson \
    libcap \
    libjpeg-turbo \
    libpq@v36-main \
    libxslt \
    openjpeg \
    pcre \
    tiff \
    tzdata &&\
  apk add --no-cache \
    libmemcached \
    memcached \
    postgresql-client@v36-main \
    postgresql-contrib@v36-main \
    postgresql@v36-main \
    py2-pip \
    rabbitmq-server@edge-testing \
    redis &&\
  pip install --no-cache-dir --disable-pip-version-check --use-wheel --no-index \
    --find-links=https://private/wheels/sentry/8.22.0 \
    librabbitmq \
    python-memcached \
    sentry \
    sentry-plugins

RUN set -ex &&\
  addgroup -S sentry && adduser -h /var/lib/sentry -G sentry -S -D -s /sbin/nologin -g sentry sentry &&\
  install -d -o nobody -g nobody -m 0755 \
    /var/log/memcached \
    /var/log/postgresql \
    /var/log/rabbitmq \
    /var/log/redis \
    /var/log/sentry-cron \
    /var/log/sentry-web \
    /var/log/sentry-worker &&\
  install -d -o memcached -g memcached -m 0755 /var/lib/memcached

RUN set -ex &&\
  apk add --no-cache \
    curl \
    htop \
    multitail \
    nano

ENV ENV /etc/profile

ENV LANG en_US.utf8

ENV S6_BEHAVIOUR_IF_STAGE2_FAILS 2

ENV S6_LOGGING_SCRIPT "n30 s268435455 T"

ENV TERM xterm-256color

ADD s6-overlay-amd64.tar.gz /

COPY . /

ENTRYPOINT ["/init"]

I previously build all sentry wheels using an alpine box prepared for that, here is the dockerfile

FROM alpine:3.7

RUN set -ex &&\
  apk update &&\
  apk upgrade &&\
  echo "@edge-testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories &&\
  echo "@v36-main http://dl-cdn.alpinelinux.org/alpine/v3.6/main" >> /etc/apk/repositories &&\
  apk update &&\
  apk add \
    attr-dev \
    build-base \
    cargo \
    curl-dev \
    freetype-dev \
    geoip-dev \
    git \
    jansson-dev \
    jpeg-dev \
    lcms2-dev \
    less \
    libcap-dev \
    libffi-dev \
    libpng-dev \
    libwebp-dev \
    libxml2-dev \
    libxslt-dev \
    linux-headers \
    linux-pam-dev \
    lua5.2-dev \
    ncdu \
    openjpeg-dev \
    paxmark \
    pcre-dev \
    postgresql-dev@v36-main \
    py-setuptools \
    python-dev \
    tiff-dev \
    zeromq-dev \
    zlib-dev &&\
  apk add py2-pip &&\
  pip install --no-cache-dir --disable-pip-version-check wheel

ENV ENV /etc/profile

ENV TERM xterm-256color

COPY rootfs/ /

COPY docker-build docker-run Dockerfile /

WORKDIR dist

cd `mktemp -d`
git clone https://github.com/getsentry/symbolic
cd symbolic
git submodule update --init --recursive
make wheel
cp py/dist/*.whl /wheels/

cd /dist
rm -r ${OLDPWD}

pip wheel --wheel-dir=`pwd` --find-links=`pwd` sentry
pip wheel --wheel-dir=`pwd` --find-links=`pwd` librabbitmq
pip wheel --wheel-dir=`pwd` --find-links=`pwd` python-memcached

from symbolic.

mitsuhiko avatar mitsuhiko commented on May 31, 2024

Maybe we're in a better state now that we changed some of our dependencies. In the past we were unable to provide an alpine based docker installation because we needed glibc.

from symbolic.

jjlorenzo avatar jjlorenzo commented on May 31, 2024

Fixed in 2.0.0, the wheel now correctly compile in alpine. Thanks!

from symbolic.

vincent-heatseekr avatar vincent-heatseekr commented on May 31, 2024

This sudo apt-get install -y cargo fixed it for me.

from symbolic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.