Skip to content

Commit 3da21b3

Browse files
committed
feat(docker): dealing with the change of docker in kubenetes 1.20
1 parent 03514fd commit 3da21b3

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include versioning.mk
44

55
# dockerized development environment variables
66
REPO_PATH := github.com/drycc/${SHORT_NAME}
7-
DEV_ENV_IMAGE := drycc/go-dev
7+
DEV_ENV_IMAGE := ${DEV_REGISTRY}/drycc/go-dev
88
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
99
DEV_ENV_PREFIX := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR}
1010
DEV_ENV_CMD := ${DEV_ENV_PREFIX} ${DEV_ENV_IMAGE}

charts/builder/templates/builder-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
serviceAccount: drycc-builder
2525
containers:
2626
- name: drycc-builder
27-
image: {{.Values.image_registry}}{{.Values.org}}/builder:{{.Values.image_tag}}
27+
image: {{.Values.image_registry}}/{{.Values.org}}/builder:{{.Values.image_tag}}
2828
imagePullPolicy: {{.Values.image_pull_policy}}
2929
ports:
3030
- containerPort: 2223

charts/builder/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
org: "drycc"
22
image_pull_policy: "Always"
33
image_tag: "canary"
4-
image_registry: ""
4+
image_registry: "docker.io"
55
service:
66
# Service type default to LoadBalancer
77
type: ClusterIP

versioning.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ MUTABLE_VERSION ?= canary
22
VERSION ?= git-$(shell git rev-parse --short HEAD)
33
IMAGE_PREFIX ?= drycc
44

5-
IMAGE := ${DRYCC_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
6-
MUTABLE_IMAGE := ${DRYCC_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${MUTABLE_VERSION}
5+
IMAGE := ${DRYCC_REGISTRY}/${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
6+
MUTABLE_IMAGE := ${DRYCC_REGISTRY}/${IMAGE_PREFIX}/${SHORT_NAME}:${MUTABLE_VERSION}
77

88
info:
99
@echo "Build tag: ${VERSION}"

0 commit comments

Comments
 (0)