You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metamodel.apache.org by ka...@apache.org on 2016/06/14 05:20:47 UTC

[03/11] metamodel git commit: Added Docker capabilities: A Dockerfile and README.md

Added Docker capabilities: A Dockerfile and README.md

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

Branch: refs/heads/feature/5.x/swagger-docs
Commit: fabd1b9784a7ec6512bf716fe8e6fa39e8cbf15b
Parents: 8e2ff71
Author: Kasper S�rensen <i....@gmail.com>
Authored: Mon May 23 23:11:43 2016 -0700
Committer: Kasper S�rensen <i....@gmail.com>
Committed: Mon May 23 23:13:18 2016 -0700

----------------------------------------------------------------------
 service-webapp/Dockerfile | 25 +++++++++++++++++++++++++
 service-webapp/README.md  | 12 ++++++++++++
 2 files changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/metamodel/blob/fabd1b97/service-webapp/Dockerfile
----------------------------------------------------------------------
diff --git a/service-webapp/Dockerfile b/service-webapp/Dockerfile
new file mode 100644
index 0000000..033d6e3
--- /dev/null
+++ b/service-webapp/Dockerfile
@@ -0,0 +1,25 @@
+# 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 tomcat:8.0-jre8
+
+RUN rm -rf $CATALINA_HOME/webapps \
+ mkdir $CATALINA_HOME/webapps
+COPY target/MetaModel.war $CATALINA_HOME/webapps/ROOT.war
+
+EXPOSE 8080
+CMD ["catalina.sh", "run"]

http://git-wip-us.apache.org/repos/asf/metamodel/blob/fabd1b97/service-webapp/README.md
----------------------------------------------------------------------
diff --git a/service-webapp/README.md b/service-webapp/README.md
new file mode 100644
index 0000000..20bca99
--- /dev/null
+++ b/service-webapp/README.md
@@ -0,0 +1,12 @@
+# MetaModel-as-a-service
+
+This is a web application that allows you to access MetaModel's unified API for datastore exploration and querying - using a set of RESTful services.
+
+## Docker building and running
+
+```
+docker build -t metamodel-service .
+docker run --rm -p 8080:8080 metamodel-service
+```
+
+And then go to http://localhost:8080 (assuming localhost is your docker machine).