Also changed **docker_init_postgres.sh**. Since we don't have postgres
user now, then we cannot use `sudo -u postgres`. The alternative will be
running `psql --username=blahblah`.
Signed-off-by: John Wu <webmaster@leapoahead.com>
Given how docker caching works, it is better the group multiple
`apt-get` instructions into one when possible because it prevents docker
from building too many layers.
Signed-off-by: John Wu <webmaster@leapoahead.com>
Create postgres user because we are now using `postgres-client` packages
which does not create postgres user by default. We need this user when
running `docker_init_postgres.sh`, so let's create it by hand.
Signed-off-by: John Wu <webmaster@leapoahead.com>
By using Dockerfile `RUN` command, we can enable docker to cache our
build. Also, much more easier to maintain.
Signed-off-by: John Wu <webmaster@leapoahead.com>