ruby-grafana-matrix icon indicating copy to clipboard operation
ruby-grafana-matrix copied to clipboard

Updated Docker container

Open ngrash opened this issue 5 years ago • 5 comments

Could you kindly update ananace/grafana-matrix on Docker Hub? It was updated 2 years ago while the latest commit in this repo was 21 days ago.

ngrash avatar Oct 28 '20 10:10 ngrash

+1

joenio avatar Oct 28 '21 14:10 joenio

Pushed a new version, going to have a look at setting up some automation for it.

ananace avatar Oct 29 '21 06:10 ananace

great, thanks @ananace

joenio avatar Oct 29 '21 09:10 joenio

Thanks @ananace

DiegoGomez01 avatar Oct 29 '21 10:10 DiegoGomez01

The latest docker image is crashing with docker version 19.03.12 with the message below, I am using docker-compose to bring the container up.

Recreating my_element-alerts ... done
Attaching to my_element-alerts
my_element-alerts | `/root` is not writable.
my_element-alerts | Bundler will use `/tmp/bundler20211029-1-ut6rzs1' as your home directory temporarily.
my_element-alerts | bundler: command not found: rackup
my_element-alerts | Install missing gem executables with `bundle install`

Accordingly to the thread on link below it is a issue between older docker version before 20.10 + ruby alpine 3.0.

  • https://issueexplorer.com/issue/docker-library/ruby/351

I changed the alpine version to 3.13 and it solves the error, see the diff below:

diff --git a/Dockerfile b/Dockerfile
index 3184eb6..6e12766 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM ruby:3.0-alpine
+FROM ruby:alpine3.13
 
 #RUN apt-get update -qq && apt-get install -y build-essential

Maybe this breaks other contexts, but for my environment it fixed the errors /root is not writable.

By the way, thanks @ananace for this great tool!

--

Co-Authored-By: @DiegoGomez01

joenio avatar Oct 29 '21 13:10 joenio