docker build -t "chogori-builder-sql" .
This mounts your host current directory PWD
into the /host
directory of the container. Any changes you do in the container inside the /host
dir
ectory are reflected into the host (much like a symlink)
docker run -it --rm --init -v ${PWD}:/host chogori-builder-sql
cd /host
git clone https://github.com/futurewei-cloud/chogori-sql.git
cd chogori-sql
mkdir -p build
cd build
cmake ../
make -j
cd /host/chogori-sql
test/integration/integrate.sh
test/regression.sh
cd /host/chogori-sql/pgtest
./initDB.sh
./pg_run.sh &
/host/chogori-sql/src/k2/postgres/bin/psql postgres