Git Product home page Git Product logo

Comments (12)

hubertdeng123 avatar hubertdeng123 commented on August 16, 2024

Is this the entirety of your docker compose yml file? If so, I don't expect this process to work since there are a lot of other infrastructure components that are needed to run self-hosted here. This can be seen here:
https://github.com/getsentry/self-hosted/blob/419d6ccf4e4d0dde2db301e43370d019f9a4c69b/docker-compose.yml

from self-hosted.

suren11111 avatar suren11111 commented on August 16, 2024

Yes , this is my entirety docker compose yml file. I run your docker compose file it give me so many error. every time i solve a error this gives me another error. how do i solve this

from self-hosted.

suren11111 avatar suren11111 commented on August 16, 2024

WARNING: The SNUBA_IMAGE variable is not set. Defaulting to a blank string.
WARNING: The SYMBOLICATOR_IMAGE variable is not set. Defaulting to a blank string.
WARNING: The SENTRY_EVENT_RETENTION_DAYS variable is not set. Defaulting to a blank string.
WARNING: The SENTRY_BIND variable is not set. Defaulting to a blank string.
WARNING: The RELAY_IMAGE variable is not set. Defaulting to a blank string.
WARNING: The VROOM_IMAGE variable is not set. Defaulting to a blank string.
ERROR: The Compose file './docker-compose.yaml' is invalid because:
Unsupported config option for x-sentry-defaults: 'platform'
Unsupported config option for volumes: 'sentry-postgres'
Unsupported config option for services: 'snuba-generic-metrics-counters-consumer'
x-sentry-defaults.build contains an invalid type, it should be a string
errors i get from this file when i run docker compose up cmd

from self-hosted.

aldy505 avatar aldy505 commented on August 16, 2024

The docker-compose.yml file from the repository is not something that you can run directly as Sentry services requires some setup and migrations beforehand. You can see the installation docs here https://develop.sentry.dev/self-hosted/#getting-started (it's also on the repository's README file).

from self-hosted.

suren11111 avatar suren11111 commented on August 16, 2024

I read the README file and the self-hosted Sentry page blogs. I followed all the instructions in the "Getting Started" and "Recommended System Resource" sections of the self-hosted Sentry page. However, I am concerned because I need to run Sentry as a GitOps-managed tool. I am unable to configure this setup within GitHub itself.

From my understanding, the only way to achieve this is by creating a Docker Compose file that runs the GitOps pipeline and Sentry. If you know of any other methods to configure Sentry as a GitOps-managed tool, please let me know.

from self-hosted.

azaslavsky avatar azaslavsky commented on August 16, 2024

I'm not familiar with GitOps - is the only way to configure it via docker-compose.yml? Or can you ex: have shell scripts triggered beforehand? It seems like you may not have run ./install.sh in the location the code is being run from?

from self-hosted.

suren11111 avatar suren11111 commented on August 16, 2024

Yes, you are right. I did not run the ./install.sh file because there is no such file. I only created the docker-compose.yml file and ran the docker compose up command. All containers were running initially but stopped after some time.

For GitOps or any CI/CD integration, I need to add my Sentry setup to the Git repository. However, since Sentry is already running from a git clone, I cannot add its git repo inside my private repo. Instead, I created a docker-compose.yml file and added this file to my git repo for pipeline execution. Unfortunately, this docker-compose.yml file is not working as expected.

from self-hosted.

suren11111 avatar suren11111 commented on August 16, 2024

However, as you mentioned, I need to run the ./install.sh script. To do this, I need to create a shell script that includes the Docker Compose commands and add this script to my repository to run the pipeline. I'm not sure if this is the correct approach, so if you know of any other methods to configure this setup, please let me know.

from self-hosted.

azaslavsky avatar azaslavsky commented on August 16, 2024

Sorry, this isn't really a supported workflow. The only supported way to install self-hosted is via git clone + ./install.sh. You are free to write automation to do this for you (maybe a docker-compose wrapper that does this, maybe inspired by something like this), but ultimately that is outside the scope of what we can support.

from self-hosted.

suren11111 avatar suren11111 commented on August 16, 2024

So i need run git clone and + ./install.sh in the cicd pipeline for configure install and run sentry.

from self-hosted.

hubertdeng123 avatar hubertdeng123 commented on August 16, 2024

Yes, that is correct.

from self-hosted.

getsantry avatar getsantry commented on August 16, 2024

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

from self-hosted.

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.