Repository: ignite Updated Branches: refs/heads/master d4606cb1e -> f97f9630d
IGNITE-7821 Unify and improve Apache Ignite and Web Console Dockerfiles Signed-off-by: Andrey Gura <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/f97f9630 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/f97f9630 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/f97f9630 Branch: refs/heads/master Commit: f97f9630d8b5d92f061e0ec5f1dd5dbdf0d0f98e Parents: d4606cb Author: Ivanov Petr <[email protected]> Authored: Wed Apr 25 20:31:30 2018 +0300 Committer: Andrey Gura <[email protected]> Committed: Wed Apr 25 20:31:30 2018 +0300 ---------------------------------------------------------------------- modules/docker/.dockerignore | 1 + modules/docker/1.0.0/Dockerfile | 40 ------------- modules/docker/1.0.0/run.sh | 50 ----------------- modules/docker/1.1.0/Dockerfile | 40 ------------- modules/docker/1.1.0/run.sh | 50 ----------------- modules/docker/1.2.0/Dockerfile | 40 ------------- modules/docker/1.2.0/run.sh | 50 ----------------- modules/docker/1.3.0/Dockerfile | 40 ------------- modules/docker/1.3.0/run.sh | 50 ----------------- modules/docker/1.4.0/Dockerfile | 40 ------------- modules/docker/1.4.0/run.sh | 50 ----------------- modules/docker/1.5.0.final/Dockerfile | 40 ------------- modules/docker/1.5.0.final/run.sh | 50 ----------------- modules/docker/1.6.0/Dockerfile | 44 --------------- modules/docker/1.6.0/run.sh | 51 ----------------- modules/docker/1.7.0/Dockerfile | 44 --------------- modules/docker/1.7.0/run.sh | 51 ----------------- modules/docker/1.8.0/Dockerfile | 46 --------------- modules/docker/1.8.0/run.sh | 51 ----------------- modules/docker/1.9.0/Dockerfile | 46 --------------- modules/docker/1.9.0/run.sh | 51 ----------------- modules/docker/2.0.0/Dockerfile | 46 --------------- modules/docker/2.0.0/run.sh | 51 ----------------- modules/docker/2.1.0/Dockerfile | 46 --------------- modules/docker/2.1.0/run.sh | 51 ----------------- modules/docker/2.2.0/Dockerfile | 46 --------------- modules/docker/2.2.0/run.sh | 51 ----------------- modules/docker/2.3.0/Dockerfile | 46 --------------- modules/docker/2.3.0/run.sh | 51 ----------------- modules/docker/Dockerfile | 34 +++++------ modules/docker/README.txt | 25 +++++++-- modules/docker/run.sh | 0 .../web-console/docker/standalone/.dockerignore | 5 -- .../web-console/docker/standalone/Dockerfile | 54 ++++++------------ .../web-console/docker/standalone/README.txt | 24 ++++++++ modules/web-console/docker/standalone/build.sh | 59 -------------------- 36 files changed, 76 insertions(+), 1438 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/.dockerignore ---------------------------------------------------------------------- diff --git a/modules/docker/.dockerignore b/modules/docker/.dockerignore new file mode 100644 index 0000000..c4c4ffc --- /dev/null +++ b/modules/docker/.dockerignore @@ -0,0 +1 @@ +*.zip http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.0.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.0.0/Dockerfile b/modules/docker/1.0.0/Dockerfile deleted file mode 100644 index 79c35c8..0000000 --- a/modules/docker/1.0.0/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:7 - -# Ignite version -ENV IGNITE_VERSION 1.0.0-incubating - -WORKDIR /opt/ignite - -ADD http://www.us.apache.org/dist/ignite/1.0.0/ignite-fabric-1.0.0-incubating.zip /opt/ignite/ignite.zip - -# Ignite home -ENV IGNITE_HOME /opt/ignite/ignite-fabric-1.0.0-incubating - -RUN unzip ignite.zip - -RUN rm ignite.zip - -# Copy sh files and set permission -ADD ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.0.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.0.0/run.sh b/modules/docker/1.0.0/run.sh deleted file mode 100644 index dbf2871..0000000 --- a/modules/docker/1.0.0/run.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.1.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.1.0/Dockerfile b/modules/docker/1.1.0/Dockerfile deleted file mode 100644 index f132309..0000000 --- a/modules/docker/1.1.0/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:7 - -# Ignite version -ENV IGNITE_VERSION 1.1.0-incubating - -WORKDIR /opt/ignite - -ADD http://www.us.apache.org/dist/ignite/1.1.0/apache-ignite-fabric-1.1.0-incubating-bin.zip /opt/ignite/ignite.zip - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-1.1.0-incubating-bin - -RUN unzip ignite.zip - -RUN rm ignite.zip - -# Copy sh files and set permission -ADD ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.1.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.1.0/run.sh b/modules/docker/1.1.0/run.sh deleted file mode 100644 index dbf2871..0000000 --- a/modules/docker/1.1.0/run.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.2.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.2.0/Dockerfile b/modules/docker/1.2.0/Dockerfile deleted file mode 100644 index b4b1a4a..0000000 --- a/modules/docker/1.2.0/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:7 - -# Ignite version -ENV IGNITE_VERSION 1.2.0-incubating - -WORKDIR /opt/ignite - -ADD http://www.us.apache.org/dist/ignite/1.2.0/apache-ignite-fabric-1.2.0-incubating-bin.zip /opt/ignite/ignite.zip - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-1.2.0-incubating-bin - -RUN unzip ignite.zip - -RUN rm ignite.zip - -# Copy sh files and set permission -ADD ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.2.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.2.0/run.sh b/modules/docker/1.2.0/run.sh deleted file mode 100644 index dbf2871..0000000 --- a/modules/docker/1.2.0/run.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.3.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.3.0/Dockerfile b/modules/docker/1.3.0/Dockerfile deleted file mode 100644 index eade9d9..0000000 --- a/modules/docker/1.3.0/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:7 - -# Ignite version -ENV IGNITE_VERSION 1.3.0-incubating - -WORKDIR /opt/ignite - -ADD http://www.us.apache.org/dist/ignite/1.3.0/apache-ignite-fabric-1.3.0-incubating-bin.zip /opt/ignite/ignite.zip - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-1.3.0-incubating-bin - -RUN unzip ignite.zip - -RUN rm ignite.zip - -# Copy sh files and set permission -ADD ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.3.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.3.0/run.sh b/modules/docker/1.3.0/run.sh deleted file mode 100644 index dbf2871..0000000 --- a/modules/docker/1.3.0/run.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.4.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.4.0/Dockerfile b/modules/docker/1.4.0/Dockerfile deleted file mode 100644 index 41f6a68..0000000 --- a/modules/docker/1.4.0/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:7 - -# Ignite version -ENV IGNITE_VERSION 1.4.0 - -WORKDIR /opt/ignite - -ADD http://www.us.apache.org/dist/ignite/1.4.0/apache-ignite-fabric-1.4.0-bin.zip /opt/ignite/ignite.zip - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-1.4.0-bin - -RUN unzip ignite.zip - -RUN rm ignite.zip - -# Copy sh files and set permission -ADD ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.4.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.4.0/run.sh b/modules/docker/1.4.0/run.sh deleted file mode 100644 index dbf2871..0000000 --- a/modules/docker/1.4.0/run.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.5.0.final/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.5.0.final/Dockerfile b/modules/docker/1.5.0.final/Dockerfile deleted file mode 100644 index bdc7baf..0000000 --- a/modules/docker/1.5.0.final/Dockerfile +++ /dev/null @@ -1,40 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:7 - -# Ignite version -ENV IGNITE_VERSION 1.5.0.final - -WORKDIR /opt/ignite - -ADD http://www.us.apache.org/dist/ignite/1.5.0.final/apache-ignite-fabric-1.5.0.final-bin.zip /opt/ignite/ignite.zip - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-1.5.0.final-bin - -RUN unzip ignite.zip - -RUN rm ignite.zip - -# Copy sh files and set permission -ADD ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.5.0.final/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.5.0.final/run.sh b/modules/docker/1.5.0.final/run.sh deleted file mode 100644 index dbf2871..0000000 --- a/modules/docker/1.5.0.final/run.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.6.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.6.0/Dockerfile b/modules/docker/1.6.0/Dockerfile deleted file mode 100644 index 959771b..0000000 --- a/modules/docker/1.6.0/Dockerfile +++ /dev/null @@ -1,44 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:8 - -# Ignite version -ENV IGNITE_VERSION 1.6.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl http://www.us.apache.org/dist/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.6.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.6.0/run.sh b/modules/docker/1.6.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/1.6.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.7.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.7.0/Dockerfile b/modules/docker/1.7.0/Dockerfile deleted file mode 100644 index 5565df6..0000000 --- a/modules/docker/1.7.0/Dockerfile +++ /dev/null @@ -1,44 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:8 - -# Ignite version -ENV IGNITE_VERSION 1.7.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl http://www.us.apache.org/dist/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.7.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.7.0/run.sh b/modules/docker/1.7.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/1.7.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.8.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.8.0/Dockerfile b/modules/docker/1.8.0/Dockerfile deleted file mode 100644 index 13fb3de..0000000 --- a/modules/docker/1.8.0/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:8 - -# Ignite version -ENV IGNITE_VERSION 1.8.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl http://www.us.apache.org/dist/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh - -EXPOSE 11211 47100 47500 49112 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.8.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.8.0/run.sh b/modules/docker/1.8.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/1.8.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.9.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/1.9.0/Dockerfile b/modules/docker/1.9.0/Dockerfile deleted file mode 100644 index 48ceba1..0000000 --- a/modules/docker/1.9.0/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:8 - -# Ignite version -ENV IGNITE_VERSION 1.9.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl https://dist.apache.org/repos/dist/release/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh - -EXPOSE 11211 47100 47500 49112 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/1.9.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/1.9.0/run.sh b/modules/docker/1.9.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/1.9.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.0.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/2.0.0/Dockerfile b/modules/docker/2.0.0/Dockerfile deleted file mode 100644 index 2292981..0000000 --- a/modules/docker/2.0.0/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:8 - -# Ignite version -ENV IGNITE_VERSION 2.0.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl https://dist.apache.org/repos/dist/release/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh - -EXPOSE 11211 47100 47500 49112 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.0.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/2.0.0/run.sh b/modules/docker/2.0.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/2.0.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.1.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/2.1.0/Dockerfile b/modules/docker/2.1.0/Dockerfile deleted file mode 100644 index 6a0eecd..0000000 --- a/modules/docker/2.1.0/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM java:8 - -# Ignite version -ENV IGNITE_VERSION 2.1.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl https://dist.apache.org/repos/dist/release/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh - -EXPOSE 11211 47100 47500 49112 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.1.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/2.1.0/run.sh b/modules/docker/2.1.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/2.1.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.2.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/2.2.0/Dockerfile b/modules/docker/2.2.0/Dockerfile deleted file mode 100644 index 4c09653..0000000 --- a/modules/docker/2.2.0/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM openjdk:8 - -# Ignite version -ENV IGNITE_VERSION 2.2.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl https://dist.apache.org/repos/dist/release/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh - -EXPOSE 11211 47100 47500 49112 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.2.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/2.2.0/run.sh b/modules/docker/2.2.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/2.2.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.3.0/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/2.3.0/Dockerfile b/modules/docker/2.3.0/Dockerfile deleted file mode 100644 index 88ec8ba..0000000 --- a/modules/docker/2.3.0/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# Start from a Java image. -FROM openjdk:8 - -# Ignite version -ENV IGNITE_VERSION 2.3.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* - -WORKDIR /opt/ignite - -RUN curl https://dist.apache.org/repos/dist/release/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip - -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ - -RUN chmod +x $IGNITE_HOME/run.sh - -CMD $IGNITE_HOME/run.sh - -EXPOSE 11211 47100 47500 49112 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/2.3.0/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/2.3.0/run.sh b/modules/docker/2.3.0/run.sh deleted file mode 100644 index 3aafc30..0000000 --- a/modules/docker/2.3.0/run.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ ! -z "$OPTION_LIBS" ]; then - IFS=, LIBS_LIST=("$OPTION_LIBS") - - for lib in ${LIBS_LIST[@]}; do - cp -r $IGNITE_HOME/libs/optional/"$lib"/* \ - $IGNITE_HOME/libs/ - done -fi - -if [ ! -z "$EXTERNAL_LIBS" ]; then - IFS=, LIBS_LIST=("$EXTERNAL_LIBS") - - for lib in ${LIBS_LIST[@]}; do - echo $lib >> temp - done - - wget -i temp -P $IGNITE_HOME/libs - - rm temp -fi - -QUIET="" - -if [ "$IGNITE_QUIET" = "false" ]; then - QUIET="-v" -fi - -if [ -z $CONFIG_URI ]; then - $IGNITE_HOME/bin/ignite.sh $QUIET -else - $IGNITE_HOME/bin/ignite.sh $QUIET $CONFIG_URI -fi - http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/docker/Dockerfile b/modules/docker/Dockerfile index 88ec8ba..2cfa85f 100644 --- a/modules/docker/Dockerfile +++ b/modules/docker/Dockerfile @@ -15,32 +15,24 @@ # limitations under the License. # -# Start from a Java image. -FROM openjdk:8 - -# Ignite version -ENV IGNITE_VERSION 2.3.0 - -# Ignite home -ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric-${IGNITE_VERSION}-bin - -# Do not rely on anything provided by base image(s), but be explicit, if they are installed already it is noop then -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ - curl \ - && rm -rf /var/lib/apt/lists/* +# Start from Java 8 based on Alpine Linux image (~5Mb) +FROM openjdk:8-jre-alpine +# Settings +ENV IGNITE_HOME /opt/ignite/apache-ignite-fabric WORKDIR /opt/ignite -RUN curl https://dist.apache.org/repos/dist/release/ignite/${IGNITE_VERSION}/apache-ignite-fabric-${IGNITE_VERSION}-bin.zip -o ignite.zip \ - && unzip ignite.zip \ - && rm ignite.zip +# Add missing software +RUN apk --update --no-cache add bash -# Copy sh files and set permission -COPY ./run.sh $IGNITE_HOME/ +# Copy main binary archive +COPY apache-ignite-fabric* apache-ignite-fabric -RUN chmod +x $IGNITE_HOME/run.sh +# Copy sh files and set permission +COPY run.sh $IGNITE_HOME/ +# Entry point CMD $IGNITE_HOME/run.sh -EXPOSE 11211 47100 47500 49112 \ No newline at end of file +# Container port exposure +EXPOSE 11211 47100 47500 49112 http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/README.txt ---------------------------------------------------------------------- diff --git a/modules/docker/README.txt b/modules/docker/README.txt index 0299d4c..6912bc4 100644 --- a/modules/docker/README.txt +++ b/modules/docker/README.txt @@ -1,11 +1,26 @@ Apache Ignite Docker module ------------------------- +=========================== +Apache Ignite Docker module provides Dockerfile and accompanying files for building docker image. -Apache Ignite Docker module provides Dockerfile and bash scripts for building docker image. Build image -------------------------------------- +=========== +1) Build Apache Ignite binary archive as described in DEVNOTES.txt. -cd to ./modules/docker +2) Goto Apache Ignite's Docker module directory -sudo docker build . \ No newline at end of file + cd modules/docker + +3) Copy Apache Ignite's binary archive to Docker module directory + + cp -rfv ../../target/bin/apache-ignite-fabric-*.zip + +4) Unpack Apache Ignite's binary archive + + unzip apache-ignite-fabric-*.zip + +5) Build docker image + + docker build . -t apacheignite/ignite[:<version>] + + Prepared image will be available issuing `docker images` command http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/docker/run.sh ---------------------------------------------------------------------- diff --git a/modules/docker/run.sh b/modules/docker/run.sh old mode 100644 new mode 100755 http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/web-console/docker/standalone/.dockerignore ---------------------------------------------------------------------- diff --git a/modules/web-console/docker/standalone/.dockerignore b/modules/web-console/docker/standalone/.dockerignore index c59189e..0951480 100644 --- a/modules/web-console/docker/standalone/.dockerignore +++ b/modules/web-console/docker/standalone/.dockerignore @@ -1,7 +1,2 @@ -build/frontend/build -build/frontend/node_modules -build/frontend/ignite_modules_temp build/frontend/test -build/backend/config/*.json -build/backend/node_modules build/backend/test http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/web-console/docker/standalone/Dockerfile ---------------------------------------------------------------------- diff --git a/modules/web-console/docker/standalone/Dockerfile b/modules/web-console/docker/standalone/Dockerfile index bfb7901..2fd5f56 100644 --- a/modules/web-console/docker/standalone/Dockerfile +++ b/modules/web-console/docker/standalone/Dockerfile @@ -20,37 +20,19 @@ FROM ubuntu:14.04 ENV NPM_CONFIG_LOGLEVEL info ENV NODE_VERSION 8.11.1 -# Before package list update. -RUN set -ex && \ - for key in \ - 9554F04D7259F04124DE6B476D5A82AC7E37093B \ - 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \ - FD3A5288F042B6850C66B31F09FE44734EB7990E \ - 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 \ - DD8F2338BAE7501E3DD5AC78C273792F7D83545D \ - B9AE9905FFD7803F25714661B63B535A4C206CA9 \ - C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 \ - 56730D5401028683275BD23C23EFEFE93C4CFFFE \ - ; do \ - gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || \ - gpg --keyserver pgp.mit.edu --recv-keys "$key" || \ - gpg --keyserver keyserver.pgp.com --recv-keys "$key" ; \ - done - RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 && \ - echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list + echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list # Update package list & install. RUN apt-get update && \ apt-get install -y nginx-light mongodb-org-server curl xz-utils git # Install Node JS. -RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" && \ - curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && \ - gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && \ - grep " node-v$NODE_VERSION-linux-x64.tar.xz\$" SHASUMS256.txt | sha256sum -c - && \ - tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 && \ - rm "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt +RUN curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.xz" && \ + curl -SLO "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt" && \ + grep " node-v$NODE_VERSION-linux-x64.tar.xz\$" SHASUMS256.txt | sha256sum -c - && \ + tar -xJf "node-v$NODE_VERSION-linux-x64.tar.xz" -C /usr/local --strip-components=1 && \ + rm -rf "node-v$NODE_VERSION-linux-x64.tar.xz" SHASUMS256.txt # Install global node packages. RUN npm install -g pm2 @@ -62,23 +44,22 @@ RUN mkdir -p /opt/web-console WORKDIR /opt/web-console COPY build . -# Install node modules. -RUN cd /opt/web-console/frontend && npm install --no-optional --prod && npm run build -RUN cd /opt/web-console/backend && npm install --only=production --no-optional - -# Returns to base path. -WORKDIR /opt/web-console +# Install node modules for frontend and backend modules. +RUN cd /opt/web-console/frontend && \ + npm install --no-optional --prod && \ + npm run build && \ + cd /opt/web-console/backend && \ + npm install --no-optional --prod # Copy nginx config. -COPY ./nginx/nginx.conf /etc/nginx/nginx.conf -COPY ./nginx/web-console.conf /etc/nginx/web-console.conf +COPY nginx/* /etc/nginx/ -# Setup entrypoint. -COPY ./entrypoint.sh . -RUN chmod 755 /opt/web-console/entrypoint.sh +# Copy entrypoint. +COPY entrypoint.sh . # Clean up. -RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +RUN apt-get clean && \ + rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* VOLUME ["/etc/nginx"] VOLUME ["/var/lib/mongodb"] @@ -87,3 +68,4 @@ VOLUME ["/opt/web-console/serve/agent_dists"] EXPOSE 80 ENTRYPOINT ["/opt/web-console/entrypoint.sh"] + http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/web-console/docker/standalone/README.txt ---------------------------------------------------------------------- diff --git a/modules/web-console/docker/standalone/README.txt b/modules/web-console/docker/standalone/README.txt new file mode 100644 index 0000000..68cfa8e --- /dev/null +++ b/modules/web-console/docker/standalone/README.txt @@ -0,0 +1,24 @@ +Web Console Docker module +========================= +Web Console Docker module provides Dockerfile and accompanying files for building docker image. + + +Build image +=========== +1) Build Apache Ignite binary archive as described in DEVNOTES.txt. + +2) Goto Web Console's Docker module directory + + cd modules/web-console/docker/standalone + +3) Copy build-related necessary files + + mkdir -pv build + cp -rf ../../frontend ../../backend build + cp -rfv ../../web-agent/target/ignite-web-agent-*.zip build/backend/agent_dists/ + +4) Build docker image + + docker build . -t apacheignite/web-console-standalone[:<version>] + + Prepared image will be available issuing `docker images` command http://git-wip-us.apache.org/repos/asf/ignite/blob/f97f9630/modules/web-console/docker/standalone/build.sh ---------------------------------------------------------------------- diff --git a/modules/web-console/docker/standalone/build.sh b/modules/web-console/docker/standalone/build.sh deleted file mode 100755 index c32dc40..0000000 --- a/modules/web-console/docker/standalone/build.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -if [ -z "$IGNITE_HOME" ]; then - echo "Ignite source folder is not found or IGNITE_HOME environment variable is not valid." - - exit 1 -fi - -WORK_DIR=`cd "$(dirname "$0")"; pwd` - -BUILD_DIR="$WORK_DIR/build" - -IGNITE_WEB_CONSOLE_DIR="$IGNITE_HOME/modules/web-console" -DOCKER_IMAGE_NAME="apacheignite/web-console-standalone" - -echo "Receiving version..." -VERSION=`cd $IGNITE_HOME && mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version| grep -Ev '(^\[|Download\w+:)'` -RELEASE_VERSION=${VERSION%-SNAPSHOT} - -echo "Building $DOCKER_IMAGE_NAME:$RELEASE_VERSION" -echo "Step 1. Prepare build temp paths." -cd $WORK_DIR -rm -Rf $BUILD_DIR -docker rmi -f $DOCKER_IMAGE_NAME:$RELEASE_VERSION -mkdir -p $BUILD_DIR/frontend $BUILD_DIR/backend - -echo "Step 2. Build ignite web agent." -cd $IGNITE_HOME -mvn versions:set -DnewVersion=$RELEASE_VERSION -DgenerateBackupPoms=false -Pweb-console -DartifactId='*' -mvn clean package -pl :ignite-web-agent -am -P web-console -DskipTests=true -mvn versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false -Pweb-console -DartifactId='*' - -echo "Step 3. Copy sources." -cd $WORK_DIR -cp -r $IGNITE_WEB_CONSOLE_DIR/frontend/. $BUILD_DIR/frontend -cp -r $IGNITE_WEB_CONSOLE_DIR/backend/. $BUILD_DIR/backend -cp $IGNITE_HOME/modules/web-console/web-agent/target/ignite-web-agent*.zip $BUILD_DIR/backend/agent_dists/. - -echo "Step 4. Build docker image." -docker build -f=./Dockerfile -t $DOCKER_IMAGE_NAME:$RELEASE_VERSION -t $DOCKER_IMAGE_NAME:latest . - -echo "Step 5. Cleanup." -rm -Rf $BUILD_DIR
