1. Simplify user creation to create a non system user (so the uid will usually
match the host user).
2. Set the user to redash & remove the need to change user in docker entrypoint.
I realized that it makes more sense to run Webpack on the host machine
as usually you will need to install Node's tools on the host to enjoy
better intelisense and eslint support in the editor.
On top of that, installing Node.js on most developer machines should be
relatively easy.
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>