Skip to content

Commit

Permalink
Adding TGZ package. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
apkar committed Jan 14, 2019
1 parent 0ddb1a0 commit 1ced656
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ find_package(Threads)


add_subdirectory(src)

include(cmake/CPackConfig.cmake)
27 changes: 27 additions & 0 deletions cmake/CPackConfig.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Common CPack packaging setup
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "FoundationDB Document Layer")
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_PACKAGE_NAME fdb-document-layer)
set(CPACK_PACKAGE_HOMEPAGE_URL https://github.com/FoundationDB/fdb-document-layer)
set(CPACK_PACKAGE_VENDOR FoundationDB)
set(CPACK_OUTPUT_FILE_PREFIX packages)


set(CPACK_PACKAGE_DESCRIPTION "
The FoundationDB Document Layer is a stateless microserver which
supports the MongoDB® wire protocol and implements a subset of the
MongoDB® API. All stateful operations are delegated to the FoundationDB
Key-Value Store.
This package contains only the Document Layer. The FoundationDB Client
Library must be installed separately.
Disclaimer: MongoDB is a registered trademark of MongoDB, Inc.")

set(CPACK_GENERATOR TGZ)

include(CPack)
4 changes: 2 additions & 2 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ services:
environment:
- MAKEPROCS=1
- RELEASE=1
command: bash -cl 'mkdir -p build && cd build && cmake .. && make -j "$${MAKEJOBS}"'
command: bash -cl 'mkdir -p build && cd build && cmake .. && make -j "$${MAKEJOBS}" && make package'

build-snapshot: &build-snapshot
<<: *build-setup
environment:
- MAKEPROCS=1
command: bash -cl 'mkdir -p build && cd build && cmake .. && make -j "$${MAKEJOBS}"'
command: bash -cl 'mkdir -p build && cd build && cmake .. && make -j "$${MAKEJOBS}" && make package'

build-prb:
<<: *build-snapshot
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@ target_compile_options(fdbdoc
-fno-omit-frame-pointer
)


install(TARGETS fdbdoc RUNTIME DESTINATION bin)
install(PROGRAMS ${FdbMonitor_EXECUTABLE_PATH} DESTINATION lib/foundationdb/document)

0 comments on commit 1ced656

Please sign in to comment.