mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
提交solr的镜像
This commit is contained in:
parent
4503dd3425
commit
e382bc1613
33
solr/Dockerfile
Normal file
33
solr/Dockerfile
Normal file
@ -0,0 +1,33 @@
|
||||
FROM bitnami/solr:8-debian-10
|
||||
|
||||
MAINTAINER kennylee <kennylee26@gmail.com>
|
||||
|
||||
USER root
|
||||
|
||||
RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak
|
||||
COPY buster.sources.list /etc/apt/sources.list
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl git unzip vim wget && \
|
||||
apt-get install -y locales kde-l10n-zhcn && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen
|
||||
|
||||
RUN locale && locale-gen "zh_CN.UTF-8"
|
||||
|
||||
# Set environment variables.
|
||||
ENV LANG=zh_CN.UTF-8 \
|
||||
LANGUAGE=zh_CN:zh:en_US:en \
|
||||
LC_ALL=zh_CN.UTF-8 \
|
||||
TZ=Asia/Shanghai \
|
||||
DEBIAN_FRONTEND="noninteractive" \
|
||||
TERM=xterm
|
||||
|
||||
RUN ln -fs /usr/share/zoneinfo/$TZ /etc/localtime && \
|
||||
echo $TZ > /etc/timezone && \
|
||||
dpkg-reconfigure --frontend noninteractive tzdata && \
|
||||
dpkg-reconfigure --frontend noninteractive locales
|
||||
|
||||
USER 1001
|
21
solr/README.md
Normal file
21
solr/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Solr
|
||||
|
||||
## 概述
|
||||
|
||||
基于 [bitnami/bitnami-docker-solr](https://github.com/bitnami/bitnami-docker-solr/) 进行修改。
|
||||
|
||||
主要修改如下:
|
||||
|
||||
* 修改apt-get使用163的软件源
|
||||
* 安装的基础工具
|
||||
|
||||
* curl git unzip vim
|
||||
* kde-l10n-zhcn (中文包)
|
||||
|
||||
* 中国时区和中文语言环境。
|
||||
|
||||
参考构建命令
|
||||
|
||||
```
|
||||
docker build -t kennylee/solr .
|
||||
```
|
9
solr/buster.sources.list
Normal file
9
solr/buster.sources.list
Normal file
@ -0,0 +1,9 @@
|
||||
deb http://mirrors.163.com/debian/ buster main non-free contrib
|
||||
deb http://mirrors.163.com/debian/ buster-updates main non-free contrib
|
||||
deb http://mirrors.163.com/debian/ buster-backports main non-free contrib
|
||||
deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
|
||||
|
||||
deb-src http://mirrors.163.com/debian/ buster main non-free contrib
|
||||
deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib
|
||||
deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib
|
||||
deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
|
Loading…
Reference in New Issue
Block a user