potiuk commented on a change in pull request #5837: [AIRFLOW-5223] Use KinD for 
Kubernetes in CI
URL: https://github.com/apache/airflow/pull/5837#discussion_r324486346
 
 

 ##########
 File path: Dockerfile
 ##########
 @@ -85,6 +92,24 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - 
\
     && apt-get clean \
     && rm -rf /var/lib/apt/lists/*
 
+# Kubernetes dependencies
+RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
+    && add-apt-repository "deb [arch=amd64] 
https://download.docker.com/linux/debian stretch stable" \
+    && apt-get update \
+    && apt-get -y install --no-install-recommends docker-ce \
+    && apt-get autoremove -yqq --purge \
+    && apt-get clean && rm -rf /var/lib/apt/lists/*
+
+RUN  curl -Lo kubectl \
+    
"https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64/kubectl";
 \
+    && chmod +x kubectl \
+    && mv kubectl /usr/local/bin/kubectl
+
+RUN curl -Lo kind \
+    
"https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64";
 \
+    && chmod +x kind \
+    && mv kind /usr/local/bin/kind
+
 
 Review comment:
   Yeah. I did not realise that minicluster was a different thing. I moved it 
indeed in the meantime . I think this will be part of a different PR to use 
micluster/hadoop etc. images separately from airflow testing. But let's leave 
it for later. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to