allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [09/13] allura git commit: [#7907] ticket:860 Change docker config to use official solr image
Date Thu, 26 Nov 2015 13:19:19 GMT
[#7907] ticket:860 Change docker config to use official solr image


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/a79d2659
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a79d2659
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a79d2659

Branch: refs/heads/ib/7907
Commit: a79d2659127e302f2c7f5e2c846450e946a6f59a
Parents: be7eb2d
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Tue Nov 24 14:32:26 2015 +0200
Committer: Igor Bondarenko <jetmind2@gmail.com>
Committed: Thu Nov 26 14:15:06 2015 +0200

----------------------------------------------------------------------
 docker-compose.yml     |  7 +++----
 solr_config/Dockerfile | 32 --------------------------------
 2 files changed, 3 insertions(+), 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/a79d2659/docker-compose.yml
----------------------------------------------------------------------
diff --git a/docker-compose.yml b/docker-compose.yml
index 5eaaf4c..b4be0bb 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -57,13 +57,12 @@ taskd:
     - outmail
 
 solr:
-  build: solr_config
-  working_dir: /solr/solr-4.2.1/example
-  command: java -jar start.jar
+  image: solr:5.3.1
   ports:
     - "8983:8983"
   volumes:
-    - /allura-data/solr:/solr/solr-4.2.1/example/solr/collection1/data
+    - solr_config/allura:/opt/solr/server/solr/allura
+    - /allura-data/solr:/opt/solr/server/solr/allura/data
 
 mongo:
   image: mongo:2.6

http://git-wip-us.apache.org/repos/asf/allura/blob/a79d2659/solr_config/Dockerfile
----------------------------------------------------------------------
diff --git a/solr_config/Dockerfile b/solr_config/Dockerfile
deleted file mode 100644
index 714840c..0000000
--- a/solr_config/Dockerfile
+++ /dev/null
@@ -1,32 +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.
-
-FROM ubuntu:14.04
-
-RUN apt-get update && apt-get install -y \
-    default-jre-headless \
-    wget \
-    tar
-
-ENV basedir /solr
-
-ADD . ${basedir}
-WORKDIR ${basedir}
-
-RUN wget -nv http://archive.apache.org/dist/lucene/solr/4.2.1/solr-4.2.1.tgz
-RUN tar xf solr-4.2.1.tgz && rm -f solr-4.2.1.tgz
-RUN cp -f schema.xml solr-4.2.1/example/solr/collection1/conf


Mime
View raw message