DEV: replace mailcatcher with mailhog (#572)
authorArpit Jalan <arpit@techapj.com>
Fri, 8 Oct 2021 05:36:32 +0000 (11:06 +0530)
committerGitHub <noreply@github.com>
Fri, 8 Oct 2021 05:36:32 +0000 (11:06 +0530)
image/discourse_dev/Dockerfile

index e889974be4f41dd6a8869876cf341a65a31b29e6..8967a6654611afa8aac0530158786b3036c006cd 100644 (file)
@@ -5,10 +5,6 @@ ENV RAILS_ENV development
 
 #LABEL maintainer="Sam Saffron \"https://twitter.com/samsaffron\""
 
-# Install for mailcatcher gem
-RUN apt update && apt install -y libsqlite3-dev \
-    && gem install mailcatcher && rm -rf /var/lib/apt/lists/*
-
 # Remove the code added on base image
 RUN rm -rf /var/www/*
 
@@ -44,3 +40,9 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo ap
     apt update &&\
     apt install -y google-chrome-stable firefox-esr &&\
     npm install -g eslint babel-eslint
+
+# Install & Configure MailHog (https://github.com/mailhog/MailHog)
+RUN wget -qO /tmp/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.1/MailHog_linux_amd64\
+    && echo "e2ed634ded49929f089b20045581955ed217672078fd86082dd7a6c67c5d09c7 /tmp/mailhog" | sha256sum -c -\
+    && mv /tmp/mailhog /usr/local/bin/mailhog\
+    && chmod +x /usr/local/bin/mailhog