Commit 913a90df authored by Stewart Williams's avatar Stewart Williams
Browse files

Add pipfile.lock makefile target

parent 86c212be
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -13,7 +13,11 @@
#   See the License for the specific language governing permissions and
#   limitations under the License.
#
ifeq ($(strip $(PROJECT)),)
  NAME=$(shell basename $(CURDIR))
else
  NAME=$(PROJECT)
endif

RELEASE_SUPPORT := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))/.make-release-support

+4 −1
Original line number Diff line number Diff line
@@ -47,8 +47,11 @@ test: build ## test the application
up: build  ## start develop/test environment
	docker-compose up -d

piplock: build  ## overwrite Pipfile.lock with the image version
	docker run $(IMAGE_TO_TEST) cat /app/Pipfile.lock > $(CURDIR)/Pipfile.lock

interactive: up
interactive:  ## start an interactive session using the project image (caution: R/W mounts PWD to /app)
interactive:  ## start an interactive session using the project image (caution: R/W mounts source directory to /app)
	docker-compose up -d
	docker run --rm -it --name=$(PROJECT)-dev -e TANGO_HOST=databaseds:10000 --network=$(notdir $(CURDIR))_default \
	  -v $(CURDIR):/app $(IMAGE_TO_TEST) /bin/bash