mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-10-30 18:17:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			965 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			965 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM adoptopenjdk/openjdk13:alpine-jre
 | |
| 
 | |
| LABEL maintainer="ConnectUs.ai as part of the Telecom Infrastructure Project"
 | |
| LABEL version="1.0"
 | |
| LABEL description="This image runs the mqtt broker (mosquitto) and \
 | |
| a statically configured OpenSync gateway."
 | |
| 
 | |
| # Update the package list and upgrade installed packages
 | |
| RUN apk update && apk upgrade 
 | |
| RUN mkdir -p /opt/tip-wlan/certs
 | |
| VOLUME ["/opt/tip-wlan/certs"]
 | |
| 
 | |
| # Configure mqtt broker
 | |
| RUN apk add mosquitto 
 | |
| RUN mkdir -p /mosquitto/data /mosquitto/log
 | |
| COPY app/mqtt/mosquitto.conf /etc/mosquitto/mosquitto.conf
 | |
| VOLUME ["/mosquitto/data", "/mosquitto/log"]
 | |
| 
 | |
| 
 | |
| # Configure OpenSync Gateway
 | |
| RUN mkdir -p /app/logs /app/opensync
 | |
| COPY maven/app.jar /app
 | |
| COPY app/opensync/logback.xml /app/opensync/logback.xml
 | |
| COPY app/run.sh /app
 | |
| COPY app/opensync/config_2_ssids.json /app/opensync/config_2_ssids.json
 | |
| VOLUME ["/app/logs"]
 | |
| 
 | |
| RUN chmod +x /app/run.sh
 | |
| 
 | |
| EXPOSE 1883 6640 6643 4043
 | |
| 
 | |
| WORKDIR /app
 | |
| ENTRYPOINT ["/app/run.sh"]
 | |
| CMD [""]
 | 
