Skip to content

Commit

Permalink
Fixed handling unwatched services
Browse files Browse the repository at this point in the history
  • Loading branch information
virtualzone committed Apr 22, 2022
1 parent 5ad9b23 commit 7bc12ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/compose-service.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"log"
"os/exec"
)

Expand All @@ -17,7 +16,6 @@ type ComposeService struct {
}

func (s *ComposeService) Pull() bool {
log.Println("Running: ", "docker", "compose", "-f", s.ComposeFile.YamlFilePath, "pull", s.Name)
err := exec.Command("docker", "compose", "-f", s.ComposeFile.YamlFilePath, "pull", s.Name).Run()
if err != nil {
return false
Expand Down
3 changes: 3 additions & 0 deletions src/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ func PerformComposeUpdates() {
compositionRestart := false
log.Printf("Checking for updates of services in %s...\n", composeFile.YamlFilePath)
for _, service := range composeFile.Services {
if service.Instance == nil {
continue
}
requiresBuild := len(service.BuildInfo) > 0
log.Printf("Processing service %s (requires build: %t)...\n", service.Name, requiresBuild)
if !requiresBuild {
Expand Down
2 changes: 1 addition & 1 deletion src/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package main

// BuildVersion is the version
const BuildVersion = "2.0.0"
const BuildVersion = "2.0.1"

0 comments on commit 7bc12ae

Please sign in to comment.