Browse Source

Set docker container version to latest

pull/7878/head
Volodymyr Babak 4 years ago
parent
commit
2ff8c3f972
  1. 2
      application/src/main/data/json/edge/install_instructions/docker/instructions.md
  2. 3
      application/src/main/java/org/thingsboard/server/service/edge/instructions/DefaultEdgeInstallService.java

2
application/src/main/data/json/edge/install_instructions/docker/instructions.md

@ -36,7 +36,7 @@ version: '3.0'
services: services:
mytbedge: mytbedge:
restart: always restart: always
image: "thingsboard/tb-edge:${EDGE_VERSION}" image: "thingsboard/tb-edge:latest"
ports: ports:
- "8080:8080" - "8080:8080"
- "1883:1883" - "1883:1883"

3
application/src/main/java/org/thingsboard/server/service/edge/instructions/DefaultEdgeInstallService.java

@ -40,8 +40,6 @@ public class DefaultEdgeInstallService implements EdgeInstallService {
private static final String EDGE_DIR = "edge"; private static final String EDGE_DIR = "edge";
private static final String EDGE_VERSION = "3.4.3EDGE";
private static final String EDGE_INSTALL_INSTRUCTIONS_DIR = "install_instructions"; private static final String EDGE_INSTALL_INSTRUCTIONS_DIR = "install_instructions";
private final InstallScripts installScripts; private final InstallScripts installScripts;
@ -58,7 +56,6 @@ public class DefaultEdgeInstallService implements EdgeInstallService {
dockerInstallInstructions = dockerInstallInstructions.replace("${LOCALHOST_WARNING}", ""); dockerInstallInstructions = dockerInstallInstructions.replace("${LOCALHOST_WARNING}", "");
dockerInstallInstructions = dockerInstallInstructions.replace("${BASE_URL}", baseUrl); dockerInstallInstructions = dockerInstallInstructions.replace("${BASE_URL}", baseUrl);
} }
dockerInstallInstructions = dockerInstallInstructions.replace("${EDGE_VERSION}", EDGE_VERSION);
dockerInstallInstructions = dockerInstallInstructions.replace("${CLOUD_ROUTING_KEY}", edge.getRoutingKey()); dockerInstallInstructions = dockerInstallInstructions.replace("${CLOUD_ROUTING_KEY}", edge.getRoutingKey());
dockerInstallInstructions = dockerInstallInstructions.replace("${CLOUD_ROUTING_SECRET}", edge.getSecret()); dockerInstallInstructions = dockerInstallInstructions.replace("${CLOUD_ROUTING_SECRET}", edge.getSecret());
return new EdgeInstallInstructions(dockerInstallInstructions); return new EdgeInstallInstructions(dockerInstallInstructions);

Loading…
Cancel
Save