Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装停在tzdata这一步就不进行下去了 #40

Open
redguardtoo opened this issue Apr 27, 2020 · 11 comments
Open

安装停在tzdata这一步就不进行下去了 #40

redguardtoo opened this issue Apr 27, 2020 · 11 comments

Comments

@redguardtoo
Copy link

redguardtoo commented Apr 27, 2020

image

我用Debian

@Leegenux
Copy link

分析发现问题可能是在连接docker运行命令的时候,docker不接受键盘输入。
可以考虑考虑提前配置并安装tzdata,使用如下Dockerfile。

#This Dockerfile uses the ubuntu image
#Author: Rokas_Urbelis
#Email : [email protected]
#Blog  : https://blog.linux-code.com
FROM ubuntu:latest
MAINTAINER RokasUrbelis(Based on github deepin-wine-ubuntu project)

COPY install.sh deepin-wine-ubuntu/install.sh

ADD deepin-wine-ubuntu /root/deepin-wine-ubuntu
COPY link.sh /root/
COPY deb/ /root/deepin-wine-ubuntu/
#COPY sources.list /etc/apt/
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update

RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y
RUN apt-get clean && apt-get autoclean
ENV LC_CTYPE=zh_CN.UTF-8 \
    XMODIFIERS="@im=fcitx"

RUN \
  locale-gen en_US.UTF-8 zh_CN.UTF-8 \
  zh_CN.GBK && \
  update-locale LANG=zh_CN.UTF-8

# Define default command.

RUN yes|bash /root/deepin-wine-ubuntu/install.sh
#RUN cd && ln -s /opt/deepin-wine-ubuntu/app/* .
RUN /bin/bash /root/link.sh && rm -f /root/link.sh
RUN rm -rf /root/deepin-wine-ubuntu
WORKDIR /root

CMD ["/bin/bash"]

可以在Dockerfile放好之后用git diff查看我的更改.

@redguardtoo
Copy link
Author

能不能给run.sh加个语言的参数?

@Zhongwei-Luo
Copy link

分析发现问题可能是在连接docker运行命令的时候,docker不接受键盘输入。
可以考虑考虑提前配置并安装tzdata,使用如下Dockerfile。

#This Dockerfile uses the ubuntu image
#Author: Rokas_Urbelis
#Email : [email protected]
#Blog  : https://blog.linux-code.com
FROM ubuntu:latest
MAINTAINER RokasUrbelis(Based on github deepin-wine-ubuntu project)

COPY install.sh deepin-wine-ubuntu/install.sh

ADD deepin-wine-ubuntu /root/deepin-wine-ubuntu
COPY link.sh /root/
COPY deb/ /root/deepin-wine-ubuntu/
#COPY sources.list /etc/apt/
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update

RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y
RUN apt-get clean && apt-get autoclean
ENV LC_CTYPE=zh_CN.UTF-8 \
    XMODIFIERS="@im=fcitx"

RUN \
  locale-gen en_US.UTF-8 zh_CN.UTF-8 \
  zh_CN.GBK && \
  update-locale LANG=zh_CN.UTF-8

# Define default command.

RUN yes|bash /root/deepin-wine-ubuntu/install.sh
#RUN cd && ln -s /opt/deepin-wine-ubuntu/app/* .
RUN /bin/bash /root/link.sh && rm -f /root/link.sh
RUN rm -rf /root/deepin-wine-ubuntu
WORKDIR /root

CMD ["/bin/bash"]

可以在Dockerfile放好之后用git diff查看我的更改.

你好,能大概说一下怎么用这个dockerfile吗 还是不会用

@redguardtoo
Copy link
Author

设一下环境变量 DEBIAN_FRONTEND=noninteractive就可以了。

@liguobao
Copy link

liguobao commented May 8, 2020

谷歌拼音输入法中文显示不了...

@xe5700
Copy link

xe5700 commented May 18, 2020

这个环境变量加哪里可以用

@vayneli
Copy link

vayneli commented Jun 10, 2020

请问问题解决了吗?

@JimmyYanDev
Copy link

分析发现问题可能是在连接docker运行命令的时候,docker不接受键盘输入。
可以考虑考虑提前配置并安装tzdata,使用如下Dockerfile。

#This Dockerfile uses the ubuntu image
#Author: Rokas_Urbelis
#Email : [email protected]
#Blog  : https://blog.linux-code.com
FROM ubuntu:latest
MAINTAINER RokasUrbelis(Based on github deepin-wine-ubuntu project)

COPY install.sh deepin-wine-ubuntu/install.sh

ADD deepin-wine-ubuntu /root/deepin-wine-ubuntu
COPY link.sh /root/
COPY deb/ /root/deepin-wine-ubuntu/
#COPY sources.list /etc/apt/
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update

RUN ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y
RUN apt-get clean && apt-get autoclean
ENV LC_CTYPE=zh_CN.UTF-8 \
    XMODIFIERS="@im=fcitx"

RUN \
  locale-gen en_US.UTF-8 zh_CN.UTF-8 \
  zh_CN.GBK && \
  update-locale LANG=zh_CN.UTF-8

# Define default command.

RUN yes|bash /root/deepin-wine-ubuntu/install.sh
#RUN cd && ln -s /opt/deepin-wine-ubuntu/app/* .
RUN /bin/bash /root/link.sh && rm -f /root/link.sh
RUN rm -rf /root/deepin-wine-ubuntu
WORKDIR /root

CMD ["/bin/bash"]

可以在Dockerfile放好之后用git diff查看我的更改.

这个有用,我试了可以

@lunzilunzi
Copy link

  1. 修改Dockerfile为作者发布的内容(与原内容比仅多了2行内容, 看一看就懂了)
  2. 在项目根目录下新建一个install.sh文件
  3. install.sh的内容设置为
    apt-get install -y tzdata

@Leegenux
Copy link

Leegenux commented Oct 14, 2020

很奇怪,最新版本中,tzdata还是会卡:
如提问者指出,在Dockerfile中加入这样一行:

ENV DEBIAN_FRONTEND=noninteractive

可以解决问题

@ghldiy
Copy link

ghldiy commented Feb 11, 2022

由于默认的镜像源慢得让人怀疑人生,所以有必要更换成国内的镜像源。

在Dockerfile中添加

RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants