-
-
Save AllenJB/da3339d59b93deacbe0d5a656cb265dc to your computer and use it in GitHub Desktop.
Sentry Docker with plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM sentry:8.9 | |
WORKDIR /usr/src/sentry | |
RUN apt-get install -y --no-install-recommends curl | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
RUN apt-get install -y --no-install-recommends nodejs | |
# Add WORKDIR to PYTHONPATH so local python files don't need to be installed | |
ENV PYTHONPATH /usr/src/sentry | |
ONBUILD COPY . /usr/src/sentry | |
# Hook for installing additional plugins | |
ONBUILD RUN if [ -s requirements.txt ]; then pip install -r requirements.txt; fi | |
# Hook for installing a local app as an addon | |
ONBUILD RUN if [ -s setup.py ]; then pip install -e .; fi | |
# Hook for staging in custom configs | |
ONBUILD RUN if [ -s sentry.conf.py ]; then cp sentry.conf.py $SENTRY_CONF/; fi \ | |
&& if [ -s config.yml ]; then cp config.yml $SENTRY_CONF/; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@errors onpremise]# docker-compose build | |
postgres uses an image, skipping | |
redis uses an image, skipping | |
smtp uses an image, skipping | |
Building base | |
Step 1 : FROM sentry:8.9 | |
---> 80d2f94e0e96 | |
Step 2 : WORKDIR /usr/src/sentry | |
---> Using cache | |
---> e396cf89588b | |
Step 3 : RUN apt-get install -y --no-install-recommeds curl | |
---> Running in 506b4c0b683a | |
E: Command line option --no-install-recommeds is not understood | |
ERROR: Service 'base' failed to build: The command '/bin/sh -c apt-get install -y --no-install-recommeds curl' returned a non-zero code: 100 | |
[root@errors onpremise]# nano Dockerfile | |
[root@errors onpremise]# docker-compose build | |
postgres uses an image, skipping | |
redis uses an image, skipping | |
smtp uses an image, skipping | |
Building base | |
Step 1 : FROM sentry:8.9 | |
---> 80d2f94e0e96 | |
Step 2 : WORKDIR /usr/src/sentry | |
---> Using cache | |
---> e396cf89588b | |
Step 3 : RUN apt-get install -y --no-install-recommends curl | |
---> Running in fb551fae3757 | |
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
E: Unable to locate package curl | |
ERROR: Service 'base' failed to build: The command '/bin/sh -c apt-get install -y --no-install-recommends curl' returned a non-zero code: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
copying src/sentry_plugins/jira_ac/templates/widget.html -> build/lib/sentry_plugins/jira_ac/templates | |
running build_assets | |
command failed [node --version] via [/tmp/pip-pBUpFl-build] | |
Cannot find `node` executable. Please install node` and try again. | |
---------------------------------------- | |
Command "/usr/local/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-pBUpFl-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-dmSzpl-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-pBUpFl-build/ | |
Removing intermediate container 2bd8169cff97 | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add plugins here | |
https://github.com/getsentry/sentry-plugins/archive/master.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment