A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.
posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecordYou have to do 2 things in order to allow your container to access your host's postgresql database
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
| # graphite/statsd/grafana setup on new Amazon Linux instance | |
| # add http://graphite/ to grafana as a data source | |
| sudo su | |
| yum update --assumeyes | |
| yum install --assumeyes docker | |
| service docker start | |
| docker \ | |
| run \ |