Joe Nelson
00a23058c8
Merge pull request #511 from dex-ethics/docker-exec
...
Use `CMD exec` in Dockerfile
2016-03-07 22:34:16 -08:00
Remco Bloemen
82c74ed21f
Use CMD exec in Dockerfile
...
Without exec the `postgrest` process is not run with PID 1 (it
is a child process of the shell that starts it). This means
signals send to the docker (like `docker stop` or ^C) will
not be handled correctly.
However, Linux treats PID 1 as special and sets the SIGTERM
handler to ignore by default. It is also necessary to install
a SIGTERM handler.
This commit adds `exec` to resolve this problem, as per the
recommendation in the Dockerfile documentation:
https://docs.docker.com/engine/reference/builder/#shell-form-entrypoint-example
2016-03-07 18:30:40 +01:00
Joe Nelson
5f0b4977da
Merge pull request #514 from dex-ethics/docs
...
Minor changes in documentation
2016-03-07 09:15:16 -08:00
Remco Bloemen
82214856b6
Split build and install in build from source instructions.
...
Stack refuses to build when run under sudo.
2016-03-07 17:54:37 +01:00
Remco Bloemen
c09adb967a
Use gen_random_uuid() in user management example.
...
The function uuid_generate_v4() is not available
without extensions.
2016-03-07 17:53:55 +01:00
Remco Bloemen
e5d420b2db
Gracefull exit on sigTERM
...
Like the sigINT that was already handled, postgrest
should gracefuly shut down on a sigTERM. This is a
common way of stopping processes, used amongst
others by docker.
See: https://stackoverflow.com/questions/4042201/how-does-sigint-relate-to-the-other-termination-signals
2016-03-07 17:45:53 +01:00
Joe Nelson
ef021056c9
Merge pull request #497 from bobcolner/bobcolner-dockerfile
...
PostgREST Dockerfile
2016-03-05 13:20:05 -08:00
Bob Colner
b7b082cd8e
updated Dockerfile to use postgrest 3.1.0
2016-03-05 13:07:11 -08:00
Bob Colner
a02632f18c
Update Dockerfile
2016-03-05 12:53:33 -08:00
Joe Nelson
8af91e262c
Merge pull request #508 from begriffs/test-plain-build
...
Test that binary builds, not just that suite passes
v0.3.1.0
2016-02-29 22:49:33 -08:00
Joe Nelson
cf176c4100
Allow aeson v11, but forbid deadly v10
2016-02-29 21:03:42 -08:00
Joe Nelson
c61418635e
Ensure helper binaries get re-installed
...
Sadly causes all extra-deps to rebuild every time
2016-02-29 20:45:34 -08:00
Joe Nelson
dba827d1fd
List missing other-module in spec
2016-02-29 14:52:01 -08:00
Joe Nelson
e315ad99b4
Name the main module "Main" as required
2016-02-29 14:50:44 -08:00
Joe Nelson
088df7e6be
Test that binary build succeeds
...
Work around https://github.com/commercialhaskell/stack/issues/1846
2016-02-29 14:25:34 -08:00
Joe Nelson
4cd2475bf2
v0.3.1.0
2016-02-28 21:45:17 -08:00
Joe Nelson
fc4c792f9e
Move section in changelog
2016-02-26 12:17:24 -08:00
Joe Nelson
c094e5a0fc
Merge pull request #489 from diogob/apply_range_headers_to_rpc
...
Apply range headers to rpc
2016-02-26 12:10:33 -08:00
Diogo Biazus
9d0f3573c6
Implements query counting in proc call and adds Content-Rage to response
...
headers in /rpc calls.
2016-02-26 14:51:35 -05:00
Diogo Biazus
4496a95014
Updates changelog
2016-02-26 14:41:27 -05:00
Diogo Biazus
893b7a7126
Applies range headers to /rpc calls using LIMIT/OFFSET.
2016-02-26 14:41:27 -05:00
Joe Nelson
3b23c4aa5b
Merge pull request #503 from begriffs/one-tx-per-client
...
Reduces pool resource locking (2)
2016-02-26 10:11:47 -08:00
Joe Nelson
d466ea45ff
Add changelog entry
...
Nice work guys, this took a lot of cooperation
2016-02-26 10:06:54 -08:00
Joe Nelson
7ba5363d25
Upgrade hasql to fix prepared statement problem
2016-02-26 08:18:47 -08:00
Joe Nelson
f28b03f419
Allow new hasql-transaction to do rollbacks
2016-02-25 20:13:03 -08:00
Joe Nelson
de772b9246
Modified the concurrent test to illustrate problem with prepared statement
2016-02-22 20:58:44 -08:00
Joe Nelson
c28b26d949
Run QueryLimitedSpec with its own server flags
2016-02-22 19:21:39 -08:00
Joe Nelson
c02dd4aa98
Enable real threads in test
2016-02-22 17:53:10 -08:00
Joe Nelson
b0974a4e36
Reset db between each test suite
2016-02-22 17:50:00 -08:00
Joe Nelson
17acd134c7
Suppress server logging in test mode
2016-02-22 17:48:33 -08:00
Joe Nelson
d4a4bbf966
Roll back on db errors
2016-02-22 16:52:50 -08:00
Joe Nelson
7b7babd1d1
Fix frozen tests
...
Problem found by @ruslantalpa
2016-02-22 08:41:31 -08:00
Joe Nelson
072a6ce4c7
Bump hasql to 0.19.8
2016-02-21 18:37:17 -08:00
Joe Nelson
d5c1438c6e
Use hasql-transaction
...
Also use hspec before-wrapper
2016-02-21 18:05:25 -08:00
Joe Nelson
30e5032ade
Use lower optimization to speed up regular dev builds
2016-02-21 14:11:46 -08:00
Joe Nelson
d7fe59f0b0
WIP: share server code between tests and program
...
- Share server code in Main
- Switch to hasql-pool
- Use pool in tests
- DRY up test runner
2016-02-21 12:22:18 -08:00
Joe Nelson
8a006f07a7
Show error text more clearly
2016-02-20 18:11:46 -08:00
Diogo Biazus and Joe Nelson
01ab540ffe
Simplify return from withResource in Main.hs
2016-02-20 18:03:17 -08:00
Diogo Biazus and Joe Nelson
de848f64fa
Return the results from withResource function before applying the respond continuation. This ensures that the pool resource is freed as soon as the database operation is complete
2016-02-20 18:03:06 -08:00
Joe Nelson
52e689b830
Add concurrent test for "transaction in progress"
...
MonadBaseControl wizardry courtesy of @jwiegley
2016-02-20 17:45:55 -08:00
Bob Colner
ef3e2511fe
PostgRest Dockerfile
...
PostgRest Dockerfile with ENV parameter passthrough.
2016-02-17 10:41:34 -08:00
Joe Nelson
6b4b763bc4
Merge pull request #494 from begriffs/test-raw-cabal
...
Ensure plain cabal can determine a build plan
2016-02-15 11:46:31 -08:00
Joe Nelson
6b1c8b3e39
Ensure plain cabal can determine a build plan
...
For those wishing to use postgrest as a library
2016-02-14 22:17:26 -08:00
Joe Nelson
f3293cfac1
Do not name import of void directly as it is used conditionally
2016-02-12 23:15:09 -08:00
Joe Nelson
0dd8a498b2
v0.3.0.4
v0.3.0.4
2016-02-12 20:45:03 -08:00
Joe Nelson
f9b8e6879d
Merge pull request #492 from begriffs/threaded
...
Do not block threads on libpq ffi
2016-02-12 20:32:40 -08:00
Joe Nelson
e73a4c66bc
Do not block threads on libpq ffi
...
Fixes #445
2016-02-12 14:43:00 -08:00
Joe Nelson
fc3c885bb6
Merge pull request #491 from begriffs/payload-error
...
Ensure payload parse errors are not suppressed
2016-02-11 16:39:13 -08:00
Joe Nelson
8b3d224b80
Ensure payload parse errors are not suppressed
...
Fixes #490
2016-02-11 16:24:02 -08:00
Joe Nelson
ce6e52e9ba
Merge pull request #487 from motiz88/nitpick
...
Minor proofreading in InsertSpec
2016-02-08 08:23:22 -08:00