Skip to content

Commit

Permalink
refactor: change build order
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuya Murakami committed Nov 20, 2018
1 parent a59e36b commit adf5799
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 32 deletions.
16 changes: 8 additions & 8 deletions Dockerfile.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM necbaas/tomcat

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/api.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

# Add config files
RUN mkdir /etc/baas /var/log/baas
ADD properties.template.xml /etc/baas/
Expand All @@ -19,12 +27,4 @@ VOLUME ["/opt/tomcat/logs","/var/log/baas"]
# Open Tomcat port
EXPOSE 8080

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/api.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

CMD ["/bootstrap.sh"]
16 changes: 8 additions & 8 deletions Dockerfile.both
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM necbaas/tomcat

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/*.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

# Add config files
RUN mkdir /etc/baas /var/log/baas
ADD properties.template.xml /etc/baas/
Expand All @@ -19,12 +27,4 @@ VOLUME ["/opt/tomcat/logs","/var/log/baas"]
# Open Tomcat port
EXPOSE 8080

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/*.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

CMD ["/bootstrap.sh"]
16 changes: 8 additions & 8 deletions Dockerfile.console
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM necbaas/tomcat

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/console.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

# Add config files
RUN mkdir /etc/baas /var/log/baas
ADD properties.template.xml /etc/baas/
Expand All @@ -19,12 +27,4 @@ VOLUME ["/opt/tomcat/logs","/var/log/baas"]
# Open Tomcat port
EXPOSE 8080

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/console.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

CMD ["/bootstrap.sh"]
16 changes: 8 additions & 8 deletions Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
FROM necbaas/tomcat

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/%%SERVER_TYPE%%.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

# Add config files
RUN mkdir /etc/baas /var/log/baas
ADD properties.template.xml /etc/baas/
Expand All @@ -19,12 +27,4 @@ VOLUME ["/opt/tomcat/logs","/var/log/baas"]
# Open Tomcat port
EXPOSE 8080

# Install BaaS Server
ENV BAAS_VERSION 7.5.0
RUN cd /opt \
&& wget --no-check-certificate https://github.com/nec-baas/baas-server/releases/download/v$BAAS_VERSION/baas-server-$BAAS_VERSION.tar.gz \
&& tar xzf baas-server-$BAAS_VERSION.tar.gz \
&& cp baas-server-$BAAS_VERSION/server/%%SERVER_TYPE%%.war /opt/tomcat/webapps/ \
&& /bin/rm -rf baas-server-$BAAS_VERSION*

CMD ["/bootstrap.sh"]

0 comments on commit adf5799

Please sign in to comment.