Commit 407641dd authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

initial import

parents
FROM ruby
MAINTAINER Friedrich Lindenberg <pudo@occrp.org>, Michał Woźniak <rysiek@occrp.org>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
libmagic-dev \
libgpgme11-dev \
wget \
git \
git-core \
--no-install-recommends && rm -rf /var/lib/apt/lists/*
# get and install schleuder-conf
RUN git clone https://git.codecoop.org/schleuder/schleuder-conf.git /opt/schleuder-conf && \
cd /opt/schleuder-conf && \
bundle install --without development
RUN git clone https://git.codecoop.org/schleuder/webschleuder3.git /opt/webschleuder3 && \
cd /opt/schleuder-conf && \
cd /opt/webschleuder3 && \
bin/setup
# && cp -R /webschleuder/config /webschleuder/config.tmpl
COPY webschleuder.yml /opt/webschleuder3/config/webschleuder.yml
WORKDIR /opt/webschleuder3
EXPOSE 3000
CMD SECRET_KEY_BASE="$( echo $RANDOM | sha256sum | sed -r -e 's/\s+-//' )$( echo $RANDOM | sha256sum | sed -r -e 's/\s+-//' )" bundle exec rails server -b 0.0.0.0 -e production
\ No newline at end of file
defaults: &defaults
web_hostname: example.org
schleuderd_uri: http://schlocker:4567/
mailer_from: noreply@example.org
# For delivery_method, sendmail_settings and smtp_settings see
# <http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration>.
delivery_method: sendmail
sendmail_settings:
arguments: '-t -i -f'
smtp_settings:
address: localhost
port: 25
#openssl_verify_mode: none
test:
<<: *defaults
development:
<<: *defaults
web_hostname: 0.0.0.0:3000
production:
<<: *defaults
web_hostname: 0.0.0.0:3000
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment