Skip to content
Snippets Groups Projects
  1. Aug 03, 2021
  2. Jul 28, 2021
  3. Jul 21, 2021
  4. Jul 20, 2021
  5. Jul 19, 2021
  6. Jul 14, 2021
  7. Jul 13, 2021
  8. Jul 12, 2021
  9. Jul 09, 2021
  10. Jul 08, 2021
  11. Jul 07, 2021
  12. Jul 02, 2021
  13. Jul 01, 2021
    • Stan Hu's avatar
      Fix libmagic not being able to find magic files · 1a1923e6
      Stan Hu authored
      This fixes a problem in UBI-8 builds that prevented `ruby-magic` from
      initializing. Any Rails code that needs to do MIME file detection
      previously would fail with a 500 error.
      
      This happened because ruby-magic downloads and installs the `libmagic`
      library (https://github.com/file/file). `libmagic` attempts to load
      `magic.mgc` from `$PREFIX/share/magic/magic.mgc` if no environment
      variables are set. In UBI-8 builds since we ran `bundle install` in one
      directory and copied the installed files into `/srv/gitlab/vendor`, the
      compiled `libmagic` library would look in the original, non-existent
      directory.
      
      To fix this, we now install everything out of `/srv/gitlab` to avoid
      moving paths.
      1a1923e6
  14. Jun 16, 2021
  15. Jun 15, 2021