Skip to content

Commit 28a5bf5

Browse files
author
Peter Causey-Freeman
committed
Fix up docker install for new version 2.1.0
1 parent 0c73e8e commit 28a5bf5

File tree

5 files changed

+34
-38
lines changed

5 files changed

+34
-38
lines changed

REQUIREMENTS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,5 @@ flask-restplus
2323
flask==1.1.1
2424
Werkzeug==0.16.1
2525
itsdangerous==2.0.1
26+
jinja2<3.1.0
27+

docs/DOCKER.md

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,34 @@ $ docker-compose build --no-cache
6464

6565
- Complete build
6666
- The first time you do this, it will complete the build process, for example, populating the required the databases
67-
- When this is completed you will need to shutdown the services and re-start (see below)
6867
- The build takes a while because the vv databases are large. However, this is a significant improvement on previou
69-
s versions. Install time is approximately 30 minutes (depending on the speed of you computer and internet connection)
70-
- The build has completed when you see the message ***"Successfully built <container number string>"***
71-
- example: "Successfully built fc9b83c8d21fa8bdebd52e0e87b9fde967933a043dace1a31916f8106110c8d8
72-
"
73-
- Then complete the following steps
68+
s versions. Build time is ~30 minutes (depending on the speed of you computer and internet connection)
69+
- The build has completed when you see the message ***"naming to docker.io/library/rest_variantvalidator_restvv"***
70+
7471
```bash
75-
# Create the containers (This only takes a coule of minutes)
76-
$ docker-compose up
72+
# If you have previously installed this software you will need to remove old SeqRepo databases
73+
$ rm -r -f ~/variantvalidator_data/share/seqrepo/<Previos_SeqRepo_Directory>
74+
75+
# Create the vvta container (This takes ~10 minutes to complete)
76+
$ docker-compose up vvta
7777

78-
# When you see the following message the containers have been created.
79-
"vvta_1 | 2021-07-23 16:29:17.590 UTC [1] LOG: database system is ready to accept connections"
78+
# When you see the following message the container has been created.
79+
"database system is ready to accept connections"
8080

81-
# Then perforn an initial shut down prior to re-launch and working with VarinatValidator in Docker
81+
# Then perforn shut down
8282
ctrl + c
83+
84+
# Create the vdb container (This takes a few of minutes) and needs to be created first
85+
$ docker-compose up vdb
86+
87+
# When you see the following message the container has been created.
88+
"database system is ready to accept connections"
89+
90+
# Then perforn shut down
91+
ctrl + c
92+
93+
# Launch the full application
94+
$ docker-compose up
8395
```
8496

8597
### Build errors you may encounter
@@ -306,12 +318,15 @@ Update requires that the restvv container is deleted from your system. This is n
306318
If you are only running rest_variantValidator in docker, we recommend deleting and re-building all containers
307319

308320
```bash
309-
# Delete all containers
310-
$ docker-compose down
321+
# Remove the specific containers
322+
$ docker-compose rm
323+
324+
# OR Delete all containers on your system
325+
$ docker-compose rm
311326
$ docker system prune -a --volumes
312327
```
313328

314-
***Once you have deleted the containers, got to Install and Build***
329+
***Once you have deleted the containers, go to Install and Build***
315330

316331
Alternatively, you may wish to try and force the containers to re-build without deleting
317332

setup.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,6 @@
4343
"sequencevariants",
4444
],
4545

46-
# List run-time dependencies here. These will be installed by pip when the project is installed.
47-
install_requires=[
48-
"werkzeug==0.16.1",
49-
"flask-restplus",
50-
"gunicorn",
51-
"httplib2>=0.9.0",
52-
"configparser>=3.5.0",
53-
"pyliftover>=0.3",
54-
"biotools>=0.3.0",
55-
"mysql-connector-python",
56-
"requests",
57-
"dicttoxml",
58-
"vvhgvs @ git+https://github.com/openvar/vv_hgvs.git@master#egg=vvhgvs",
59-
"VariantValidator @ git+https://github.com/openvar/variantValidator.git@master#egg=VariantValidator",
60-
"VariantFormatter @ git+https://github.com/openvar/variantFormatter.git@master#egg=VariantFormatter",
61-
"biocommons.seqrepo>=0.5.1",
62-
"biopython",
63-
"flask==1.1.1",
64-
"Werkzeug==0.16.1",
65-
"itsdangerous==2.0.1",
66-
],
6746
setup_requires=[
6847
"setuptools_scm",
6948
]

vdb_docker.df

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ ENV MYSQL_PASSWORD var1ant
1010

1111
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
1212

13-
RUN wget https://www528.lamp.le.ac.uk/vvdata/validator/validator_2022_04.sql.gz -O /docker-entrypoint-initdb.d/validator_2022_04.sql.gz
13+
RUN wget --output-document=validator_2022_04.sql.gz https://www528.lamp.le.ac.uk/vvdata/validator/validator_2022_04.sql.gz -O /docker-entrypoint-initdb.d/validator_2022_04.sql.gz
1414

vvta_docker.df

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM postgres:12.6
1+
FROM postgres:11.15
22

33
ENV POSTGRES_DB=vvta
44

@@ -8,4 +8,4 @@ ENV POSTGRES_PASSWORD=uta_admin
88

99
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
1010

11-
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
11+
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

0 commit comments

Comments
 (0)