[sonic-slave]: Remove base
from image name, rename folder to prevent user confliction (jessie) (#3790)
This commit is contained in:
parent
bad57cc51a
commit
3470000e3a
@ -74,11 +74,11 @@ endif
|
||||
ifeq ($(BLDENV), stretch)
|
||||
SLAVE_DIR = sonic-slave-stretch
|
||||
else
|
||||
SLAVE_DIR = sonic-slave
|
||||
SLAVE_DIR = sonic-slave-jessie
|
||||
endif
|
||||
SLAVE_BASE_TAG = $(shell CONFIGURED_ARCH=$(CONFIGURED_ARCH) j2 $(SLAVE_DIR)/Dockerfile.j2 > $(SLAVE_DIR)/Dockerfile && sha1sum $(SLAVE_DIR)/Dockerfile | awk '{print substr($$1,0,11);}')
|
||||
SLAVE_TAG = $(shell cat $(SLAVE_DIR)/Dockerfile.user $(SLAVE_DIR)/Dockerfile | sha1sum | awk '{print substr($$1,0,11);}')
|
||||
SLAVE_BASE_IMAGE = $(SLAVE_DIR)-base
|
||||
SLAVE_BASE_IMAGE = $(SLAVE_DIR)
|
||||
SLAVE_IMAGE = $(SLAVE_BASE_IMAGE)-$(USER)
|
||||
|
||||
OVERLAY_MODULE_CHECK := \
|
||||
|
@ -1,5 +1,5 @@
|
||||
ARG slave_base_tag_ref=latest
|
||||
FROM sonic-slave-base:${slave_base_tag_ref}
|
||||
FROM sonic-slave-jessie:${slave_base_tag_ref}
|
||||
|
||||
# Add user
|
||||
ARG user
|
@ -1,5 +1,5 @@
|
||||
ARG slave_base_tag_ref=latest
|
||||
FROM sonic-slave-stretch-base:${slave_base_tag_ref}
|
||||
FROM sonic-slave-stretch:${slave_base_tag_ref}
|
||||
|
||||
# Add user
|
||||
ARG user
|
||||
|
Loading…
Reference in New Issue
Block a user