File tree Expand file tree Collapse file tree 5 files changed +9
-7
lines changed
Expand file tree Collapse file tree 5 files changed +9
-7
lines changed File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,22 +5,24 @@ DIST ?= fedora
55WORKDIR =/mnt/$$(basename $$(pwd ) )
66ORG =hdgigante
77REPO =python-opencv
8+ TARGET_REPO =$(ORG ) /$(REPO )
9+ TARGET_IMAGE =$(TARGET_REPO ) :$(CV ) -$(DIST )
810
911run : build test login push
1012
1113build :
12- docker build --build-arg OPENCV_VERSION=$(CV ) -t $(ORG ) / $( REPO ) : $( CV ) - $( DIST ) ./ $(DIST )
14+ @ docker build . --build-arg OPENCV_VERSION=$(CV ) -t $(TARGET_IMAGE ) -f Dockerfile. $(DIST )
1315
1416push :
15- @docker push $(ORG ) / $( REPO ) : $( CV ) - $( DIST )
17+ @docker push $(TARGET_IMAGE )
1618
1719latest :
18- @docker pull $(ORG ) / $( REPO ) : $( CV ) - $( DIST )
19- @docker tag $(ORG ) / $( REPO ) : $( CV ) - $( DIST ) $(ORG ) / $( REPO ) :latest
20- @docker push $(ORG ) / $( REPO ) :latest
20+ @docker pull $(TARGET_IMAGE )
21+ @docker tag $(TARGET_IMAGE ) $(TARGET_REPO ) :latest
22+ @docker push $(TARGET_REPO ) :latest
2123
2224test :
23- @docker run --rm -v $$(pwd ) :$(WORKDIR ) -w $(WORKDIR ) $(ORG ) / $( REPO ) : $( CV ) - $( DIST ) python3 test.py
25+ @docker run --rm -v $$(pwd ) :$(WORKDIR ) -w $(WORKDIR ) $(TARGET_IMAGE ) python3 test.py
2426
2527save :
26- @docker save $(ORG ) / $( REPO ) : $( CV ) - $( DIST ) | gzip > $(ORG ) _$(REPO ) _$(CV ) -$(DIST ) .tar.gz
28+ @docker save $(TARGET_IMAGE ) | gzip > $(ORG ) _$(REPO ) _$(CV ) -$(DIST ) .tar.gz
You can’t perform that action at this time.
0 commit comments