-
Notifications
You must be signed in to change notification settings - Fork 62
/
Makefile
42 lines (30 loc) · 860 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
PYTHON ?= python
ifeq ($(origin VIRTUAL_ENV),undefined)
DIST_PYTHON ?= pipenv run $(PYTHON)
else
DIST_PYTHON ?= $(PYTHON)
endif
NAME = ansible-runner
IMAGE_NAME ?= $(NAME)
PIP_NAME = ansible_runner
VERSION = $(shell $(DIST_PYTHON) setup.py --version)
.PHONY: clean dist sdist dev shell
clean:
rm -rf dist
dist:
$(DIST_PYTHON) setup.py bdist_wheel --universal
sdist: dist/$(PIP_NAME)-$(VERSION).tar.gz
dist/$(PIP_NAME)-$(VERSION).tar.gz:
$(DIST_PYTHON) setup.py sdist
dev:
pipenv install
shell:
pipenv shell
docker:
docker build -t benthomasson/ansible-jupyter-kernel:latest .
docker-dev: dist
docker build -t benthomasson/ansible-jupyter-kernel:dev -f Dockerfile.dev .
docker-run:
docker run -it -p 8888:8888 benthomasson/ansible-jupyter-kernel:latest
docker-run-dev:
docker run -it -p 8888:8888 benthomasson/ansible-jupyter-kernel:dev