#!/bin/bash

set -exu

options=(--rm -p5432:5432)
if [ $# -ge 1 ]; then
  db_dir=$1
  rm -rf ${db_dir}
  mkdir -p ${db_dir}
  options+=("-v${db_dir}:/var/lib/postgresql")
fi

docker run "${options[@]}" groonga/pgroonga:latest-debian-9.6

Add a script to run PostgreSQL
Add a script to run PostgreSQL
