Skip to content

Commit 4219997

Browse files
committedMay 23, 2014
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

-29
This file was deleted.

‎centos-ruby/Dockerfile ‎centos-ruby-selfcontained/Dockerfile

+23-13
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 <mfojtik@redhat.com>
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.
File renamed without changes.
File renamed without changes.

‎centos-ruby/bin/save-artifacts

-4
This file was deleted.

‎centos-ruby/bin/usage

-13
This file was deleted.

‎centos-ruby/build.sh

-4
This file was deleted.

‎centos-ruby2/Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ RUN git clone https://github.com/sstephenson/rbenv.git /opt/rbenv && cd /opt/rbe
88

99
ADD ./prepare /usr/bin/
1010
ADD ./run /usr/bin/
11-
ADD ./save-artifacts /usr/bin/
1211
ADD ./ruby_context /usr/bin/
1312

1413
EXPOSE 9292

‎centos-ruby2/save-artifacts

-8
This file was deleted.

‎centos-wildfly-standalone/Dockerfile

+6-19
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FROM centos
88
MAINTAINER Ben Parees <bparees@redhat.com>
99

1010
RUN yum -y update && \
11-
yum -y install tar java-1.7.0-openjdk java-1.7.0-openjdk-devel unzip which bc vim vi && \
11+
yum -y install tar java-1.7.0-openjdk java-1.7.0-openjdk-devel unzip which bc vi&& \
1212
yum clean all
1313

1414
# Install maven
@@ -23,27 +23,14 @@ RUN tar -xf wildfly-8.1.0.CR1.tar.gz && \
2323
rm wildfly-8.1.0.CR1.tar.gz && \
2424
mv wildfly-8.1.0.CR1 wildfly && \
2525
/wildfly/bin/add-user.sh admin passw0rd_ --silent
26-
ADD ./wfmodules/ /wildfly/modules/
2726

28-
# Configure Source-To-Image scripts
29-
ADD ./bin /usr/bin/
30-
RUN chmod a+rx /usr/bin/{prepare,run,save-artifacts}
27+
# Add mysql and postgres jbdbc driver modules
28+
ADD ./wfmodules/ /wildfly/modules/
3129

32-
# Add geard/sti wildfly customizations
30+
# Add wildfly customizations
3331
ADD ./wfbin/standalone.conf /wildfly/bin/standalone.conf
3432
ADD ./wfcfg/standalone.xml /wildfly/standalone/configuration/standalone.xml
35-
36-
# Add sample jee application
37-
# This app will be built/run if no other source is bind-mounted to mask it.
38-
ADD https://github.com/bparees/openshift-jee-sample/archive/master.tar.gz master.tar.gz
39-
RUN mkdir /tmp/src && \
40-
tar -C /tmp/src --strip-components=1 -zxf master.tar.gz && \
41-
rm master.tar.gz
42-
43-
# Configure source location
44-
RUN mkdir -p /opt/wildfly/source
45-
WORKDIR /opt/wildfly/source
46-
33+
4734
# Create wildfly group and user, set file ownership to that user.
4835
RUN groupadd -r wildfly -g 433 && \
4936
useradd -u 431 -r -g wildfly -d /opt/wildfly -s /sbin/nologin -c "Wildfly user" wildfly && \
@@ -53,4 +40,4 @@ RUN groupadd -r wildfly -g 433 && \
5340

5441
USER wildfly
5542
EXPOSE 7600 8080 9990 9999
56-
CMD /usr/bin/usage
43+
CMD /wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0

‎centos-wildfly-standalone/bin/prepare

-87
This file was deleted.

‎centos-wildfly-standalone/bin/run

-2
This file was deleted.

‎centos-wildfly-standalone/bin/save-artifacts

-8
This file was deleted.

‎centos-wildfly-standalone/bin/usage

-10
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.