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

Tp_4.1.x #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CONFLUENT_VERSION ?= ${CONFLUENT_MAJOR_VERSION}.${CONFLUENT_MINOR_VERSION}.${CON

KAFKA_VERSION ?= 1.1.0

COMPONENTS := base zookeeper kafka kafka-rest schema-registry kafka-connect-base kafka-connect enterprise-control-center kafkacat enterprise-replicator enterprise-kafka
COMPONENTS := base zookeeper kafka kafka-rest schema-registry kafka-connect-base kafka-connect # enterprise-control-center kafkacat enterprise-replicator enterprise-kafka
COMMIT_ID := $(shell git rev-parse --short HEAD)
MYSQL_DRIVER_VERSION := 5.1.39

Expand Down Expand Up @@ -90,7 +90,8 @@ endif
docker tag $${image} ${DOCKER_REMOTE_REPOSITORY}/$${image#*/}; \
done

push-private: clean build-debian build-test-images tag-remote
#push-private: clean build-debian build-test-images tag-remote
push-private: clean build-debian tag-remote
ifndef DOCKER_REMOTE_REPOSITORY
$(error DOCKER_REMOTE_REPOSITORY must be defined.)
endif
Expand All @@ -108,7 +109,7 @@ push-public: clean build-debian
done

clean: clean-containers clean-images
rm -rf debian/base/include/etc/confluent/docker/docker-utils.jar
#rm -rf debian/base/include/etc/confluent/docker/docker-utils.jar

venv: venv/bin/activate
venv/bin/activate: tests/requirements.txt
Expand Down
3 changes: 2 additions & 1 deletion bin/build-debian
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ for component in ${COMPONENTS} ; do
BUILD_ARGS=""
fi

for type in "" rpm; do
#for type in "" rpm; do
for type in ""; do
DOCKER_FILE="debian/${component}/Dockerfile"
COMPONENT_NAME=${component}

Expand Down
24 changes: 16 additions & 8 deletions debian/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,22 @@ RUN echo "===> Updating debian ....." \
&& pip install --no-cache-dir --upgrade pip==${PYTHON_PIP_VERSION} \
&& pip install --no-cache-dir git+https://github.com/confluentinc/[email protected] \
&& apt remove --purge -y git \
&& echo "Installing Zulu OpenJDK ${ZULU_OPENJDK_VERSION}" \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0x219BD9C9 \
&& echo "deb http://repos.azulsystems.com/debian stable main" >> /etc/apt/sources.list.d/zulu.list \
&& apt-get -qq update \
&& apt-get -y install zulu-${ZULU_OPENJDK_VERSION} \
&& echo "===> Installing Kerberos Patch ..." \
&& DEBIAN_FRONTEND=noninteractive apt-get -y install krb5-user \
&& rm -rf /var/lib/apt/lists/* \
\
&& echo "===> Adding webupd8 repository for Oracle JDK..." \
&& echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list \
&& echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 \
&& apt-get update \
&& echo "===> Installing Oracle JDK 8 ..." \
&& echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections \
&& echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes \
oracle-java8-installer \
oracle-java8-set-default \
ca-certificates \
&& rm -rf /var/cache/oracle-jdk8-installer \
&& apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* \
\
&& echo "===> Adding confluent repository...${CONFLUENT_PACKAGES_REPO}/deb/${CONFLUENT_MAJOR_VERSION}.${CONFLUENT_MINOR_VERSION}" \
&& if [ "x$ALLOW_UNSIGNED" = "xtrue" ]; then echo "APT::Get::AllowUnauthenticated \"true\";" > /etc/apt/apt.conf.d/allow_unauthenticated; else curl -L ${CONFLUENT_PACKAGES_REPO}/deb/${CONFLUENT_MAJOR_VERSION}.${CONFLUENT_MINOR_VERSION}/archive.key | apt-key add - ; fi \
&& echo "deb [arch=amd64] ${CONFLUENT_PACKAGES_REPO}/deb/${CONFLUENT_MAJOR_VERSION}.${CONFLUENT_MINOR_VERSION} stable main" >> /etc/apt/sources.list
Expand Down
Binary file not shown.