IMAGE = debby-console-img
VERSION = latest
NAME = debby-console

.PHONY: runone
runone:
	rm -f *.tar *.conf *.patch
	tar -cf debby_console.tar ../../app
	cp ../../manage.py manage.py
	cp ../../requirements.txt requirements.txt
	cp ../../yarequirements.txt yarequirements.txt
	cp ../../config/supervisord.conf supervisord.conf
	cp ../../config/host_ivre.conf ivre.conf
	docker build -t $(IMAGE):$(VERSION) .
	docker run --rm -it --name $(IMAGE) --network host $(IMAGE):$(VERSION)

.PHONY: attach
attach:
	docker exec -it $(IMAGE) /bin/bash
