Skip to content

Commit

Permalink
Modify following Dockerfile best practices.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuzilong2013 committed Feb 6, 2024
1 parent 4ad5924 commit 1e9aca1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dev/docker/hive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ RUN apt-get update && apt-get upgrade -y && apt-get install --fix-missing -yq \
openssh-server \
wget \
sudo \
openjdk-8-jdk
openjdk-8-jdk \
mysql-server \
&& rm -rf /var/lib/apt/lists/*

#################################################################################
## setup ssh
Expand Down Expand Up @@ -122,7 +124,6 @@ ADD hive-site.xml ${HIVE_HOME}/conf/hive-site.xml
ENV MYSQL_PWD=ds123
RUN echo "mysql-server mysql-server/root_password password ${MYSQL_PWD}" | debconf-set-selections
RUN echo "mysql-server mysql-server/root_password_again password ${MYSQL_PWD}" | debconf-set-selections
RUN apt-get install -y mysql-server

RUN chown -R mysql:mysql /var/lib/mysql
RUN usermod -d /var/lib/mysql/ mysql
Expand Down

0 comments on commit 1e9aca1

Please sign in to comment.