File tree 1 file changed +5
-15
lines changed
1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -251,30 +251,20 @@ else
251
251
endif
252
252
253
253
sonic-slave-base-build :
254
- $(DOCKER_BASE_BUILD)
255
-
256
- sonic-slave-build :
257
- $(DOCKER_BASE_BUILD)
258
- $(DOCKER_BUILD)
259
-
260
- sonic-slave-bash :
261
254
@$(OVERLAY_MODULE_CHECK)
262
255
@docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \
263
256
{ echo Image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) not found. Building... ; \
264
257
$(DOCKER_BASE_BUILD) ; }
258
+
259
+ sonic-slave-build : sonic-slave-base-build
265
260
@docker inspect --type image $(SLAVE_IMAGE):$(SLAVE_TAG) &> /dev/null || \
266
261
{ echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
267
262
$(DOCKER_BUILD) ; }
263
+
264
+ sonic-slave-bash : sonic-slave-build
268
265
@$(DOCKER_RUN) -t $(SLAVE_IMAGE):$(SLAVE_TAG) bash
269
266
270
- sonic-slave-run :
271
- @$(OVERLAY_MODULE_CHECK)
272
- @docker inspect --type image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) &> /dev/null || \
273
- { echo Image $(SLAVE_BASE_IMAGE):$(SLAVE_BASE_TAG) not found. Building... ; \
274
- $(DOCKER_BASE_BUILD) ; }
275
- @docker inspect --type image $(SLAVE_IMAGE):$(SLAVE_TAG) &> /dev/null || \
276
- { echo Image $(SLAVE_IMAGE):$(SLAVE_TAG) not found. Building... ; \
277
- $(DOCKER_BUILD) ; }
267
+ sonic-slave-run : sonic-slave-build
278
268
@$(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) bash -c "$(SONIC_RUN_CMDS)"
279
269
280
270
showtag:
You can’t perform that action at this time.
0 commit comments