Skip to content

Commit 89c149b

Browse files
cbeyer42cesmarvin
authored andcommitted
Merge branch 'release/v1.23.2-7'
2 parents b965190 + b4861b0 commit 89c149b

16 files changed

Lines changed: 110 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [v1.23.2-7] - 2023-07-10
11+
### Changed
12+
- [#78] replaced all references to myCloudogu with references to the cloudogu platform
13+
1014
## [v1.23.2-6] - 2023-05-05
1115
### Fixed
1216
- [#76] redirect errors to stderr and accesses to stdout again

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ENV NGINX_VERSION=1.23.2 \
77
NGINX_TAR_SHA256="a80cc272d3d72aaee70aa8b517b4862a635c0256790434dbfc4d618a999b0b46" \
88
CES_CONFD_VERSION=0.8.0 \
99
CES_CONFD_TAR_SHA256="365a4033e80af6953d5b6513296a828dfd772a6640533bb51dd9abd34a1e53e8" \
10-
WARP_MENU_VERSION=1.7.2 \
11-
WARP_MENU_TAR_SHA256="0f89f3a4bcd24779b792bab34e77c60e27b9142c402e168013711f3094045726" \
10+
WARP_MENU_VERSION=1.7.3 \
11+
WARP_MENU_TAR_SHA256="b3ed4b50b1b9a739a4430d88975b5e3030c5e542c0739ed6b72d7eb8fd9a7b18" \
1212
CES_ABOUT_VERSION=0.2.2 \
1313
CES_ABOUT_TAR_SHA256="9926649be62d8d4667b2e7e6d1e3a00ebec1c4bbc5b80a0e830f7be21219d496" \
1414
CES_THEME_VERSION=0.7.0 \
@@ -59,7 +59,7 @@ RUN wget --progress=bar:force:noscroll -O /tmp/theme.zip https://github.com/clou
5959
FROM registry.cloudogu.com/official/base:3.17.3-2
6060
LABEL maintainer="hello@cloudogu.com" \
6161
NAME="official/nginx" \
62-
VERSION="1.23.2-6"
62+
VERSION="1.23.2-7"
6363

6464
ENV CES_MAINTENANCE_MODE=false
6565

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,5 @@ void setIntegrationTestKeys(ecoSystem){
132132
ecoSystem.vagrant.ssh "sudo cp /dogu/integrationTests/privacy_policies.html /var/lib/ces/nginx/volumes/customhtml/"
133133
ecoSystem.vagrant.ssh '''etcdctl set config/nginx/externals/privacy_policies '{\\"DisplayName\\":\\"Privacy Policies\\",\\"Description\\":\\"Contains information about the privacy policies enforced by our company\\",\\"Category\\":\\"Information\\",\\"URL\\":\\"/static/privacy_policies.html\\"}' '''
134134
// etcd key for support entries
135-
ecoSystem.vagrant.ssh '''etcdctl set /config/_global/disabled_warpmenu_support_entries '[\\"myCloudogu\\", \\"aboutCloudoguToken\\"]' '''
135+
ecoSystem.vagrant.ssh '''etcdctl set /config/_global/disabled_warpmenu_support_entries '[\\"platform\\", \\"aboutCloudoguToken\\"]' '''
136136
}

Makefile

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
1-
MAKEFILES_VERSION=7.5.0
1+
MAKEFILES_VERSION=7.8.0
22

33
.DEFAULT_GOAL:=dogu-release
44

55
include build/make/variables.mk
66
include build/make/self-update.mk
77
include build/make/release.mk
8+
include build/make/version-sha.mk
9+
10+
NGINX_VERSION=$(shell grep NGINX_VERSION= Dockerfile | sed 's/.*NGINX_VERSION=\([^ ]*\).*/\1/g')
11+
CES_CONFD_VERSION=$(shell grep CES_CONFD_VERSION= Dockerfile | sed 's/.*CES_CONFD_VERSION=\([^ ]*\).*/\1/g')
12+
WARP_MENU_VERSION=$(shell grep WARP_MENU_VERSION= Dockerfile | sed 's/.*WARP_MENU_VERSION=\([^ ]*\).*/\1/g')
13+
CES_ABOUT_VERSION=$(shell grep CES_ABOUT_VERSION= Dockerfile | sed 's/.*CES_ABOUT_VERSION=\([^ ]*\).*/\1/g')
14+
CES_THEME_VERSION=$(shell grep CES_THEME_VERSION= Dockerfile | sed 's/.*CES_THEME_VERSION=\([^ ]*\).*/\1/g')
15+
16+
17+
.PHONY: sums
18+
sums: ## Print out all versions
19+
@echo "nginx"
20+
@make --no-print-directory sha-sum SHA_SUM_URL=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
21+
@echo "confd"
22+
@make --no-print-directory sha-sum SHA_SUM_URL=https://github.com/cloudogu/ces-confd/releases/download/v${CES_CONFD_VERSION}/ces-confd-${CES_CONFD_VERSION}.tar.gz
23+
@echo "warp-menu"
24+
@make --no-print-directory sha-sum SHA_SUM_URL=https://github.com/cloudogu/warp-menu/releases/download/v${WARP_MENU_VERSION}/warp-v${WARP_MENU_VERSION}.zip
25+
@echo "ces-about"
26+
@make --no-print-directory sha-sum SHA_SUM_URL=https://github.com/cloudogu/ces-about/releases/download/v${CES_ABOUT_VERSION}/ces-about-v${CES_ABOUT_VERSION}.tar.gz
27+
@echo "ces-theme"
28+
@make --no-print-directory sha-sum SHA_SUM_URL=https://github.com/cloudogu/ces-theme/archive/v${CES_THEME_VERSION}.zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The Cloudogu EcoSystem is an open platform, which lets you choose how and where
7878
Want to talk to the Cloudogu team? Need help or support? There are several ways to get in touch with us:
7979

8080
* [Website](https://cloudogu.com)
81-
* [myCloudogu-Forum](https://forum.cloudogu.com/topic/34?ctx=1)
81+
* [Community-Forum](https://community.cloudogu.com/)
8282
* [Email hello@cloudogu.com](mailto:hello@cloudogu.com)
8383

8484
---

build/make/k8s-dogu.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DOGU_JSON_DEV_FILE=${TARGET_DIR}/dogu.json
66
ARTIFACT_ID=$(shell $(BINARY_YQ) -e ".Name" $(DOGU_JSON_FILE) | sed "s|.*/||g")
77
# Namespace of the dogu is extracted from the dogu.json
88
ARTIFACT_NAMESPACE=$(shell $(BINARY_YQ) -e ".Name" $(DOGU_JSON_FILE) | sed "s|/.*||g")
9-
# Namespace of the dogu is extracted from the dogu.json
9+
# Version of the dogu is extracted from the dogu.json
1010
VERSION=$(shell $(BINARY_YQ) -e ".Version" $(DOGU_JSON_FILE))
1111
# Image of the dogu is extracted from the dogu.json
1212
IMAGE=$(shell $(BINARY_YQ) -e ".Image" $(DOGU_JSON_FILE)):$(VERSION)

build/make/k8s.mk

Lines changed: 51 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ endif
77
## Variables
88

99
BINARY_YQ = $(UTILITY_BIN_PATH)/yq
10+
BINARY_HELM = $(UTILITY_BIN_PATH)/helm
11+
BINARY_HELMIFY = $(UTILITY_BIN_PATH)/helmify
1012

1113
# The productive tag of the image
1214
IMAGE ?=
@@ -19,6 +21,8 @@ K3CES_REGISTRY_URL_PREFIX="${K3S_CLUSTER_FQDN}:${K3S_LOCAL_REGISTRY_PORT}"
1921
# the current namespace and the dev image.
2022
K8S_RESOURCE_TEMP_FOLDER ?= $(TARGET_DIR)/make/k8s
2123
K8S_RESOURCE_TEMP_YAML ?= $(K8S_RESOURCE_TEMP_FOLDER)/$(ARTIFACT_ID)_$(VERSION).yaml
24+
K8S_HELM_TARGET ?= $(K8S_RESOURCE_TEMP_FOLDER)/helm
25+
K8S_HELM_RESSOURCES ?= k8s/helm
2226

2327
##@ K8s - Variables
2428

@@ -75,6 +79,45 @@ k8s-apply: k8s-generate $(K8S_POST_GENERATE_TARGETS) ## Applies all generated K8
7579
@echo "Apply generated K8s resources..."
7680
@kubectl apply -f $(K8S_RESOURCE_TEMP_YAML) --namespace=${NAMESPACE}
7781

82+
##@ K8s - Helm
83+
84+
${K8S_HELM_RESSOURCES}/Chart.yaml: ${BINARY_HELM} ## Creates the Chart.yaml-template if missing
85+
@echo "Create Chart.yaml..."
86+
@mkdir -p ${K8S_HELM_RESSOURCES}/tmp/
87+
@${BINARY_HELM} create ${K8S_HELM_RESSOURCES}/tmp/${ARTIFACT_ID}
88+
@cp ${K8S_HELM_RESSOURCES}/tmp/${ARTIFACT_ID}/Chart.yaml ${K8S_HELM_RESSOURCES}/
89+
@rm -dr ${K8S_HELM_RESSOURCES}/tmp
90+
@sed -i 's/appVersion: ".*"/appVersion: "0.0.0-replaceme"/' ${K8S_HELM_RESSOURCES}/Chart.yaml
91+
@sed -i 's/version: .*/version: 0.0.0-replaceme/' ${K8S_HELM_RESSOURCES}/Chart.yaml
92+
93+
.PHONY: k8s-helm-generate
94+
k8s-helm-generate: k8s-generate ${K8S_HELM_RESSOURCES}/Chart.yaml ${BINARY_HELMIFY} $(K8S_RESOURCE_TEMP_FOLDER) $(K8S_PRE_GENERATE_TARGETS) ## Generates the final helm chart.
95+
@echo "Generate helm chart..."
96+
@rm -drf ${K8S_HELM_TARGET} # delete folder, so Chart.yaml is newly created from template
97+
@mkdir -p ${K8S_HELM_TARGET}
98+
@cat $(K8S_RESOURCE_TEMP_YAML) | ${BINARY_HELMIFY} ${K8S_HELM_TARGET}
99+
@cp ${K8S_HELM_RESSOURCES}/Chart.yaml ${K8S_HELM_TARGET}
100+
@sed -i 's/appVersion: "0.0.0-replaceme"/appVersion: "${VERSION}"/' ${K8S_HELM_TARGET}/Chart.yaml
101+
@sed -i 's/version: 0.0.0-replaceme/version: ${HELM_CHART_VERSION}/' ${K8S_HELM_TARGET}/Chart.yaml
102+
103+
.PHONY: k8s-helm-apply
104+
k8s-helm-apply: ${BINARY_HELM} image-import k8s-helm-generate $(K8S_POST_GENERATE_TARGETS) ## Generates and installs the helm chart.
105+
@echo "Apply generated helm chart"
106+
@${BINARY_HELM} upgrade -i ${ARTIFACT_ID} ${K8S_HELM_TARGET}
107+
108+
.PHONY: k8s-helm-package
109+
k8s-helm-package: ${BINARY_HELM} k8s-helm-generate $(K8S_POST_GENERATE_TARGETS) ## Generates and packages the helm chart.
110+
@echo "Package generated helm chart"
111+
@${BINARY_HELM} package ${K8S_HELM_TARGET} --app-version ${VERSION} -d ${K8S_HELM_TARGET}
112+
113+
.PHONY: k8s-helm-delete
114+
k8s-helm-delete: ${BINARY_HELM} ## Uninstalls the current helm chart.
115+
@echo "Uninstall helm chart"
116+
@${BINARY_HELM} uninstall ${ARTIFACT_ID}
117+
118+
.PHONY: k8s-helm-reinstall
119+
k8s-helm-reinstall: k8s-helm-delete k8s-helm-apply ## Uninstalls the current helm chart and reinstalls it.
120+
78121
##@ K8s - Docker
79122

80123
.PHONY: docker-build
@@ -115,5 +158,11 @@ __check_defined = \
115158
$(if $(value $1),, \
116159
$(error Undefined $1$(if $2, ($2))))
117160

118-
${BINARY_YQ}: $(UTILITY_BIN_PATH) ## Download controller-gen locally if necessary.
119-
$(call go-get-tool,$(BINARY_YQ),github.com/mikefarah/yq/v4@v4.25.1)
161+
${BINARY_YQ}: $(UTILITY_BIN_PATH) ## Download yq locally if necessary.
162+
$(call go-get-tool,$(BINARY_YQ),github.com/mikefarah/yq/v4@v4.25.1)
163+
164+
${BINARY_HELM}: $(UTILITY_BIN_PATH) ## Download helm locally if necessary.
165+
$(call go-get-tool,$(BINARY_HELM),helm.sh/helm/v3/cmd/helm@latest)
166+
167+
${BINARY_HELMIFY}: $(UTILITY_BIN_PATH) ## Download helmify locally if necessary.
168+
$(call go-get-tool,$(BINARY_HELMIFY),github.com/arttor/helmify/cmd/helmify@latest)

build/make/version-sha.mk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
##@ Version
2+
3+
# This makefile is used to get the sha256sum of a specific github tag-src.tar.gz or .zip.
4+
# You may set any of the following variables before your make call to change the hash url.
5+
6+
SHA_SUM_ORGANISATION?="cloudogu"
7+
SHA_SUM_REPOSITORY?="ecosystem"
8+
SHA_SUM_FILE_TYPE?="tar.gz"
9+
SHA_SUM_VERSION?="v20.04.4-2"
10+
SHA_SUM_URL?="https://github.com/${SHA_SUM_ORGANISATION}/${SHA_SUM_REPOSITORY}/archive/refs/tags/${SHA_SUM_VERSION}.${SHA_SUM_FILE_TYPE}"
11+
12+
.PHONY: sha-sum
13+
sha-sum: ## Print out the version
14+
@echo "Downloading from: ${SHA_SUM_URL}"
15+
@wget -O - -o /dev/null "${SHA_SUM_URL}" > .download.for.hash \
16+
|| (echo "Could not be downloaded" && exit 1) \
17+
&& cat .download.for.hash | sha256sum
18+
@rm -f .download.for.hash

docs/dev/integration_tests_de.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Außerdem muss der etcd Key `privacy_policies` gesetzt werden
99
`etcdctl set config/nginx/externals/privacy_policies '{"DisplayName":"Privacy Policies","Description":"Contains information about the privacy policies enforced by our company","Category":"Information","URL":"/static/privacy_policies.html"}'`
1010

1111
Anschließend muss noch der Key zum Entfernen bestimmter Links aus dem Warp-Menü gesetzt werden:
12-
`etcdctl set /config/_global/disabled_warpmenu_support_entries '["myCloudogu", "aboutCloudoguToken"]'`
12+
`etcdctl set /config/_global/disabled_warpmenu_support_entries '["platform", "aboutCloudoguToken"]'`
1313

1414
Danach können die Tests mit:
1515
```bash

docs/dev/integration_tests_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Also the etcd key `privacy_policies` must be set
99
`etcdctl set config/nginx/externals/privacy_policies '{"DisplayName": "PrivacyPolicies", "Description": "Contains information about the privacy policies enforced by our company", "Category": "Information", "URL":"/static/privacy_policies.html"}'`.
1010

1111
After that, the key to remove certain links from the warp menu must be set:
12-
`etcdctl set /config/_global/disabled_warpmenu_support_entries '["myCloudogu", "aboutCloudoguToken"]'`.
12+
`etcdctl set /config/_global/disabled_warpmenu_support_entries '["platform", "aboutCloudoguToken"]'`.
1313

1414
After that the tests cann be run with:
1515

0 commit comments

Comments
 (0)