Implementation of PDDikti's Neofeeder in docker swarm mode.
Because the neofeeder is using docker-compose, which the implementation is not that different with the old feeder. It still needs single machine per feeder running. What if you need multiple feeder (for multiple universities)?
This implementation bypass that issue, thus gives us better control over our infrastructure in terms of cost and maintenance, as we only need to maintain one docker host.
- Clone this repository.
- Enter cloned repository.
- Copy original neofeeder to
source
directory. - Run:
This will copy necessary files to current directory
$ chmod +x refresh && ./refresh
- Make sure the implementation of DockerfileSwarm is in sync with original Dockerfile.
- Build the image:
$ docker build -t myrepository/feeder:latest -f DockerfileSwarm
- Edit configuration of
swarm.yml
as you need.⚠️ WARNING: Please note that i'm using234354743961.dkr.ecr.ap-southeast-1.amazonaws.com/feeder:latest
as image forapp-pddikti
.
Change with your own image! - Deploy the stack:
$ env APP_PATH_HOST="/path/to/this-repository" docker stack deploy -c swarm.yml neofeeder-university1