Browse Source

Remove chardet dependancy

Prakash Ranade 3 years ago
parent
commit
5f96d4973b
2 changed files with 6 additions and 0 deletions
  1. 3 0
      tools/container/build.sh
  2. 3 0
      tools/container/hue/Dockerfile

+ 3 - 0
tools/container/build.sh

@@ -62,6 +62,9 @@ docker_hue_build() {
   cp -a $BUILD_DIR/${HUEUSER} $HUE_DIR
   rm -f $HUE_DIR/${HUEUSER}/desktop/conf/*
 
+  # Remove chardet package
+  rm -rf $HUE_DIR/${HUEUSER}/tools/virtual-bootstrap/virtualenv_support
+
   # Reduce Hue container size
   rm -rf $HUE_DIR/${HUEUSER}/node_modules
   rm -rf $HUE_DIR/${HUEUSER}/desktop/core/ext-eggs

+ 3 - 0
tools/container/hue/Dockerfile

@@ -52,6 +52,9 @@ ADD supervisor-files/hue_server.conf /etc/supervisor.d/
 ADD supervisor-files/hue_ktrenewer.conf /etc/supervisor.d/
 RUN chown -R ${HUEUSER}:${HUEUSER} /etc/supervisord.conf && chown -R ${HUEUSER}:${HUEUSER} /etc/supervisor.d
 
+# Remove chardet package
+RUN rm -rf ${HUE_HOME}/build/env/lib/python3.8/site-packages/pip/_vendor/chardet
+
 EXPOSE 8888 9111
 
 WORKDIR ${HUE_HOME}