Add a migration command for HSD and fix it to a given commit.
This commit is contained in:
parent
bd2c573f2a
commit
bbfae662a2
|
@ -103,6 +103,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./docker/handshake
|
context: ./docker/handshake
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
command: --chain-migrate=1 --wallet-migrate=1
|
||||||
container_name: handshake
|
container_name: handshake
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
|
|
|
@ -3,7 +3,9 @@ FROM node:16.5.0-alpine
|
||||||
WORKDIR /opt/hsd
|
WORKDIR /opt/hsd
|
||||||
|
|
||||||
RUN apk update && apk add bash unbound-dev gmp-dev g++ gcc make python2 git
|
RUN apk update && apk add bash unbound-dev gmp-dev g++ gcc make python2 git
|
||||||
RUN git clone https://github.com/handshake-org/hsd.git /opt/hsd
|
# Checkout a specific commit until Handshake releases 2.4.0 then we should switch to that tag.
|
||||||
|
RUN git clone https://github.com/handshake-org/hsd.git /opt/hsd && \
|
||||||
|
cd /opt/hsd && git checkout 3870234780240faf571426e790ea412dc6592622 && cd -
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|
||||||
ENV PATH="${PATH}:/opt/hsd/bin:/opt/hsd/node_modules/.bin"
|
ENV PATH="${PATH}:/opt/hsd/bin:/opt/hsd/node_modules/.bin"
|
||||||
|
|
Reference in New Issue