Commit 434e41fa authored by Yuanle Song's avatar Yuanle Song
Browse files

v1.12.0 add timezone config in docker runtimes

default TZ set to CST-8 (Asia/Shanghai)
parent 47d09388
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
(defproject python/lein-template "1.11.2"
(defproject python/lein-template "1.12.0"
  :description "lein template for a python project"
  :url "https://gitlab.emacsos.com/sylecn/python-project-template"
  :license {:name "Apache License 2.0"
+2 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ PYTHON_MODULES := $(PKGNAME)
PYTHONPATH := .
VENV := .venv
WHEELHOUSE := wheelhouse
TZ := CST-8
PYTEST := env PYTHONPATH=$(PYTHONPATH) PYTEST=1 $(VENV)/bin/py.test
PYLINT := env PYTHONPATH=$(PYTHONPATH) $(VENV)/bin/pylint --disable=I0011 --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
PEP8 := env PYTHONPATH=$(PYTHONPATH) $(VENV)/bin/pycodestyle --repeat --ignore=E202,E501,E402,W503,W504,E122,E129
@@ -124,6 +125,7 @@ ci-build:
		-v "$(host_venvs_dir)/$(venv_hash_dir)":/app/$(VENV) \
		-v "$(host_wheelhouses_dir)/$(wheelhouse_hash_dir)":/app/$(WHEELHOUSE) \
		-u $(shell id -u):$(shell id -g) \
		-e TZ=$(TZ) \
		$(BUILD_DOCKER_IMAGE) \
		make test deb -C /app
	docker build -t $(DOCKER_IMAGE_PREFIX)/$(PNAME):$(VERSION) .
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ spec:
            value: "0.0.0.0"
          - name: PORT
            value: "8082"
          - name: TZ
            value: CST-8
        ports:
        - containerPort: 8082
        # livenessProbe: