Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e1c99f
commit 8f15a12
Showing
5 changed files
with
69 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM centos:latest | ||
LABEL maintainer "wojiushixiaobai" | ||
WORKDIR /opt | ||
|
||
RUN set -ex \ | ||
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | ||
&& yum -y install kde-l10n-Chinese \ | ||
&& yum -y reinstall glibc-common \ | ||
&& localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 \ | ||
&& export LC_ALL=zh_CN.UTF-8 \ | ||
&& echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf \ | ||
&& yum -y install wget gcc epel-release git \ | ||
&& yum -y install python36 python36-devel \ | ||
&& yum -y localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm \ | ||
&& rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro \ | ||
&& rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm \ | ||
&& yum install -y java-1.8.0-openjdk libtool \ | ||
&& mkdir /usr/local/lib/freerdp/ \ | ||
&& ln -s /usr/local/lib/freerdp /usr/lib64/freerdp \ | ||
&& yum install -y cairo-devel libjpeg-turbo-devel libpng-devel uuid-devel \ | ||
&& yum install -y ffmpeg-devel freerdp-devel freerdp-plugins pango-devel libssh2-devel libtelnet-devel libvncserver-devel pulseaudio-libs-devel openssl-devel libvorbis-devel libwebp-devel ghostscript \ | ||
&& yum -y install mariadb mariadb-devel mariadb-server redis nginx \ | ||
&& mkdir -p /config/guacamole /config/guacamole/lib /config/guacamole/extensions \ | ||
&& wget http://mirrors.hust.edu.cn/apache/tomcat/tomcat-8/v8.5.35/bin/apache-tomcat-8.5.35.tar.gz \ | ||
&& tar xf apache-tomcat-8.5.35.tar.gz -C /config \ | ||
&& rm -rf apache-tomcat-8.5.35.tar.gz \ | ||
&& mv /config/apache-tomcat-8.5.35 /config/tomcat8 \ | ||
&& sed -i 's/Connector port="8080"/Connector port="8081"/g' `grep 'Connector port="8080"' -rl /config/tomcat8/conf/server.xml` \ | ||
&& sed -i 's/FINE/WARNING/g' `grep 'FINE' -rl /config/tomcat8/conf/logging.properties` \ | ||
&& echo "java.util.logging.ConsoleHandler.encoding = UTF-8" >> /config/tomcat8/conf/logging.properties \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum/* | ||
|
||
COPY mysql_init.sh mysql_init.sh | ||
|
||
RUN set -ex \ | ||
&& mysql_install_db --user=mysql --datadir=/var/lib/mysql \ | ||
&& sh /opt/mysql_init.sh \ | ||
&& rm -rf /opt/mysql_init.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters