/docker-arionum-node

Docker running Nginx, PHP-FPM, MariaDB and Arionum cryptocurrency node

Primary LanguageShellMIT LicenseMIT

Arionum-Node in Docker

Docker running Nginx, PHP-FPM, MariaDB and Arionum cryptocurrency node

ubuntu - docker instalation

sudo bash install-docker-ce.sh

Preparation

  • create directory for persistent data
mkdir -p ~/data/arionum-mariadb-data/

Usage

-starts all containers in background

docker-compose up --build -d

Stop all containers

docker stop $(docker ps -a -q)

Remove all containers

docker rm $(docker ps -a -q)

Interact with Arionum-Node

  • exposed port is 80

Open link at localhost:80 or your external IP address

Update node code

  • display running containers
docker ps
  • locate php-fpm container id or container name and perform update
docker exec -ti <PHP_FPM_CONTAINER_ID> git pull
  • or you can try to automaticaly select container id
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` git pull

Troubleshooting

  • manualy run sanity
docker exec -ti <PHP_FPM_CONTAINER_ID> php sanity.php
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` php sanity.php
  • remove sanity-lock
docker exec -ti <PHP_FPM_CONTAINER_ID> rm tmp/sanity-lock
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` rm tmp/sanity-lock
  • remove last 100 blocks
docker exec -ti <PHP_FPM_CONTAINER_ID> php util.php pop 100
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` php util.php pop 100
  • clean database
docker exec -ti <PHP_FPM_CONTAINER_ID> php util.php clean
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` php util.php clean