asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject asterixdb git commit: Debian Packaging for NCService
Date Fri, 10 Feb 2017 19:23:57 GMT
Repository: asterixdb
Updated Branches:
  refs/heads/master 392bbbc00 -> c229da657


Debian Packaging for NCService

Change-Id: I1b5d0895ed5a34700d4e2f666715b857ce275127
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1492
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mblow@apache.org>


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

Branch: refs/heads/master
Commit: c229da6576b1d280857cf64dab0788dddd42dad2
Parents: 392bbbc
Author: Ian Maxon <imaxon@apache.org>
Authored: Thu Feb 9 09:52:25 2017 -0800
Committer: Ian Maxon <imaxon@apache.org>
Committed: Fri Feb 10 11:17:36 2017 -0800

----------------------------------------------------------------------
 asterixdb/asterix-server/pom.xml                | 60 ++++++++++++++++++++
 .../asterix-server/src/deb/control/control      | 24 ++++++++
 .../asterix-server/src/deb/control/postinst     | 17 ++++++
 asterixdb/asterix-server/src/deb/control/postrm | 15 +++++
 .../asterix-server/src/deb/control/preinst      | 15 +++++
 asterixdb/asterix-server/src/deb/control/prerm  | 15 +++++
 .../src/deb/systemd/asterix-cc.service          | 26 +++++++++
 .../src/deb/systemd/asterix-nc.service          | 26 +++++++++
 8 files changed, 198 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/pom.xml
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/pom.xml b/asterixdb/asterix-server/pom.xml
index f91ed64..7d74903 100644
--- a/asterixdb/asterix-server/pom.xml
+++ b/asterixdb/asterix-server/pom.xml
@@ -343,6 +343,66 @@
         </executions>
       </plugin>
       <plugin>
+        <artifactId>jdeb</artifactId>
+        <groupId>org.vafer</groupId>
+        <version>1.5</version>
+        <executions>
+          <execution>
+            <phase>package</phase>
+            <goals>
+              <goal>jdeb</goal>
+            </goals>
+            <configuration>
+              <dataSet>
+                <data>
+                  <src>${project.build.directory}/${project.build.finalName}-binary-assembly/</src>
+                  <excludes>bin/**</excludes>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/opt/apache-asterixdb/</prefix>
+                    <user>asterixdb</user>
+                    <group>asterixdb</group>
+                    <filemode>644</filemode>
+                  </mapper>
+                </data>
+                <data>
+                  <src>${project.build.directory}/${project.build.finalName}-binary-assembly/bin</src>
+                  <type>directory</type>
+                  <mapper>
+                    <type>perm</type>
+                    <prefix>/opt/apache-asterixdb/bin</prefix>
+                    <user>asterixdb</user>
+                    <group>asterixdb</group>
+                    <filemode>754</filemode>
+                  </mapper>
+                </data>
+                <data>
+                  <type>file</type>
+                  <src>src/deb/systemd/asterix-cc.service</src>
+                  <mapper>
+                     <prefix>/lib/systemd/system</prefix>
+                     <type>perm</type>
+                     <user>root</user>
+                     <group>root</group>
+                  </mapper>
+                </data>
+                <data>
+                  <type>file</type>
+                  <src>src/deb/systemd/asterix-nc.service</src>
+                  <mapper>
+                     <prefix>/lib/systemd/system</prefix>
+                     <type>perm</type>
+                     <user>root</user>
+                     <group>root</group>
+                  </mapper>
+                </data>
+              </dataSet>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-dependency-plugin</artifactId>
         <version>2.10</version>

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/src/deb/control/control
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/deb/control/control b/asterixdb/asterix-server/src/deb/control/control
new file mode 100644
index 0000000..1f6c213
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/control
@@ -0,0 +1,24 @@
+# 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.
+Package: apache-asterixdb-server
+Version: [[version]]
+Section: databases
+Priority: extra
+Architecture: all
+Depends: jdk (>= 1.8)
+Maintainer: Ian Maxon <ian@maxons.email>
+Description: Apache AsterixDB - a scalable, open source Big Data Management System (BDMS)
+Distribution: development
+Depends: default-jre | java8-runtime

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/src/deb/control/postinst
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/deb/control/postinst b/asterixdb/asterix-server/src/deb/control/postinst
new file mode 100644
index 0000000..896ca28
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/postinst
@@ -0,0 +1,17 @@
+#!/bin/sh
+# 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.
+adduser --system --group --quiet --home /opt/apache-asterixdb/ \
+--no-create-home --disabled-login --force-badname asterixdb

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/src/deb/control/postrm
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/deb/control/postrm b/asterixdb/asterix-server/src/deb/control/postrm
new file mode 100644
index 0000000..4509c90
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/postrm
@@ -0,0 +1,15 @@
+#!/bin/sh
+# 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.

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/src/deb/control/preinst
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/deb/control/preinst b/asterixdb/asterix-server/src/deb/control/preinst
new file mode 100644
index 0000000..4509c90
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+# 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.

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/src/deb/control/prerm
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/deb/control/prerm b/asterixdb/asterix-server/src/deb/control/prerm
new file mode 100644
index 0000000..4509c90
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/control/prerm
@@ -0,0 +1,15 @@
+#!/bin/sh
+# 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.

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service b/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
new file mode 100644
index 0000000..9711fba
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/systemd/asterix-cc.service
@@ -0,0 +1,26 @@
+# 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.
+[Unit]
+Description=Apache AsterixDB Cluster Controller
+After=network.target
+
+[Service]
+Type=simple
+User=asterixdb
+ExecStart=/opt/apache-asterixdb/bin/asterixcc --config-file /opt/apache-asterixdb/cc.conf
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target

http://git-wip-us.apache.org/repos/asf/asterixdb/blob/c229da65/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
----------------------------------------------------------------------
diff --git a/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service b/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
new file mode 100644
index 0000000..bfe6296
--- /dev/null
+++ b/asterixdb/asterix-server/src/deb/systemd/asterix-nc.service
@@ -0,0 +1,26 @@
+# 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.
+[Unit]
+Description=Apache AsterixDB Node Controller Daemon
+After=network.target
+
+[Service]
+Type=simple
+User=asterixdb
+ExecStart=/opt/apache-asterixdb/bin/asterixncservice
+Restart=on-abort
+
+[Install]
+WantedBy=multi-user.target


Mime
View raw message