Cleanup and reorganize release directory
Summary: Add packager variable for Arch package. Move docker packaging to docker subfolder. Remove web_browser script. Move debian from cmake dir to release. Add README.md to release dir. Reviewers: mferencevic, buda Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1104
This commit is contained in:
parent
4f61e6db7e
commit
65f4c53529
@ -221,11 +221,11 @@ set(CPACK_DEBIAN_PACKAGE_MAINTAINER "tech@memgraph.com (Memgraph Ltd.)")
|
|||||||
set(CPACK_DEBIAN_PACKAGE_SECTION non-free/database)
|
set(CPACK_DEBIAN_PACKAGE_SECTION non-free/database)
|
||||||
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE https://memgraph.com)
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE https://memgraph.com)
|
||||||
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
|
set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/conffiles;"
|
"${CMAKE_SOURCE_DIR}/release/debian/conffiles;"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/copyright;"
|
"${CMAKE_SOURCE_DIR}/release/debian/copyright;"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/prerm;"
|
"${CMAKE_SOURCE_DIR}/release/debian/prerm;"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postrm;"
|
"${CMAKE_SOURCE_DIR}/release/debian/postrm;"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/debian/postinst;")
|
"${CMAKE_SOURCE_DIR}/release/debian/postinst;")
|
||||||
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
|
||||||
# Description formatting is important, summary must be followed with a newline and 1 space.
|
# Description formatting is important, summary must be followed with a newline and 1 space.
|
||||||
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}
|
set(CPACK_DEBIAN_PACKAGE_DESCRIPTION "${CPACK_PACKAGE_DESCRIPTION_SUMMARY}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../../release/LICENSE.md
|
|
1
release/.gitignore
vendored
1
release/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
memgraph-*.tar.gz
|
|
14
release/README.md
Normal file
14
release/README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# Memgraph Release Packaging
|
||||||
|
|
||||||
|
Various tools and packaging configuration files should be put under this
|
||||||
|
directory. Common files for all packages can be kept in the root of this
|
||||||
|
directory, for example `memgraph.service`. If the common stuff should be
|
||||||
|
grouped, it should be in a subdirectory. `examples` directory is one such
|
||||||
|
case. Packaging specific stuff must have its own directory.
|
||||||
|
|
||||||
|
Currently we support distributing Memgraph binary through the following
|
||||||
|
packages.
|
||||||
|
|
||||||
|
* Debian package
|
||||||
|
* Docker image
|
||||||
|
* ArchLinux package
|
@ -38,7 +38,8 @@ cp ../memgraph.install ./
|
|||||||
updpkgsums PKGBUILD
|
updpkgsums PKGBUILD
|
||||||
namcap PKGBUILD
|
namcap PKGBUILD
|
||||||
|
|
||||||
makepkg
|
# TODO: Maybe add a custom makepkg.conf and use that
|
||||||
|
makepkg PACKAGER="tech@memgraph.com (Memgraph Ltd.)"
|
||||||
# Check the final package archive validity and move it in parent directory.
|
# Check the final package archive validity and move it in parent directory.
|
||||||
pkg_name=memgraph-${version}-1-x86_64.pkg.tar.xz
|
pkg_name=memgraph-${version}-1-x86_64.pkg.tar.xz
|
||||||
namcap --exclude=emptydir $pkg_name
|
namcap --exclude=emptydir $pkg_name
|
||||||
|
1
release/debian/copyright
Symbolic link
1
release/debian/copyright
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../LICENSE.md
|
@ -10,7 +10,6 @@ function print_help () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
working_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
working_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
project_dir="${working_dir}/.."
|
|
||||||
|
|
||||||
latest_image=""
|
latest_image=""
|
||||||
tag_latest=""
|
tag_latest=""
|
||||||
@ -38,7 +37,7 @@ version=`echo ${deb_name} | sed 's/.*[-_]\(.*\)-.*/\1/'`
|
|||||||
image_name="memgraph:${version}"
|
image_name="memgraph:${version}"
|
||||||
package_name="memgraph-${version}-docker.tar.gz"
|
package_name="memgraph-${version}-docker.tar.gz"
|
||||||
# Build docker image.
|
# Build docker image.
|
||||||
docker build -t ${image_name} ${tag_latest} -f ${working_dir}/community.dockerfile --build-arg deb_release=${deb_name}.deb .
|
docker build -t ${image_name} ${tag_latest} -f ${working_dir}/memgraph.dockerfile --build-arg deb_release=${deb_name}.deb .
|
||||||
docker save ${image_name} ${latest_image} > ${package_name}
|
docker save ${image_name} ${latest_image} > ${package_name}
|
||||||
rm -rf "${deb_name}.deb"
|
rm -rf "${deb_name}.deb"
|
||||||
echo "Built Docker image at '${working_dir}/${package_name}"
|
echo "Built Docker image at '${working_dir}/${package_name}"
|
@ -1,37 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
working_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
||||||
|
|
||||||
# NOTE! database has to be started manually!
|
|
||||||
|
|
||||||
# SYSTEM LEVEL DEPENDENCIES
|
|
||||||
# TODO (install): npm
|
|
||||||
# TODO (install): npm install -g yarn
|
|
||||||
|
|
||||||
# DEPENDENCIES
|
|
||||||
cd ${working_dir}
|
|
||||||
git clone https://github.com/novnc/websockify
|
|
||||||
git clone https://github.com/neo4j/neo4j-browser
|
|
||||||
# NOTE: git will skip cloning if the repositories were already being cloned
|
|
||||||
|
|
||||||
db_port=7687
|
|
||||||
proxy_port=7688
|
|
||||||
web_port=7689
|
|
||||||
|
|
||||||
echo "Database port: ${db_port}"
|
|
||||||
echo "Websocket proxy port: ${proxy_port}"
|
|
||||||
echo "Neo4j Browser port: ${web_port}"
|
|
||||||
|
|
||||||
# run web sockify
|
|
||||||
cd ${working_dir}/websockify
|
|
||||||
./run localhost:${proxy_port} localhost:${db_port} &
|
|
||||||
proxy_pid=$!
|
|
||||||
|
|
||||||
# run neo4j-browser
|
|
||||||
cd ${working_dir}/neo4j-browser
|
|
||||||
yarn # installs neo4j-browser dependencies
|
|
||||||
yarn start -- --port ${web_port}
|
|
||||||
|
|
||||||
kill -9 ${proxy_pid}
|
|
||||||
|
|
||||||
# :server connect -> bolt://localhost:${proxy_port}
|
|
Loading…
Reference in New Issue
Block a user