Skip to content

Commit d8867b3

Browse files
committed
feat(docker): dealing with the change of docker in kubenetes 1.20
1 parent 6e6af78 commit d8867b3

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 contrib/ci/*.sh rootfs/bin/*)
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/database/templates/database-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
serviceAccount: drycc-database
2323
containers:
2424
- name: drycc-database
25-
image: {{.Values.image_registry}}{{.Values.org}}/postgres:{{.Values.image_tag}}
25+
image: {{.Values.image_registry}}/{{.Values.org}}/postgres:{{.Values.image_tag}}
2626
imagePullPolicy: {{.Values.image_pull_policy}}
2727
ports:
2828
- containerPort: 5432

charts/database/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
timeout: "1200"

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)