Public Repository

Last pushed: 2 years ago
Short Description
A place to keep ARMv7 compiled swarm binary
Full Description

An excellent tutorial was given here http://quad.ae24.space/docker-swarm-on-raspberry-pi/ which detailed out how to create a Dockerfile to encapsulate a compiled binary swarm.

##Dockerfile

FROM armv7/armhf-ubuntu_core

## copy the prebuilt binary swarm into the running container's root
COPY ./swarm /swarm

## define the swarm host's port and expose it
ENV SWARM_HOST :2375
EXPOSE 2375

## what does this do?
VOLUME /.swarm

# this is the default command that is run with the container is launched
ENTRYPOINT ["/swarm"]

# default command argument to swarm that ran from the ENTRYPOINT
CMD ["--help"]

make a build script --> build.sh

#!/bin/sh
if [ $(ls swarm | wc -l) = 1 ]; then
   docker build -t armhf-swarm .
else
   echo "Must have the arm compiled swarm binary locally in this folder."
   echo "Copy your swarm binary here and re-run the docker build."
fi
Docker Pull Command
Owner
aerodame

Comments (0)