Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/remove auto pull #37

Merged
merged 2 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions container_provisioner/containers/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func initializeDockerClient() *client.Client {
return cli
}

// PullImage pulls the given image from a registry
func PullImage(image string) {
// pullImage pulls the given image from a registry
func pullImage(image string) {
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
utils.ErrorHandler(err)
defer cli.Close()
Expand Down
4 changes: 0 additions & 4 deletions container_provisioner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"os"

"github.com/algo7/TripAdvisor-Review-Scraper/container_provisioner/api"
"github.com/algo7/TripAdvisor-Review-Scraper/container_provisioner/containers"
"github.com/algo7/TripAdvisor-Review-Scraper/container_provisioner/database"
)

Expand All @@ -16,9 +15,6 @@ func main() {
log.Fatal("R2_URL environment variable not set")
}

// Pull / update the scraper image
containers.PullImage("ghcr.io/algo7/tripadvisor-review-scraper/scraper:latest")

// Check if the redis server is up and running
database.RedisConnectionCheck()

Expand Down
2 changes: 1 addition & 1 deletion container_provisioner/views/tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<td>{{.ContainerID}}</td>
<td>{{.HotelName}}</td>
<td>{{.TaskOwner}}</td>
<td><a href="{{.Url}}">View Logs</a></td>
<td><a href="{{.URL}}">View Logs</a></td>
</tr>
{{end}}
</tbody>
Expand Down