Skip to content

Commit

Permalink
Updated base docker image to a supported one with java 17. (#7)
Browse files Browse the repository at this point in the history
* Updated base docker image to a supported one with java 17.
  • Loading branch information
gguridi authored Nov 18, 2022
1 parent bfcb8ac commit efd13d2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI

on: [push, release]
on:
push:
release:
types: [published]

jobs:
kafka-test:
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
FROM openjdk:8-jdk-alpine
FROM eclipse-temurin:17-jdk-jammy


ARG SCALA_VERSION="2.12"
ARG KAFKA_VERSION="2.4.1"

ENV DEBIAN_FRONTEND noninteractive
ENV KAFKA_HOME /opt/kafka

RUN apk update
RUN apk add openssl ca-certificates curl supervisor bind-tools net-tools bash libc6-compat
RUN apt-get update
RUN apt-get install -y openssl ca-certificates curl supervisor net-tools bash
RUN update-ca-certificates

COPY services/ /opt/services/
COPY supervisor/ /etc/supervisor.d/
COPY supervisor/ /etc/supervisor/conf.d/

RUN curl -o /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz http://apache.mirror.anlx.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \
tar xvfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /tmp && \
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion supervisor/zookeeper.ini → supervisor/zookeeper.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[program:zookeeper]
command=/opt/services/zookeeper.sh start
command=bash /opt/services/zookeeper.sh start
stdout_logfile =/var/log/zookeeper.log
priority=1
autostart=true
Expand Down

0 comments on commit efd13d2

Please sign in to comment.