Skip to content

Commit 4219997

Browse files
committed
clean up old sti artifacts
1 parent 015b662 commit 4219997

File tree

22 files changed

+29
-198
lines changed

22 files changed

+29
-198
lines changed

centos-ruby-builder/Dockerfile

Lines changed: 0 additions & 29 deletions
This file was deleted.

centos-ruby/Dockerfile renamed to centos-ruby-selfcontained/Dockerfile

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
# centos-ruby
1+
# Self-contained Ruby builder image.
22
#
3-
# This image provide a base for running Ruby based applications. It provides
3+
# You can use this image to produce an application image providing the source
4+
# code:
5+
#
6+
# $ docker run -v $(pwd):/tmp/src openshift/centos-ruby-selfcontained
7+
# <your application is being build>
8+
#
9+
# $ docker commit <id> your_application
10+
#
11+
# Then you can start your application using:
12+
#
13+
# $ docker run -p :9292 your_application
14+
#
15+
#
16+
# This image provides a base for running Ruby based applications. It provides
417
# just base Ruby installation using SCL and Ruby application server.
518
#
619
# If you want to use Bundler with C-extensioned gems or MySQL/PostGresql, you
@@ -12,7 +25,7 @@ MAINTAINER Michal Fojtik <[email protected]>
1225

1326
# Pull in important updates and then install ruby193 SCL
1427
#
15-
RUN yum update --assumeyes && \
28+
RUN yum update --assumeyes --skip-broken && \
1629
yum install --assumeyes centos-release-SCL gettext tar which && \
1730
yum install --assumeyes ruby193 ruby193-ruby-devel \
1831
gcc-c++ automake autoconf curl-devel openssl-devel \
@@ -34,8 +47,7 @@ ADD ./etc /opt/ruby/etc/
3447
# maintain backward compatibility
3548
#
3649
RUN cp -f /opt/ruby/bin/prepare /usr/bin/prepare && \
37-
cp -f /opt/ruby/bin/run /usr/bin/run && \
38-
cp -f /opt/ruby/bin/save-artifacts /usr/bin/save-artifacts
50+
cp -f /opt/ruby/bin/run /usr/bin/run
3951

4052
RUN chown -R ruby:ruby /opt/ruby
4153

@@ -52,13 +64,11 @@ ENV APP_ROOT .
5264
ENV HOME /opt/ruby
5365
ENV PATH $HOME/bin:$PATH
5466

55-
# FIXME: This might be a potential bug in STI where if we keep the USER
56-
# instruction here, the resulting application image will fail to run.
67+
# The initial 'start' command will trigger an application build when it runs in
68+
# 'self-contained' builder context. After application is built, then this
69+
# command is replaced in final application image by the 'run' command.
5770
#
58-
# USER ruby
71+
RUN chown -R ruby:ruby /opt/ruby/bin
5972

60-
EXPOSE 9292
61-
62-
# Display STI usage when invoked outside STI builder
63-
#
64-
CMD ["/opt/ruby/bin/usage"]
73+
USER ruby
74+
ENTRYPOINT ["/opt/ruby/bin/start"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)