Skip to content

Instantly share code, notes, and snippets.

View Wingman4l7's full-sized avatar

Wingman4l7

  • Boston, MA
View GitHub Profile
import sys
import cv2
if len(sys.argv) != 3:
print("Usage: python comic_slicer.py input_file output_prefix")
sys.exit(1)
input_file = sys.argv[1]
output_prefix = sys.argv[2]

Dragonchain Deployment: Post-Mortem

In this, I run down some of the sticking points for me in deploying the Dragonchain and getting it to successfully register on the Dragon Net. I suspect some of these might be common, so they could prove helpful when putting together more comprehensive documentation for deploying such chains, or a "Tips & Tricks for Success" document.

For my environment, I used a minikube running in a VM created by VirtualBox, on a Windows machine. The deployment was done primarily using a cygwin console.

  • The first sticking point was pods crashing due to insufficient memory. Minikube defaults to allocating 2GB. I initially attempted to rectify this with adding a flag when starting the minikube, which seemed to prevent some of the crashes: minikube start --memory 4096
  • However, the es-master-0 pod continued to crash. Help on the Slack channel indicated that I should try SSHing into the minikube and setting the virtual memory allocation higher for Elasticsearch: `sudo sysc