This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.x.feature.lograge = ENV.fetch("LOGRAGE", 'false') == 'true' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV PORT 8080 | |
ENV RACK_ENV=production RAILS_ENV=production | |
ENV RAILS_LOG_TO_STDOUT=true | |
ENV SECRET_KEY_BASE changeme | |
EXPOSE 8080 | |
HEALTHCHECK CMD curl --fail http://localhost:8080/ || exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUN addgroup -g 1000 rails && \ | |
adduser -S -G rails -u 1000 -h /application rails && \ | |
chown -R rails /usr/local/bundle && \ | |
apk update && \ | |
apk add linux-headers build-base curl zlib-dev libxml2-dev libxslt-dev tzdata yaml-dev git nodejs file zip unzip && \ | |
rm -rf /var/cache/apk/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USER rails | |
RUN gem install bundler && \ | |
bundle config build.nokogiri --use-system-libraries && \ | |
rm -rf /usr/lib/lib/ruby/gems/*/cache/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ONBUILD ADD . /application | |
ONBUILD RUN chown -R rails /application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apk add linux-headers build-base curl zlib-dev libxml2-dev libxslt-dev tzdata yaml-dev git nodejs file zip unzip <%= additional_pkgs.join(" ") %> && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
RailsBaseImages::DockerFilesCreator.new.call |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -le | |
registry=$1 | |
namespace=$2 | |
for path in rails-base-image-ruby/*; do | |
image=$(echo $path| sed -re 's#/([^/]*)$#:\1#') | |
pushd $path | |
docker build -t $registry/$namespace/$image . | |
docker push $registry/$namespace/$image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/lib/docker/containers/*/*.log { | |
copytruncate | |
compress | |
dateext | |
daily | |
dateformat -%Y%m%d%H%s | |
maxsize 350M | |
missingok | |
olddir /var/log/docker | |
sharedscripts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/dockerlfs/*.log { | |
copytruncate | |
compress | |
dateext | |
size 20M | |
daily | |
dateformat -%Y%m%d%H%s | |
missingok | |
rotate 30 | |
} |