Skip to content

Commit

Permalink
Merge pull request #3 from lucasrod16/pin-docker-image-shas
Browse files Browse the repository at this point in the history
pin docker image digests and configure dependabot
  • Loading branch information
lucasrod16 authored Jan 2, 2025
2 parents ecf8dff + ea0b0d8 commit fcc9e02
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "docker"
directory: "docker"
schedule:
interval: "daily"
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo "Waiting for EC2 instance to be ready..."
aws ec2 wait instance-status-ok --instance-ids "$INSTANCE_ID"

ssh-keyscan -H "$INSTANCE_IP" >> ~/.ssh/known_hosts
scp -p docker-compose.yml ubuntu@"$INSTANCE_IP":~/
scp -r docker/ docker-compose.yml ubuntu@"$INSTANCE_IP":~/

ssh ubuntu@"$INSTANCE_IP" << EOF
#!/usr/bin/env bash
Expand Down
8 changes: 6 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: self-hosted-llm
services:
ollama:
container_name: ollama
image: ollama/ollama:latest
build:
context: ./docker
dockerfile: ollama.Dockerfile
ports:
- "11434:11434"
volumes:
Expand All @@ -18,7 +20,9 @@ services:

open-webui:
container_name: open-webui
image: ghcr.io/open-webui/open-webui:main
build:
context: ./docker
dockerfile: webui.Dockerfile
ports:
- "8080:8080"
volumes:
Expand Down
8 changes: 8 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Dockerfiles

The Dockerfiles in this directory are used as a workaround to allow dependabot to automatically update Ollama and Open WebUI container images.

Dependabot does not currently support updating images in Docker compose files.

- <https://github.com/dependabot/dependabot-core/issues/390>
- <https://github.com/dependabot/dependabot-core/issues/390#issuecomment-1062170379>
1 change: 1 addition & 0 deletions docker/ollama.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ollama/ollama:0.5.4@sha256:18bfb1d605604fd53dcad20d0556df4c781e560ebebcd923454d627c994a0e37
1 change: 1 addition & 0 deletions docker/webui.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FROM ghcr.io/open-webui/open-webui:v0.5.3@sha256:e5c0b17626cddb96878c589ab64b0a67572b0b8d98cf9d4a10c33d2604e3126b

0 comments on commit fcc9e02

Please sign in to comment.