|
@@ -122,23 +122,6 @@ func constructPierInfo(piers []string) (map[string]structs.Urbit, error) {
|
|
|
// convert the running status into bools
|
|
// convert the running status into bools
|
|
|
for pier, status := range pierStatus {
|
|
for pier, status := range pierStatus {
|
|
|
dockerConfig := docker.Conf(pier)
|
|
dockerConfig := docker.Conf(pier)
|
|
|
- fmt.Println(dockerConfig)
|
|
|
|
|
- // pull docker info from json
|
|
|
|
|
- /*
|
|
|
|
|
- var dockerConfig structs.UrbitDocker
|
|
|
|
|
- confPath := filepath.Join(config.BasePath, "settings", "pier", pier+".json")
|
|
|
|
|
- file, err := ioutil.ReadFile(confPath)
|
|
|
|
|
- if err != nil {
|
|
|
|
|
- errmsg := fmt.Sprintf("Unable to load %s config: %v", pier, err)
|
|
|
|
|
- logger.Error(errmsg)
|
|
|
|
|
- continue
|
|
|
|
|
- }
|
|
|
|
|
- if err := json.Unmarshal(file, &dockerConfig); err != nil {
|
|
|
|
|
- errmsg := fmt.Sprintf("Error decoding %s JSON: %v", pier, err)
|
|
|
|
|
- logger.Error(errmsg)
|
|
|
|
|
- continue
|
|
|
|
|
- }
|
|
|
|
|
- */
|
|
|
|
|
urbit := structs.Urbit{}
|
|
urbit := structs.Urbit{}
|
|
|
if existingUrbit, exists := currentState.Urbits[pier]; exists {
|
|
if existingUrbit, exists := currentState.Urbits[pier]; exists {
|
|
|
// If the ship already exists in broadcastState, use its current state
|
|
// If the ship already exists in broadcastState, use its current state
|