Interpreter build script + dockerfile.
Summary: Interpreter build script + dockerfile. Reviewers: teon.banek Reviewed By: teon.banek Subscribers: pullbot, buda Differential Revision: https://phabricator.memgraph.io/D275
This commit is contained in:
parent
15d5328957
commit
38c40096c5
28
config/compiler.yaml
Normal file
28
config/compiler.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
###########################
|
||||
# MEMGRAPH DEFAULT CONFIG #
|
||||
###########################
|
||||
|
||||
# NOTE: all paths are relative to the run folder
|
||||
# (where the executable is runned)
|
||||
|
||||
# path to the codes which will be compiled
|
||||
compile_path: "./compiled/"
|
||||
|
||||
# path to the template (cpp) for codes generation
|
||||
template_cpp_path: "./template/plan_template_cpp"
|
||||
|
||||
# path to the folder with snapshots
|
||||
snapshots_path: "snapshots"
|
||||
|
||||
# cleaning cycle interval
|
||||
# if set to -1 the GC will not run
|
||||
cleaning_cycle_sec: "30"
|
||||
|
||||
# snapshot cycle interval
|
||||
snapshot_cycle_sec: "60"
|
||||
|
||||
# max number of snapshots which will be kept on the disk at some point
|
||||
max_retained_snapshots: "3"
|
||||
|
||||
# by default query engine runs in interpret mode
|
||||
interpret: false
|
28
config/interpreter.yaml
Normal file
28
config/interpreter.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
###########################
|
||||
# MEMGRAPH DEFAULT CONFIG #
|
||||
###########################
|
||||
|
||||
# NOTE: all paths are relative to the run folder
|
||||
# (where the executable is runned)
|
||||
|
||||
# path to the codes which will be compiled
|
||||
compile_path: "./compiled/"
|
||||
|
||||
# path to the template (cpp) for codes generation
|
||||
template_cpp_path: "./template/plan_template_cpp"
|
||||
|
||||
# path to the folder with snapshots
|
||||
snapshots_path: "snapshots"
|
||||
|
||||
# cleaning cycle interval
|
||||
# if set to -1 the GC will not run
|
||||
cleaning_cycle_sec: "30"
|
||||
|
||||
# snapshot cycle interval
|
||||
snapshot_cycle_sec: "60"
|
||||
|
||||
# max number of snapshots which will be kept on the disk at some point
|
||||
max_retained_snapshots: "3"
|
||||
|
||||
# by default query engine runs in interpret mode
|
||||
interpret: true
|
14
release/alpha_interpreter.dockerfile
Normal file
14
release/alpha_interpreter.dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y clang uuid-dev \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
ENV BINARY_NAME memgraph_733_d9e02d6_mg_release_script_debug
|
||||
ENV MEMGRAPH_CONFIG /memgraph/config/interpreter.yaml
|
||||
|
||||
COPY $BINARY_NAME /memgraph
|
||||
|
||||
WORKDIR /memgraph
|
||||
|
||||
CMD ./memgraph
|
25
release/alpha_interpreter.sh
Executable file
25
release/alpha_interpreter.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Initial version of script that is going to be used for release builds.
|
||||
|
||||
# NOTE: do not run this script as a super user
|
||||
|
||||
echo "Memgraph Release Building..."
|
||||
|
||||
# compile memgraph
|
||||
cd ../build
|
||||
rm -rf ./*
|
||||
cmake -DCMAKE_BUILD_TYPE:String=debug ..
|
||||
make -j8
|
||||
|
||||
# get the most recent version of memgraph exe
|
||||
exe_name=`ls -t memgraph_* | head -1`
|
||||
|
||||
# create dst directory
|
||||
mkdir -p ../release/${exe_name}
|
||||
|
||||
# copy all relevant files
|
||||
cp ${exe_name} ../release/${exe_name}/memgraph
|
||||
cp -r ../config ../release/${exe_name}/config
|
||||
|
||||
echo "Memgraph Release Building DONE"
|
Loading…
Reference in New Issue
Block a user