diff --git a/.travis.yml b/.travis.yml index 365bac8c..b24b469c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,7 +49,7 @@ before_install: ### also we need to test that the database works with only public permissions too, as should be for any web attached user - createdb -e vvta -O uta_admin - psql -d vvta -U postgres -c "CREATE USER ta_user WITH PASSWORD 'read_only'" - - wget --output-document=VVTA_2022_02.noseq.psql.gz https://www528.lamp.le.ac.uk/vvdata/vvta/VVTA_2022_02.noseq.psql.gz + - wget --output-document=VVTA_2022_02_noseq.sql.gz https://www528.lamp.le.ac.uk/vvdata/vvta/VVTA_2022_02_noseq.sql.gz - gunzip -c VVTA_2022_02.noseq.psql.gz | psql --quiet vvta - psql -d vvta -U postgres -c 'GRANT SELECT ON vvta_2022_02.gene TO public;' - psql -d vvta -U postgres -c 'GRANT SELECT ON ALL TABLES IN SCHEMA public TO ta_user;' diff --git a/vvta_docker.df b/vvta_docker.df index 4fabed2c..307aa843 100644 --- a/vvta_docker.df +++ b/vvta_docker.df @@ -8,5 +8,5 @@ ENV POSTGRES_PASSWORD=uta_admin RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* -RUN wget --output-document=VVTA_2022_02.noseq.psql.gz https://www528.lamp.le.ac.uk/vvdata/vvta/VVTA_2022_02.noseq.psql.gz -O /docker-entrypoint-initdb.d/VVTA_2022_02.noseq.psql.gz +RUN wget --output-document=VVTA_2022_02_noseq.sql.gz https://www528.lamp.le.ac.uk/vvdata/vvta/VVTA_2022_02_noseq.sql.gz -O /docker-entrypoint-initdb.d/VVTA_2022_02_noseq.sql.gz