From c09c65d7bf58fa59993ba06c0e1919ce2e8ec678 Mon Sep 17 00:00:00 2001 From: Lucas Hiago Date: Wed, 15 Jan 2020 17:12:18 -0300 Subject: [PATCH] Fix missing redis server to gitpod configuration (#5528) --- .gitpod.dockerfile | 9 +++++++-- .gitpod.yml | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile index 97ccc9aba..9e327f5eb 100644 --- a/.gitpod.dockerfile +++ b/.gitpod.dockerfile @@ -2,5 +2,10 @@ FROM gitpod/workspace-postgres # Install Ruby ENV RUBY_VERSION=2.6.5 -RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default" \ - && rm -f /tmp/* +RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default" + +# Install Redis. +RUN sudo apt-get update \ + && sudo apt-get install -y \ + redis-server \ + && sudo rm -rf /var/lib/apt/lists/* diff --git a/.gitpod.yml b/.gitpod.yml index 99ee627ab..23710d2c1 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -7,7 +7,10 @@ ports: onOpen: ignore - port: 5432 onOpen: ignore + - port: 6379 + onOpen: ignore tasks: + - command: redis-server - init: > cp config/sample_application.yml config/application.yml && bin/setup 2>/dev/null || true