fix: Makefile and json log
This commit is contained in:
		| @@ -2,4 +2,4 @@ services: | ||||
|   - docker | ||||
|  | ||||
| script: | ||||
|   - make docker-build | ||||
|   - make container-build | ||||
|   | ||||
							
								
								
									
										12
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								Makefile
									
									
									
									
									
								
							| @@ -20,8 +20,18 @@ build: | ||||
| 		go build -ldflags "-X main.version=${VERSION}" | ||||
| 	chown -R ${UID}:${GID} * | ||||
|  | ||||
| docker-build: | ||||
| container-build: | ||||
| 	docker run \ | ||||
| 		--volume ${PWD}:/workspace \ | ||||
| 		volkerraschek/build-image:1.0.0 \ | ||||
| 			make build UID=${UID} GID=${GID} VERSION=${VERSION} GOOS=${GOOS} GOARCH=${GOARCH} | ||||
|  | ||||
| hades: | ||||
| 	$(MAKE) build GOARCH=arm | ||||
| 	scp flucky hades.hellenthal.cryptic.systems:/usr/local/bin | ||||
| 	ssh hades.hellenthal.cryptic.systems "chmod +x /usr/local/bin/flucky" | ||||
|  | ||||
| poseidon: | ||||
| 	$(MAKE) build GOARCH=arm | ||||
| 	scp flucky poseidon.trier.cryptic.systems:/usr/local/bin | ||||
| 	ssh poseidon.trier.cryptic.systems "chmod +x /usr/local/bin/flucky" | ||||
| @@ -32,8 +32,8 @@ var rootCmd = &cobra.Command{ | ||||
| 			} | ||||
|  | ||||
| 			logfiles := make(map[logger.LogValue][]string) | ||||
| 			logfiles[logger.LogHumidity] = []string{"/var/log/flucky/humidity.log"} | ||||
| 			logfiles[logger.LogTemperature] = []string{"/var/log/flucky/temperature.log"} | ||||
| 			logfiles[logger.LogHumidity] = []string{"/var/log/flucky/humidity.json"} | ||||
| 			logfiles[logger.LogTemperature] = []string{"/var/log/flucky/temperature.json"} | ||||
|  | ||||
| 			fc := config.FluckyConfig{ | ||||
| 				Device: &types.Device{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user