hue
https://hub.docker.com/u/gethue/
https://hub.docker.com/layers/gethue/hue/4.6.0/images/sha256-c797c1c8b228947ed50a63623b5418ecc254dc72b0189065a3517ce44dea03ca
sudo yum install ant asciidoc cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-plain gcc gcc-c++ krb5-devel libffi-devel libxml2-devel libxslt-devel make mysql mysql-devel openldap-devel python-devel sqlite-devel gmp-devel
安装jdk 1.8.0_231
mkdir /as4k; cd /as4k;
wget http://192.168.1.8/chfs/shared/xshare/jdk8/jdk-8u231-linux-x64.tar.gz
tar xf jdk-8u231-linux-x64.tar.gz
cat << 'EOF' >> /etc/profile
export JAVA_HOME=/as4k/jdk1.8.0_231
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
EOF
source /etc/profile; jps; java -version
echo $PATH
容器安装
https://hub.docker.com/u/gethue/
https://hub.docker.com/r/gethue/documentation/dockerfile
https://hub.docker.com/layers/gethue/hue/4.6.0/images/sha256-c797c1c8b228947ed50a63623b5418ecc254dc72b0189065a3517ce44dea03ca
docker pull gethue/hue:4.6.0
docker pull gethue/documentation:latest
docker run -p 80:80 gethue/documentation:latest
docker pull gethue/hue:4.6.0; docker pull gethue/documentation:latest
dir=/home/mysql-data; mkdir -p $dir; docker run --restart always --name mysql-hue -d -v $dir:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 daocloud.io/library/mysql:5.7.26
docker exec mysql-hue mysql -uroot -p123456 -e "CREATE DATABASE IF NOT EXISTS hue"
docker exec mysql-hue mysql -uroot -p123456 -e "SHOW DATABASES"
docker run -it -p 8888:8888 -v /root/hue.ini:/usr/share/hue/desktop/conf/z-hue.ini gethue/hue:4.6.0
admin / admin
docker run -it -p 8888:8888 -v /root/hue.ini:/usr/share/hue/desktop/conf/z-hue.ini -v gethue/hue:4.6.0
![](http://xdocs-images.all.xingyongsheng.top/2020-01-12-17-13-35.png)
cat hue.ini
# Lightweight Hue configuration file
# ==================================
[desktop]
# Set this to a random string, the longer the better.
secret_key=kasdlfjknasdfl3hbaksk3bwkasdfkasdfba23asdf
# Webserver listens on this address and port
http_host=0.0.0.0
http_port=8888
# Time zone name
time_zone=America/Los_Angeles
# Enable or disable debug mode.
django_debug_mode=false
# Enable or disable backtrace for server error
http_500_debug_mode=false
app_blacklist=search,hbase,security
# Configuration options for specifying the Desktop Database. For more info,
# see http://docs.djangoproject.com/en/1.11/ref/settings/#database-engine
# ------------------------------------------------------------------------
[[database]]
# Database engine is typically one of:
# postgresql_psycopg2, mysql, sqlite3 or oracle.
#
# Note that for sqlite3, 'name', below is a path to the filename. For other backends, it is the database name
# Note for Oracle, options={"threaded":true} must be set in order to avoid crashes.
# Note for Oracle, you can use the Oracle Service Name by setting "host=" and "port=" and then "name=<host>:<port>/<service_name>".
# Note for MariaDB use the 'mysql' engine.
# engine=postgresql_psycopg2
# host=hue-postgres
# port=5432
# user=hue
# password=hue
# name=hue
engine=mysql
host=192.168.1.120
port=3306
user=root
password=123456
name=hue
###########################################################################
# Settings to configure the snippets available in the Notebook
###########################################################################
[notebook]
# One entry for each type of snippet.
[[interpreters]]
# Define the name and how to connect and execute the language.
# https://docs.gethue.com/administrator/configuration/editor/
# Example for Docker compose
[[[mysql]]]
name = MySQL
interface=sqlalchemy
## https://docs.sqlalchemy.org/en/latest/dialects/mysql.html
options='{"url": "mysql://root:123456@192.168.1.120:3306/hue"}'
## options='{"url": "mysql://${USER}:${PASSWORD}@localhost:3306/hue"}'
hue 文档dockerfile
FROM nginx
LABEL description="Hue websites, e.g. docs, gethue..."
RUN apt-get update -y && apt-get install -y \
wget \
python-pip
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.58.3/hugo_0.58.3_Linux-64bit.deb
RUN dpkg -i hugo*.deb && rm hugo*.deb
RUN pip install Pygments
COPY tools/docker/nginx/nginx.conf /etc/nginx/nginx.conf
COPY tools/docker/website/docs.gethue.com.conf /etc/nginx/sites-available/docs.gethue.com
RUN mkdir /etc/nginx/sites-enabled
# Docs
ADD docs/docs-site /docs
WORKDIR /docs
RUN hugo
RUN mkdir -p /var/www/docs.gethue.com/html
RUN cp -R public/* /var/www/docs.gethue.com/html
RUN chmod -R 755 /var/www/docs.gethue.com
RUN ln -s /etc/nginx/sites-available/docs.gethue.com /etc/nginx/sites-enabled/docs.gethue.com
RUN rm -rf /docs
EXPOSE 80