💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### hue本地安装 > [参考官网](http://gethue.com/how-to-build-hue-on-ubuntu-14-04-trusty/) ### Dockerfile 源代码 ```dockerfile FROM ubuntu:trusty MAINTAINER The Hue Team "https://github.com/cloudera/hue" RUN apt-get update -y RUN apt-get install -y software-properties-common RUN add-apt-repository -y ppa:webupd8team/java RUN apt-get update -y RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections RUN apt-get install -y oracle-java8-installer RUN apt-get update -y RUN apt-get install --fix-missing -q -y \ git \ ant \ gcc \ g++ \ libkrb5-dev \ libmysqlclient-dev \ libssl-dev \ libsasl2-dev \ libsasl2-modules-gssapi-mit \ libsqlite3-dev \ libtidy-0.99-0 \ libxml2-dev \ libxslt-dev \ libffi-dev \ make \ maven \ libldap2-dev \ python-dev \ python-setuptools \ libgmp3-dev \ libz-dev RUN git clone https://github.com/cloudera/hue.git WORKDIR hue RUN make apps EXPOSE 8888 VOLUME /hue/desktop/ CMD ["build/env/bin/hue", "runserver_plus", "0.0.0.0:8888"] ``` #### hue配置文件 ```powershell $ vi $HUE_HOME/desktop/conf/pseudo-distributed.ini ``` #### hue部署在单机docker ```powershell $ docker run -tid --name hue8888 \ --hostname cnode1.domain.org -p 8888:8888 \ -v /home/hzy/Dockerfile/hue/hue/desktop/conf/pseudo- distributed.ini:/hue/desktop/conf/pseudo-distributed.ini \ # 挂载hue的配置文件 gethue/hue:latest \ ./build/env/bin/hue runserver_plus 0.0.0.0:8888 # 容器内运行hue服务 ``` > hue在docker单机部署成功,后继用swarm部署多台机子。