mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 02:37:56 +00:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			v2.4.1
			...
			release/v2
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | ed56a0b9ae | ||
|   | fc21b46e3f | ||
|   | 95ea70d5c2 | ||
|   | 8b40de4631 | ||
|   | b1740575a5 | 
							
								
								
									
										14
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -4,14 +4,13 @@ RUN apk add --update --no-cache \ | ||||
|     openssl openssh \ | ||||
|     ncurses-libs \ | ||||
|     bash util-linux coreutils curl libcurl \ | ||||
|     make cmake gcc g++ libstdc++ libgcc git zlib-dev \ | ||||
|     make cmake gcc g++ libstdc++ libgcc git zlib-dev nlohmann-json \ | ||||
|     openssl-dev boost-dev curl-dev unixodbc-dev postgresql-dev mariadb-dev \ | ||||
|     apache2-utils yaml-dev apr-util-dev \ | ||||
|     librdkafka-dev | ||||
|  | ||||
| RUN git clone https://github.com/stephb9959/poco /poco | ||||
| RUN git clone https://github.com/stephb9959/cppkafka /cppkafka | ||||
| RUN git clone https://github.com/nlohmann/json /json | ||||
| RUN git clone https://github.com/pboettch/json-schema-validator /json-schema-validator | ||||
| RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp /aws-sdk-cpp | ||||
|  | ||||
| @@ -39,13 +38,6 @@ RUN cmake .. | ||||
| RUN cmake --build . --config Release -j8 | ||||
| RUN cmake --build . --target install | ||||
|  | ||||
| WORKDIR /json | ||||
| RUN mkdir cmake-build | ||||
| WORKDIR cmake-build | ||||
| RUN cmake .. | ||||
| RUN make | ||||
| RUN make install | ||||
|  | ||||
| WORKDIR /json-schema-validator | ||||
| RUN mkdir cmake-build | ||||
| WORKDIR cmake-build | ||||
| @@ -63,7 +55,9 @@ ADD .git /owsec/.git | ||||
| WORKDIR /owsec | ||||
| RUN mkdir cmake-build | ||||
| WORKDIR /owsec/cmake-build | ||||
| RUN cmake .. | ||||
| RUN cmake .. \ | ||||
|           -Dcrypto_LIBRARY=/usr/lib/libcrypto.so \ | ||||
|           -DBUILD_SHARED_LIBS=ON | ||||
| RUN cmake --build . --config Release -j8 | ||||
|  | ||||
| FROM alpine | ||||
|   | ||||
| @@ -30,3 +30,13 @@ Create chart name and version as used by the chart label. | ||||
| {{- define "owsec.chart" -}} | ||||
| {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} | ||||
| {{- end -}} | ||||
|  | ||||
| {{- define "owsec.ingress.apiVersion" -}} | ||||
|   {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" -}} | ||||
|       {{- print "networking.k8s.io/v1" -}} | ||||
|   {{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" -}} | ||||
|     {{- print "networking.k8s.io/v1beta1" -}} | ||||
|   {{- else -}} | ||||
|     {{- print "extensions/v1beta1" -}} | ||||
|   {{- end -}} | ||||
| {{- end -}} | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
| {{- range $ingress, $ingressValue := .Values.ingresses }} | ||||
| {{- if $ingressValue.enabled }} | ||||
| --- | ||||
| apiVersion: extensions/v1beta1 | ||||
| apiVersion: {{ include "owsec.ingress.apiVersion" $root }} | ||||
| kind: Ingress | ||||
| metadata: | ||||
|   name: {{ include "owsec.fullname" $root }}-{{ $ingress }} | ||||
| @@ -36,9 +36,23 @@ spec: | ||||
|       paths: | ||||
|       {{- range $ingressValue.paths }} | ||||
|         - path: {{ .path }} | ||||
|           {{- if $root.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} | ||||
|           pathType: {{ .pathType | default "ImplementationSpecific" }} | ||||
|           {{- end }} | ||||
|           backend: | ||||
|             {{- if $root.Capabilities.APIVersions.Has "networking.k8s.io/v1" }} | ||||
|             service: | ||||
|               name: {{ include "owsec.fullname" $root }}-{{ .serviceName }} | ||||
|               port: | ||||
|               {{- if kindIs "string" .servicePort }} | ||||
|                 name: {{ .servicePort }} | ||||
|               {{- else }} | ||||
|                 number: {{ .servicePort }} | ||||
|               {{- end }} | ||||
|             {{- else }} | ||||
|             serviceName: {{ include "owsec.fullname" $root }}-{{ .serviceName }} | ||||
|             servicePort: {{ .servicePort }} | ||||
|             {{- end }} | ||||
|       {{- end }} | ||||
|   {{- end }} | ||||
|  | ||||
|   | ||||
| @@ -8,7 +8,7 @@ fullnameOverride: "" | ||||
| images: | ||||
|   owsec: | ||||
|     repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owsec | ||||
|     tag: v2.4.1 | ||||
|     tag: v2.4.0 | ||||
|     pullPolicy: Always | ||||
| #    regcred: | ||||
| #      registry: tip-tip-wlan-cloud-ucentral.jfrog.io | ||||
| @@ -50,6 +50,7 @@ ingresses: | ||||
|     - restapi.chart-example.local | ||||
|     paths: | ||||
|     - path: / | ||||
|       pathType: ImplementationSpecific | ||||
|       serviceName: owsec | ||||
|       servicePort: restapi | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user