Skip to content

Commit 17cf724

Browse files
committed
Add forgotten files
1 parent e167df2 commit 17cf724

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

Dockerfile.tmpl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM postgres:${PG_VERSION}-alpine
2+
3+
ENV LANG=C.UTF-8
4+
RUN apk --no-cache add python${PYTHON_VERSION} py-pip
5+
RUN pip install six pg8000 flake8
6+
7+
RUN mkdir -p /pg
8+
VOLUME /pg
9+
COPY run_tests.sh /run.sh
10+
RUN chmod 755 /run.sh
11+
12+
ADD . /pg/testgres
13+
WORKDIR /pg/testgres
14+
RUN python setup.py install
15+
16+
ENTRYPOINT su-exec postgres /run.sh

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tests:
2+
build: .

run_tests.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
cd testgres/tests
4+
python -m unittest test_simple
5+
flake8 --ignore=W191,F401,E501,F403 .

0 commit comments

Comments
 (0)