You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ph...@apache.org on 2018/08/01 17:03:46 UTC
nifi-minifi-cpp git commit: MINIFICPP-556 Added initial snapcraft
build
Repository: nifi-minifi-cpp
Updated Branches:
refs/heads/master 8c4d83baf -> 19a838e47
MINIFICPP-556 Added initial snapcraft build
This closes #371.
Signed-off-by: Marc Parisi <ph...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/commit/19a838e4
Tree: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/tree/19a838e4
Diff: http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/diff/19a838e4
Branch: refs/heads/master
Commit: 19a838e47e11d93a1836e798ba273d60da1c03d7
Parents: 8c4d83b
Author: Andrew I. Christianson <an...@andyic.org>
Authored: Fri Jul 13 11:17:37 2018 -0400
Committer: Marc Parisi <ph...@apache.org>
Committed: Wed Aug 1 13:03:09 2018 -0400
----------------------------------------------------------------------
README.md | 10 ++++++++++
snap/snapcraft.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/19a838e4/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 3da9a34..79f6ef9 100644
--- a/README.md
+++ b/README.md
@@ -455,6 +455,16 @@ Remove the build directory created above.
$ rm -rf ./build
```
+### Snapcraft
+
+Snapcraft builds are supported. As per Snapcraft's official recommendations, we recommend using Ubuntu 16.04 as a build system when building the Snap. To build the snap, run
+
+```
+$ snapcraft
+```
+
+from the project directory. Further instructions are available in the [Snapcraft documentation](https://docs.snapcraft.io/build-snaps/).
+
### Configuring
The 'conf' directory in the root contains a template config.yml document.
http://git-wip-us.apache.org/repos/asf/nifi-minifi-cpp/blob/19a838e4/snap/snapcraft.yaml
----------------------------------------------------------------------
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
new file mode 100644
index 0000000..aeba684
--- /dev/null
+++ b/snap/snapcraft.yaml
@@ -0,0 +1,52 @@
+name: minifi-cpp
+version: '0.5.0'
+summary: Apache NiFi MiNiFi Cpp
+description: Collecting on the edge
+
+grade: devel
+confinement: devmode
+
+parts:
+ minifi-cpp:
+ source: https://github.com/apache/nifi-minifi-cpp.git
+ source-type: git
+ source-tag: rel/minifi-cpp-0.5.0
+ plugin: cmake
+ configflags:
+ - -DCMAKE_INSTALL_PREFIX=/opt/minifi
+ - -DENABLE_GPS=TRUE
+ - -DENABLE_LIBRDKAFKA=TRUE
+ - -DENABLE_MQTT=TRUE
+ - -DENABLE_BUSTACHE=TRUE
+ - -DPORTABLE=ON
+ - -DBUILD_ROCKSDB=ON
+ - -DCMAKE_CXX_FLAGS='-W'
+ build-packages:
+ - make
+ - cmake
+ - build-essential
+ stage-packages:
+ - build-essential
+ - liblzma5
+ - libc6
+ - libusb-1.0-0
+ - libcurl4-openssl-dev
+ - libgps-dev
+ - libheimbase1-heimdal
+ - libheimntlm0-heimdal
+ - libhx509-5-heimdal
+ - libidn2-0
+ - libkrb5-3
+ - libldap-2.4-2
+ - libnghttp2-14
+ - libpython3.5-dev
+ - libroken18-heimdal
+ - librtmp1
+ - libsasl2-2
+ - libssl1.0.0
+ - libwind0-heimdal
+ - zlib1g
+
+apps:
+ minifi-cpp:
+ command: opt/minifi/bin/minifi