Simplify the Makefile to build slave (#6117)
* Simplify the Makefile to build slave * remove an empty line
This commit is contained in:
parent
905a5127bb
commit
fd9686b33b
@ -251,30 +251,20 @@ else
|
||||
endif
|
||||
|
||||
sonic-slave-base-build :
|
||||
$(DOCKER_BASE_BUILD)
|
||||
|
||||
sonic-slave-build :
|
||||
$(DOCKER_BASE_BUILD)
|
||||
$(DOCKER_BUILD)
|
||||
|
||||
sonic-slave-bash :
|
||||
@$(OVERLAY_MODULE_CHECK)
|
||||
@docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \
|
||||
{ echo Image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) not found. Building... ; \
|
||||
$(DOCKER_BASE_BUILD) ; }
|
||||
|
||||
sonic-slave-build : sonic-slave-base-build
|
||||
@docker inspect --type image $(SLAVE_IMAGE):$(SLAVE_TAG) &> /dev/null || \
|
||||
{ echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
|
||||
$(DOCKER_BUILD) ; }
|
||||
|
||||
sonic-slave-bash : sonic-slave-build
|
||||
@$(DOCKER_RUN) -t $(SLAVE_IMAGE):$(SLAVE_TAG) bash
|
||||
|
||||
sonic-slave-run :
|
||||
@$(OVERLAY_MODULE_CHECK)
|
||||
@docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \
|
||||
{ echo Image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) not found. Building... ; \
|
||||
$(DOCKER_BASE_BUILD) ; }
|
||||
@docker inspect --type image $(SLAVE_IMAGE):$(SLAVE_TAG) &> /dev/null || \
|
||||
{ echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
|
||||
$(DOCKER_BUILD) ; }
|
||||
sonic-slave-run : sonic-slave-build
|
||||
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_RUN_CMDS)"
|
||||
|
||||
showtag:
|
||||
|
Reference in New Issue
Block a user