summaryrefslogtreecommitdiff
path: root/docker-doris/Dockerfile
blob: 4bdcc3ae58d8944502c274c5a0795af8221bbc37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM apache/incubator-doris:build-env-latest

USER root
WORKDIR /root
RUN echo '123456' | passwd root --stdin

RUN yum install -y vim net-tools man wget git mysql lsof bash-completion \
        && cp /var/local/thirdparty/installed/bin/thrift /usr/bin

# 更安全的使用,创建用户而不是使用 root
RUN yum install -y sudo \
        && useradd -ms /bin/bash endera && echo 123456 | passwd endera --stdin \
        && usermod -a -G wheel endera

USER endera
WORKDIR /home/endera
RUN git config --global color.ui true \
        && git config --global user.email "[email protected]" \
        && git config --global user.name "EnderByEndera"