Skip to content

Commit

Permalink
chore: unuse deprecated image and update kafka version
Browse files Browse the repository at this point in the history
  • Loading branch information
moeenz committed Feb 23, 2024
1 parent 877adfa commit 600e833
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
FROM openjdk:8u292-slim-buster
FROM eclipse-temurin:8u402-b06-jre-alpine

WORKDIR /opt

ARG kafkaversion=3.3.1
ARG kafkaversion=3.6.1
ARG scalaversion=2.13

ENV KRAFT_CONTAINER_HOST_NAME=
ENV KRAFT_CREATE_TOPICS=
ENV KRAFT_PARTITIONS_PER_TOPIC=

RUN apt update \
&& apt install -y --no-install-recommends wget
RUN apk --no-cache add curl bash

RUN wget https://mirrors.ocf.berkeley.edu/apache/kafka/${kafkaversion}/kafka_${scalaversion}-${kafkaversion}.tgz -O kafka.tgz \
RUN curl -o kafka.tgz https://mirrors.ocf.berkeley.edu/apache/kafka/${kafkaversion}/kafka_${scalaversion}-${kafkaversion}.tgz \
&& tar xvzf kafka.tgz \
&& mv kafka_${scalaversion}-${kafkaversion} kafka

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 docker-kafka-kraft
Copyright (c) 2024 docker-kafka-kraft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ $ docker run -e KRAFT_CONTAINER_HOST_NAME=kafka -e KRAFT_CREATE_TOPICS=topic-a,t
### Compose Example

```yaml
version: "3.8"

services:
kafka:
image: moeenz/docker-kafka-kraft:latest
Expand Down Expand Up @@ -49,7 +47,7 @@ services:

MIT License

Copyright (c) 2021 docker-kafka-kraft
Copyright (c) 2024 docker-kafka-kraft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 0 additions & 2 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
kafka:
image: moeenz/docker-kafka-kraft:latest
Expand Down

0 comments on commit 600e833

Please sign in to comment.