Add Elasticsearch to GitPod (#6198) [deploy]
* Add Elasticsearch to GitPod * Add second ES port
This commit is contained in:
parent
cea1cf5e12
commit
54a9aee61a
2 changed files with 15 additions and 2 deletions
|
|
@ -6,6 +6,14 @@ RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --def
|
|||
|
||||
# Install Redis.
|
||||
RUN sudo apt-get update \
|
||||
&& sudo apt-get install -y \
|
||||
&& sudo apt-get install -y \
|
||||
redis-server \
|
||||
&& sudo rm -rf /var/lib/apt/lists/*
|
||||
&& sudo rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Elasticsearch
|
||||
ARG ES_REPO=https://artifacts.elastic.co/downloads/elasticsearch
|
||||
ARG ES_ARCHIVE=elasticsearch-oss-7.5.2-linux-x86_64.tar.gz
|
||||
RUN wget "${ES_REPO}/${ES_ARCHIVE}" \
|
||||
&& wget "${ES_REPO}/${ES_ARCHIVE}.sha512" \
|
||||
&& shasum -a 512 -c ${ES_ARCHIVE}.sha512 \
|
||||
&& tar -xzf ${ES_ARCHIVE}
|
||||
|
|
|
|||
|
|
@ -9,8 +9,13 @@ ports:
|
|||
onOpen: ignore
|
||||
- port: 6379
|
||||
onOpen: ignore
|
||||
- port: 9200
|
||||
onOpen: ignore
|
||||
- port: 9300
|
||||
onOpen: ignore
|
||||
tasks:
|
||||
- command: redis-server
|
||||
- command: /home/gitpod/elasticsearch-7.5.2/bin/elasticsearch
|
||||
- init: >
|
||||
cp config/sample_application.yml config/application.yml &&
|
||||
bin/setup 2>/dev/null || true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue