Skip to content

Commit

Permalink
Merge pull request #10 from valohai/next
Browse files Browse the repository at this point in the history
Upgrade to Redis 7, etc.
  • Loading branch information
akx authored Feb 6, 2025
2 parents 135fdc6 + 39a52c5 commit c1eed79
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 1,867 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This repository contains a Dockerfile for building the Valohai Worker queue and scripts to deploy the queue.

The Docker image built is based on the official Ubuntu 20.04 image and contains:
The Docker image built is based on the official Debian Bookworm image and contains:

- Redis (version 6+)
- Redis (version 7+)
- acmetool (modified for ACMEv2 support)
- a startup script that wants the specified SSL certificate and runs Redis with the given password

Expand Down
23 changes: 10 additions & 13 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
FROM ubuntu:20.10
FROM debian:bookworm-slim

# Update base
# Update base, install redis and dependencies

RUN apt-get update && apt-get upgrade -y

# Install redis

COPY redis/redis.sources /etc/apt/sources.list.d/redis.sources

COPY redis/redis-archive-keyring.asc /usr/local/share/keyrings/redis-archive-keyring.asc

RUN apt-get update && apt-get install redis-server -y
RUN \
apt-get update -q && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends ca-certificates cron libcap2 nano redis-server && \
rm -rf /var/lib/apt/lists/* && \
find /var/cache -name '*-old' -print -delete && \
# check that we have the right version of redis
redis-server --version | grep v=7

COPY redis/redis.conf /etc/redis/redis.conf

# Install acmetool

RUN apt-get install -y ca-certificates cron libcap2

COPY acmetool/acmetool-v2-beta-linux /usr/bin/acmetool

COPY acmetool/acmetool-responses.yaml /var/lib/acme/conf/responses
Expand Down
30 changes: 0 additions & 30 deletions docker/redis/redis-archive-keyring.asc

This file was deleted.

Loading

0 comments on commit c1eed79

Please sign in to comment.