Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Broker's Dockerfile won't build #932

Merged
merged 1 commit into from
Mar 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ FROM ruby:2.3.8
RUN sed -i '/^mozilla\/DST_Root_CA_X3/s/^/!/' /etc/ca-certificates.conf && update-ca-certificates -f

# Install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libzmq3-dev sox libsox-fmt-mp3 festival nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get -q update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
libzmq3-dev sox libsox-fmt-mp3 festival nodejs && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

WORKDIR /app

Expand Down
27 changes: 15 additions & 12 deletions broker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
FROM erlang:17.5.6

# Hack to keep using this old erlang image based on debian:jessie
# (removes reference to jessie-updates repository)
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
# (removes reference to jessie-updates repository and use archive.debian.org)
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list && \
sed -i 's/deb.debian.org/archive.debian.org/g' /etc/apt/sources.list && \
sed -i 's/security.debian.org/archive.debian.org/g' /etc/apt/sources.list

# # Cleanup expired Let's Encrypt CA (Sept 30, 2021)
RUN sed -i '/^mozilla\/DST_Root_CA_X3/s/^/!/' /etc/ca-certificates.conf && update-ca-certificates -f

# Install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y libzmq3-dev sox libsox-fmt-mp3 festival postfix curl ruby && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install dependencies (must use --force-yes because apt keys expired)
RUN apt-get -q update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes \
libzmq3-dev sox libsox-fmt-mp3 festival postfix curl ruby && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install gems for tz
RUN /usr/bin/gem install bundler -v 1.13.6
RUN /usr/bin/gem install tzinfo -v 0.3.44
RUN /usr/bin/gem install concurrent-ruby -v 1.1.9 &&\
/usr/bin/gem install activesupport -v 3.2.22
RUN /usr/bin/gem install --no-ri --no-rdoc bundler -v 1.13.6 && \
/usr/bin/gem install --no-ri --no-rdoc tzinfo -v 0.3.44 && \
/usr/bin/gem install --no-ri --no-rdoc concurrent-ruby -v 1.1.9 && \
/usr/bin/gem install --no-ri --no-rdoc activesupport -v 3.2.22

WORKDIR /app

# Install broker deps
ADD Makefile /app/
ADD rebar /app/
ADD rebar.config /app/

WORKDIR /app
RUN make deps

# Install the application
Expand Down