Skip to content

A small app that exposes dashboard where one can approve copying a file to new directory when one appears in watched directory

Notifications You must be signed in to change notification settings

mcabrams/affirmative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

59d1aae · Jun 10, 2017

History

18 Commits
Jun 10, 2017
Jun 10, 2017
Jun 10, 2017
May 30, 2017
May 15, 2017
Jun 6, 2017
Jun 6, 2017
Jun 6, 2017
Jun 9, 2017
Apr 30, 2017
Jun 9, 2017
Jun 2, 2017
Jun 6, 2017
Jun 6, 2017

Repository files navigation

Affirmative

Getting started

Add paths to your src and dst directory volumes in a docker-compose.override.yml file:

version: '3'

services:
  web:
    volumes:
      - "SOME_PATH:/Volumes/src/"
      - "SOME_PATH:/Volumes/dst/"

Copy and rename web.env.example to web.env with necessary secrets/configured environment variables.

docker-compose -f docker-compose.yml -f docker-compose.test.yml build docker-compose -f docker-compose.yml -f docker-compose.test.yml up -d docker-compose exec web bash

Then run in the container

./manage.py migrate

Notes

You may need to create /Volumes/dst/ in docker container. Then try running

./manage.py shell
>>> from trigger import tasks
>>> tasks.watch_for_new_file('/Volumes/src/')

Then outside the container run in directory you previously mapped to /Volumes/src/

touch foo.txt

Check your email.

About

A small app that exposes dashboard where one can approve copying a file to new directory when one appears in watched directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published