Skip to content

Commit

Permalink
[Elastic-HQ] Test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Den4ik committed Dec 2, 2024
1 parent f038bb4 commit 49f6a66
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions images/elastic-hq/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ RUN pip install --upgrade pip
# Upgrade and install basic Python dependencies
# This block added because of the trouble installing gevent on many systems
# https://hub.docker.com/r/openwhisk/dockerskeleton/~/dockerfile/
RUN apk update && \
apk add supervisor && \
apk add --update py2-pip && \
apk add --no-cache bash && \
apk add --no-cache --virtual .build-deps bzip2-dev gcc libc-dev libffi-dev openssl-dev python3-dev make rsync yaml-dev curl
RUN apk update \
&& apk add supervisor \
&& apk add --update py2-pip \
&& apk add --no-cache bash \
&& apk add --no-cache --virtual .build-deps bzip2-dev gcc libc-dev libffi-dev openssl-dev python3-dev make rsync yaml-dev curl

# Install Rust using rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
source $HOME/.cargo/env && \
rustup default stable
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& source "$HOME/.cargo/env" \
&& ln -s $HOME/.cargo/bin/cargo /usr/local/bin/cargo \
&& ln -s $HOME/.cargo/bin/rustc /usr/local/bin/rustc

# Set working directory
WORKDIR /src
Expand All @@ -26,9 +27,6 @@ RUN wget -q $(wget -qO- https://api.github.com/repos/ElasticHQ/elasticsearch-HQ/
&& unzip /tmp/elastichq.zip -d /tmp \
&& rsync -a /tmp/*elasticsearch-HQ*/* /src --remove-source-files

# Replace Flask-Migrate with Flask-Migrate===2.7.0 in requirements.txt
RUN sed -i 's/Flask-Migrate/Flask-Migrate==2.7.0/' requirements.txt

# Install app dependencies and create supervisord dirs
RUN pip install pyyaml==5.3.1 \
&& pip install -U -r requirements.txt \
Expand Down

0 comments on commit 49f6a66

Please sign in to comment.