5.2.1-debian-9-r1 release

Upgrade to version 5.2.1
This commit is contained in:
Bitnami Bot
2018-10-31 12:39:03 +00:00
parent 1de4e743af
commit d923c462f6
4 changed files with 36 additions and 48 deletions

View File

@@ -1,34 +1,23 @@
FROM bitnami/minideb-extras:stretch
FROM bitnami/minideb-extras:stretch-r183
LABEL maintainer "Bitnami <containers@bitnami.com>"
# System packages required
RUN install_packages build-essential git ghostscript imagemagick libc6 libffi6 libgcc1 libgmp-dev default-libmysqlclient-dev libncurses5 libpq5 libreadline-dev libssl1.0-dev libstdc++6 libtinfo5 libxml2-dev libxslt1-dev zlib1g zlib1g-dev netcat-traditional
# Install required system packages and dependencies
RUN install_packages build-essential default-libmysqlclient-dev ghostscript imagemagick libc6 libcomerr2 libcurl3 libffi6 libgcc1 libgcrypt20 libgmp-dev libgmp10 libgnutls30 libgpg-error0 libgssapi-krb5-2 libhogweed4 libidn11 libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libncurses5 libnettle6 libnghttp2-14 libp11-kit0 libpq5 libpsl5 libreadline-dev libreadline7 librtmp1 libsasl2-2 libssh2-1 libssl1.0.2 libssl1.1 libstdc++6 libtasn1-6 libtinfo5 libunistring0 libxml2-dev libxslt1-dev netcat-traditional zlib1g zlib1g-dev
RUN bitnami-pkg install ruby-2.4.5-0 --checksum 6b8fe1a5db54cc642125e96caf239329d27b2871cd0830a4158c312668a2afc7
RUN bitnami-pkg install mysql-client-10.1.36-2 --checksum cae816bb8317abe3c2281c4d8787a9b293a3935e8caa4fc700a54429675755ae
RUN bitnami-pkg install git-2.19.1-2 --checksum afed897918bbbf73d72e4cb9b72e30dc43b09ed322d390e0cee889ee75c2e080
RUN bitnami-pkg install rails-5.2.1-0 --checksum 5a803d0b5187376882c0e656ac157723440d0cce68c70f9522ca79966669d779
RUN mkdir /app && chown bitnami:bitnami /app
RUN bitnami-pkg install ruby-2.5.1-0 --checksum 51f464f3a76f63ed04c05668236357de3a01a3eff9ecd64d3a1a1c697a85200d
RUN bitnami-pkg install mysql-client-10.1.35-0 --checksum 368b07877bfeecb697d036647a39cac0152c11543763ec1290dad783c36fdd36
ENV PATH=/opt/bitnami/ruby/bin:/opt/bitnami/mysql/bin:$PATH
# Ruby on Rails template
RUN gem install rails -v 5.2.1 --no-document
# Bundle the gems required for a new application
RUN rails new /tmp/temp_app --database mysql --quiet && rm -r /tmp/temp_app
RUN gem install therubyracer
ENV RAILS_ENV=development
ENV BITNAMI_APP_NAME=rails
ENV BITNAMI_IMAGE_VERSION=5.2.1-debian-9
COPY rootfs/ /
USER bitnami
WORKDIR /app
COPY rootfs /
ENV BITNAMI_APP_NAME="rails" \
BITNAMI_IMAGE_VERSION="5.2.1-debian-9-r1" \
PATH="/opt/bitnami/ruby/bin:/opt/bitnami/mysql/bin:/opt/bitnami/git/bin:/opt/bitnami/rails/bin:$PATH" \
RAILS_ENV="development"
EXPOSE 3000
ENTRYPOINT ["/app-entrypoint.sh"]
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000"]
WORKDIR /app
USER bitnami
ENTRYPOINT [ "/app-entrypoint.sh" ]
CMD [ "bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000" ]

View File

@@ -1,5 +1,4 @@
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
@@ -8,7 +7,7 @@ services:
myapp:
tty: true # Enables debugging capabilities when attached to this container.
image: 'bitnami/rails:5'
image: bitnami/rails:5-debian-9
environment:
- DATABASE_URL=mysql2://mariadb/my_app_development
depends_on:

View File

@@ -20,6 +20,18 @@ $ docker-compose up
* Bitnami images are built on CircleCI and automatically pushed to the Docker Hub.
* All our images are based on [minideb](https://github.com/bitnami/minideb) a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading linux distribution.
## Supported tags and respective `Dockerfile` links
> NOTE: Debian 8 images have been deprecated in favor of Debian 9 images. Bitnami will not longer publish new Docker images based on Debian 8.
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/).
* [`5-debian-9`, `5.2.1-debian-9-r1`, `5`, `5.2.1`, `5.2.1-r1`, `latest` (5/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-rails/blob/5.2.1-debian-9-r1/5/debian-9/Dockerfile)
* [`5-ol-7`, `0.0.0-ol-7-r0` (5/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-rails/blob/0.0.0-ol-7-r0/5/ol-7/Dockerfile)
Subscribe to project updates by watching the [bitnami/rails GitHub repo](https://github.com/bitnami/bitnami-docker-rails).
## Introduction
[Ruby on Rails](http://rubyonrails.org/), or simply Rails, is a web application framework written in [Ruby](https://www.ruby-lang.org) under [MIT License](https://github.com/rails/rails/blob/master/MIT-LICENSE). Rails is a modelviewcontroller (MVC) framework, providing default structures for a database, a web service, and web pages.
@@ -157,6 +169,10 @@ $ docker-compose restart myapp
When the `myapp` service container is restarted, it will install all the missing gems before starting the WEBrick Rails application server.
# Contributing
We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/bitnami-docker-rails/issues), or submit a [pull request](https://github.com/bitnami/bitnami-docker-rails/pulls) with your contribution.
## Issues
If you encountered a problem running this container, you can file an [issue](../../issues/new). For us to provide better support, be sure to include the following information in your issue:

View File

@@ -7,11 +7,12 @@ jobs:
environment:
RELEASE_SERIES_LIST: "5"
LATEST_STABLE: "5"
DISTRIBUTIONS_LIST: "ol-7,debian-9"
DISTRIBUTIONS_LIST: "debian-9,ol-7"
IMAGE_NAME: rails
DOCKER_PROJECT: bitnami
QUAY_PROJECT: bitnami
GCLOUD_PROJECT: bitnami-containers
AZURE_PROJECT: bitnami
steps:
- checkout
@@ -30,26 +31,11 @@ jobs:
command: |
docker version
docker info
- restore_cache:
keys:
- cache-{{ .Branch }}
paths:
- /cache/layers.tar
- run:
name: Build docker image
command: |
curl -sL https://raw.githubusercontent.com/bitnami/test-infra/master/circle/docker-image-test.sh | bash -
- save_cache:
key: cache-{{ .Branch }}-{{ epoch }}
paths:
- /cache/layers.tar
- deploy:
name: Publish docker image
command: |
if [ -n "${CIRCLE_TAG}" ]; then
curl -sL https://raw.githubusercontent.com/bitnami/test-infra/master/circle/docker-release-image.sh | bash -
elif [ "${CIRCLE_BRANCH}" == "master" ]; then
curl -sL https://raw.githubusercontent.com/bitnami/test-infra/master/circle/docker-development-image.sh | bash -
fi
workflows:
@@ -58,7 +44,5 @@ workflows:
jobs:
- build:
filters:
branches:
only: /.*/
tags:
only: /^.*(?<!-rhel-7)-r[0-9]+$/