First thanks for this framework, it seems amazing !
I wanted to run a docker image for some python code which need elastic search.
As I understood I cannot run another docker for elasticsearch.
So I tried to install it from the docker image
However, I need to enable and start the daemon for that which doesn’t work…
Here is my dockerfile with some of my tries…
apt-get command are run with sudo if user is gitpod
FROM gitpod/workspace-full # USER gitpod // sudo: setrlimit(RLIMIT_CORE): Operation not permitted // USER root // build failed: cannot build base image: The command '/bin/sh -c systemctl start elasticsearch' returned a non-zero code: 1 // # Try to fix sudo bug (https://github.com/sudo-project/sudo/issues/42#issuecomment-609079906) # RUN sudo echo "Set disable_coredump false" >> /etc/sudo.conf // Permission denied // # Add keys RUN curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-7.x.list # Update RUN apt-get update && apt-get upgrade -y # Install elasticsearch and enable it RUN apt install -y elasticsearch RUN systemctl start elasticsearch RUN systemctl enable elasticsearch
Else I’m thinking about using two FROM clause one for gitpod the other for elasticsearch.
Thanks in advance for your time,