Skip to content

Commit f2fced2

Browse files
committed
feat(docker): dealing with the change of docker in kubenetes 1.20
1 parent cd28a89 commit f2fced2

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
@@ -13,7 +13,7 @@ SHELL_SCRIPTS = $(wildcard _scripts/*.sh) rootfs/bin/boot
1313

1414
# The following variables describe the containerized development environment
1515
# and other build options
16-
DEV_ENV_IMAGE := drycc/go-dev
16+
DEV_ENV_IMAGE := ${DEV_REGISTRY}/drycc/go-dev
1717
DEV_ENV_WORK_DIR := /go/src/${REPO_PATH}
1818
DEV_ENV_CMD := docker run --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} ${DEV_ENV_IMAGE}
1919
DEV_ENV_CMD_INT := docker run -it --rm -v ${CURDIR}:${DEV_ENV_WORK_DIR} -w ${DEV_ENV_WORK_DIR} ${DEV_ENV_IMAGE}

charts/redis/templates/redis-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
spec:
2121
containers:
2222
- name: drycc-redis
23-
image: {{.Values.image_registry}}{{ .Values.org }}/redis:{{ .Values.image_tag }}
23+
image: {{.Values.image_registry}}/{{ .Values.org }}/redis:{{ .Values.image_tag }}
2424
imagePullPolicy: {{ .Values.image_pull_policy }}
2525
{{- if or (.Values.limits_cpu) (.Values.limits_memory)}}
2626
resources:

charts/redis/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
# limits_cpu: "100m"
66
# limits_memory: "50Mi"
77

versioning.mk

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

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

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

0 commit comments

Comments
 (0)