Skip to content

v1.2.0

Compare
Choose a tag to compare
@ldurnez ldurnez released this 19 Jun 15:32
· 17 commits to master since this release

Updates

Bump to 1.2.0 OpenCVE version.

How to upgrade

# Check if there is no updates ongoing on the celery_worker:
$ docker logs celery_worker

# If or when there is no update ongoing:
$ docker stop celery_beat celery_worker webserver

# Update opencve-docker repository:
$ git pull --prune

# Update your opencve.cfg file with the changes
$ vi conf/opencve.cfg

# Check that you are on the correct version:
$ grep OPENCVE_VERSION .env
OPENCVE_VERSION=1.2.0

# Build the new docker images:
$ docker-compose build

# Start the webserver & celery_worker:
$ docker-compose up -d webserver celery_worker

# Upgrade the database schema:
$ docker exec -it webserver opencve upgrade-db
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.runtime.migration] Running upgrade f81abceece3d -> 33cd640e1112, Add indexes on cves.summary and cve.cve_id
INFO  [alembic.runtime.migration] Running upgrade 33cd640e1112 -> 4195eeb432e9, Add tags tables

# Now you are good to go, you can start the beat:
$ docker-compose up -d celery_beat