Move Docker files
This commit is contained in:
parent
d3475b0d83
commit
b22c086e10
|
@ -10,10 +10,10 @@ COPY ./ /data/
|
|||
RUN chown -R postgres:postgres /data/
|
||||
|
||||
# Patch the entrypoint script so it always initializes the DB.
|
||||
RUN patch /usr/local/bin/docker-entrypoint.sh < /data/docker-entrypoint.patch
|
||||
RUN patch /usr/local/bin/docker-entrypoint.sh < /data/docker/docker-entrypoint.patch
|
||||
|
||||
# Build pg_libphonenumber.
|
||||
WORKDIR /data
|
||||
RUN make && make install
|
||||
|
||||
CMD ["/data/run-tests.sh", "${PG_MAJOR}"]
|
||||
CMD ["/data/docker/run-tests.sh", "${PG_MAJOR}"]
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker build -t pg_libphonenumber_test -f docker/Dockerfile .
|
||||
docker run -it --mount type=tmpfs,destination=/var/lib/postgresql/data pg_libphonenumber_test
|
Loading…
Reference in New Issue