|
|
@ -16,6 +16,7 @@ |
|
|
package org.thingsboard.server.service.edge.instructions; |
|
|
package org.thingsboard.server.service.edge.instructions; |
|
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
|
import lombok.Setter; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
@ -52,6 +53,7 @@ public class DefaultEdgeInstallInstructionsService implements EdgeInstallInstruc |
|
|
private boolean sslEnabled; |
|
|
private boolean sslEnabled; |
|
|
|
|
|
|
|
|
@Value("${app.version:unknown}") |
|
|
@Value("${app.version:unknown}") |
|
|
|
|
|
@Setter |
|
|
private String appVersion; |
|
|
private String appVersion; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -68,11 +70,6 @@ public class DefaultEdgeInstallInstructionsService implements EdgeInstallInstruc |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public void updateApplicationVersion(String version) { |
|
|
|
|
|
appVersion = version; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private EdgeInstructions getDockerInstallInstructions(Edge edge, HttpServletRequest request) { |
|
|
private EdgeInstructions getDockerInstallInstructions(Edge edge, HttpServletRequest request) { |
|
|
String dockerInstallInstructions = readFile(resolveFile("docker", "instructions.md")); |
|
|
String dockerInstallInstructions = readFile(resolveFile("docker", "instructions.md")); |
|
|
String baseUrl = request.getServerName(); |
|
|
String baseUrl = request.getServerName(); |
|
|
|