Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
update in docker.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
chris529 committed Oct 19, 2023
1 parent ee83af0 commit f981e0a
Showing 1 changed file with 33 additions and 26 deletions.
59 changes: 33 additions & 26 deletions docs/antora/modules/ROOT/pages/management/docker.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Mona Bärenfänger <[email protected]>
:url_FLUSHALL: https://redis.io/commands/FLUSHALL
:url_snapshot_config: configuration/index.adoc
:url_backups: management/snapshots.adoc
:url_rel_notes: https://github.com/LiskHQ/lisk-service/releases/

:url_rel_notes: https://github.com/LiskHQ/lisk-service/releases
:url_tags: https://github.com/LiskHQ/lisk-service/tags

== Build Docker image

Expand Down Expand Up @@ -249,25 +249,21 @@ In the above example, it will display logs only for the `blockchain-connector` m
----
make logs-live-blockchain-connector
----
In the above example, it will display latest logs only for the `blockchain-connector` microservice.
In the above example, it will display the latest logs only for the `blockchain-connector` microservice.


Replace the `blockchain-connector` with the specific service name required.


== Upgrade Lisk Service

To upgrade the Docker container to a desired version, please follow one of the two options below. To find all the tagged versions for Lisk Service, please check the available tags (https://github.com/LiskHQ/lisk-service/tags) on GitHub.
To upgrade the Docker container to a desired version, please follow one of the two options below. To find all the tagged versions for Lisk Service, please check the {url_tags}[available tags] on GitHub.

[tabs]
====
Option A - Build images locally ::
Option A - Download pre-built images from DockerHub::
+
--
Build the images locally using the following steps.
Navigate inside the lisk-service root folder, and execute the following commands.
. Stop Lisk Service
+
----
Expand All @@ -281,21 +277,6 @@ NOTE: In case the database needs to be flushed please execute the `make down` co
git checkout v0.7.0
----
. Build the required updated Docker images
+
----
make build
----
. Start Lisk Service in the containers
+
----
make up
----
--
Option B - Download pre-built images from DockerHub::
+
--
. Update `docker-compose.yml` to download the specific image versions from the DockerHub as shown below.
Update specified images with the desired version, for example `0.7.0`.
+
Expand Down Expand Up @@ -339,18 +320,44 @@ blockchain-app-registry:
----
. Start Lisk Service in the containers.
+
----
make up
----
--
Option B - Build images locally ::
+
--
Build the images locally using the following steps.
Navigate inside the lisk-service root folder, and execute the following commands.
. Stop Lisk Service
+
----
make stop
----
NOTE: In case the database needs to be flushed please execute the `make down` command instead. Please check the {url_rel_notes}[GitHub release notes] for the relevant version to verify if the existing databases need to be flushed.
NOTE: In case the database needs to be flushed please execute the `make down` command instead. Please check the {url_rel_notes}[release notes] for the relevant version to see if the existing databases need to be flushed.
. Start Lisk Service in the containers.
. Checkout the version with *`git checkout <tag>`*
+
----
git checkout v0.7.0
----
. Build the required updated Docker images
+
----
make build
----
. Start Lisk Service in the containers
+
----
make up
----
--
====

To verify the microservice logs, please refer to the <<Logging>> section.

0 comments on commit f981e0a

Please sign in to comment.