Skip to content

Commit 91c3199

Browse files
author
Peter J. Freeman
authored
Merge pull request #87 from openvar/v3.2.0
V3.2.0
2 parents 6cef29a + b853e9a commit 91c3199

File tree

7 files changed

+38
-22
lines changed

7 files changed

+38
-22
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Use an official Python runtime as a parent image
3-
FROM python:3.8
3+
FROM python:3.10
44

55
# Set the working directory to /app
66
WORKDIR /app
@@ -30,5 +30,4 @@ RUN pip install -e .
3030
COPY configuration/docker.ini /root/.variantvalidator
3131

3232
# Start the application with gunicorn
33-
# CMD gunicorn -b 0.0.0.0:8000 app --workers=3 --threads=5 --worker-class=gthread --chdir ./rest_VariantValidator/
3433
CMD gunicorn -b 0.0.0.0:8000 app --threads=5 --chdir ./rest_VariantValidator/

configuration/docker.ini

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@ port = 3306
44
database = validator
55
user = vvadmin
66
password = var1ant
7-
version = vvdb_2022_04
7+
version = vvdb_2022_11
88

99
[seqrepo]
10-
version = VV_SR_2022_02/master
10+
version = VV_SR_2022_11/master
1111
location = /usr/local/share/seqrepo
12+
require_threading = True
1213

1314
[postgres]
1415
host = vvta
1516
port = 5432
1617
database = vvta
17-
version = vvta_2022_02
18+
version = vvta_2022_11
1819
user = uta_admin
1920
password = uta_admin
2021

2122
[logging]
22-
#Levels control verbosity and can be set to "CRITICAL" "ERROR" "WARNING" "INFO" or "DEBUG".
23-
log_to = /usr/local/share/logs
23+
# Levels control verbosity and can be set to "CRITICAL" "ERROR" "WARNING" "INFO" or "DEBUG".
2424
log = True
2525
console = WARNING
2626
file = ERROR
2727

2828
[Entrez]
29-
email = None
30-
api_key = None
29+
email = OPTIONAL
30+
api_key = OPTIONAL
3131

3232

3333
# <LICENSE>

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ services:
66
context: .
77
dockerfile: vdb_docker.df
88
ports:
9-
- "33060:3306"
9+
- "33061:3306"
1010
expose:
11-
- "33060"
11+
- "33061"
1212
vvta:
1313
build:
1414
context: .
1515
dockerfile: vvta_docker.df
1616
ports:
17-
- "54320:5432"
17+
- "54321:5432"
1818
expose:
19-
- "54320"
19+
- "54321"
2020
seqrepo:
2121
build:
2222
context: .

docs/DOCKER.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ do not update your container for more than 12 months; else leave as `None`. See
3737
Note: Reconfiguration can be achieved by accessing the docker container through bash. See below for entry and the
3838
VariantValidator [manual](https://github.com/openvar/variantValidator/blob/master/docs/MANUAL.md) for details
3939

40+
- Edit the `vdb_docker.df` file
41+
42+
You need to select your chip set e.g. Arm or Intel and remove the relevant hash. Default is intel
43+
44+
```
45+
# For Arm chips e.g. Apple M1
46+
# FROM biarms/mysql:5.7
47+
48+
# For Intel chips
49+
FROM mysql:5.7
50+
```
4051

4152
## Build the container
4253

@@ -53,6 +64,7 @@ $ docker-compose pull
5364
```bash
5465
$ mkdir ~/variantvalidator_data
5566
$ mkdir ~/variantvalidator_data/share
67+
$ mkdir ~/variantvalidator_data/share/logs
5668
```
5769
*i.e.* a directory called `variantvalidator_data/share` in your `home` directory
5870

@@ -66,7 +78,7 @@ $ docker-compose build --no-cache
6678
- The first time you do this, it will complete the build process, for example, populating the required the databases
6779
- The build takes a while because the vv databases are large. However, this is a significant improvement on previou
6880
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"***
81+
- The build has completed when you see the message ***"Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them"***
7082

7183
```bash
7284
# If you have previously installed this software you will need to remove old SeqRepo databases
@@ -216,6 +228,7 @@ $ exit
216228
- Note: Under the terms and conditions of our [license](https://github.com/openvar/rest_variantValidator/blob/master/LICENSE.txt) changes to the code and improvements must be made available to the community so that we can integrate them for the good of all our users
217229
- See instructions on VariantValidator development in Docker
218230

231+
3. For other commands that you can run using bash, see the [VariantValidator DOCKER.md](https://github.com/openvar/variantValidator/blob/master/docs/DOCKER.md)
219232

220233
## Developing VariantValidator in Docker
221234
The container has been configured with git installed. This means that you can clone Repos directly into the container

vdb_docker.df

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM mysql:latest
1+
# For Arm chips e.g. Apple M1
2+
# FROM biarms/mysql:5.7
3+
4+
# For Intel chips
5+
FROM mysql:5.7
26

37
ENV MYSQL_RANDOM_ROOT_PASSWORD yes
48

@@ -10,5 +14,4 @@ ENV MYSQL_PASSWORD var1ant
1014

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

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
14-
17+
RUN wget https://www528.lamp.le.ac.uk/vvdata/validator/validator_2022_11.sql.gz -O /docker-entrypoint-initdb.d/validator_2022_11.sql.gz

vvsr_docker.df

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ RUN apt-get install -y wget
66

77
RUN mkdir -p /usr/local/share/seqrepo
88

9-
RUN wget --output-document=/usr/local/share/seqrepo/VV_SR_2022_02.tar https://www528.lamp.le.ac.uk/vvdata/vv_seqrepo/VV_SR_2022_02.tar
9+
RUN wget --output-document=/usr/local/share/seqrepo/VV_SR_2022_11.tar https://www528.lamp.le.ac.uk/vvdata/vv_seqrepo/VV_SR_2022_11.tar
1010

11-
RUN tar -xvf /usr/local/share/seqrepo/VV_SR_2022_02.tar --directory /usr/local/share/seqrepo
11+
RUN tar -xvf /usr/local/share/seqrepo/VV_SR_2022_11.tar --directory /usr/local/share/seqrepo
1212

13-
RUN rm /usr/local/share/seqrepo/VV_SR_2022_02.tar
13+
RUN rm /usr/local/share/seqrepo/VV_SR_2022_11.tar

vvta_docker.df

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

33
ENV POSTGRES_DB=vvta
44

@@ -8,4 +8,5 @@ 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.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
11+
RUN wget --output-document=vvta_2022_11_noseq.sql.gz https://www528.lamp.le.ac.uk/vvdata/vvta/vvta_2022_11_no_seq.sql.gz -O /docker-entrypoint-initdb.d/vvta_2022_11_noseq.sql.gz
12+

0 commit comments

Comments
 (0)