massa icon indicating copy to clipboard operation
massa copied to clipboard

Add Dockerfile and DockerCompose

Open MichaelTMS opened this issue 2 years ago • 9 comments

Running the massa node into a docker container. build.sh script is used to build image and run container. cd docker && ./build.sh <Tag>

Define variable values in docker-compose specification and run: docker-compose up -d

MichaelTMS avatar Sep 28 '22 17:09 MichaelTMS

Hello ! Thank you for your contribution.

Sorry for the delay, we are focusing on correcting the remaining bugs for testnet 15. We will review this PR after the delivery of testnet 15.

damip avatar Sep 29 '22 07:09 damip

Hello Sorry @MichaelTMS for the delay. If you are still interested in working on this, I tried to launch ./build.sh 16.0 and I had the following error :

❯ ./build.sh 16.0

Building massa-node docker image
Dockerfile:     /Users/xxx/massa/docker/Dockerfile
docker context: /Users/xxx/massa/docker
build date:     2022-11-22
image tag:      16.0

sed: 1: "/Users/xxx ...": command a expects \ followed by text

AurelienFT avatar Nov 22 '22 13:11 AurelienFT

Hello. Which operating system is used when building the docker image?

I'm on MacOS 12 on a M1

AurelienFT avatar Nov 23 '22 07:11 AurelienFT

Corrected the sed command for MacOS. Please try to build docker image

Still have the same error :/ :

Building massa-node docker image
Dockerfile:     /Users/xxx/massa/docker/Dockerfile
docker context: /Users/xxx/massa/docker
build date:     2022-11-23
image tag:      16

sed: 1: "/Users/xxx ...": command a expects \ followed by text

AurelienFT avatar Nov 23 '22 10:11 AurelienFT

I still have the same error. Will try to make it work as soon as I have a bit of time.

AurelienFT avatar Nov 27 '22 23:11 AurelienFT