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

Can this method run any of the software shipped in the latest Deepin distro? #2

Closed
hongyi-zhao opened this issue Sep 27, 2020 · 12 comments
Labels

Comments

@hongyi-zhao
Copy link

hongyi-zhao commented Sep 27, 2020

Hi,

Can this method run any of the software shipped in the latest Deepin distro?

Regards,
HY

@hongyi-zhao hongyi-zhao changed the title Can this method run any of the software shipped in the deepin distro? Can this method run any of the software shipped in the latest deepin distro? Sep 27, 2020
@hongyi-zhao hongyi-zhao changed the title Can this method run any of the software shipped in the latest deepin distro? Can this method run any of the software shipped in the latest Deepin distro? Sep 27, 2020
@mviereck
Copy link
Owner

Yes, of course. The image is based on and installed from the deepin repository.
Some deepin applications are already installed.
You can add further software in the Dockerfile or generate a new one based on the image.

FROM x11docker/deepin
RUN apt-get update && apt-get -y dist-upgrade
RUN apt-get install <packagename>

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Sep 27, 2020

But the Deepin distro used in Dockerfile is panda which is not the latest distro. The current stable release is lion.

mviereck added a commit that referenced this issue Sep 27, 2020
@mviereck
Copy link
Owner

The current stable release is lion.

Indeed. I wasn't aware of this new release, thank you.

I've updated the Dockerfile from panda to lion.
Currently a new build is running on docker hub, that will take a while. In about an hour or two the new build should be available.
It would be nice if you check it out if it works well.

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Sep 27, 2020

Thanks, I'll check it. BTW, if so, all the partial/specific packages' schema should be retired by this project, say, the following ones:

https://github.com/RokasUrbelis/docker-wine-linux
https://github.com/huan/docker-wechat
https://github.com/bestwu/docker-wechat

@mviereck
Copy link
Owner

mviereck commented Sep 27, 2020

The build has already finished, has been faster than I thought.

https://github.com/huan/docker-wechat
https://github.com/bestwu/docker-wechat

Currently the image does not include wechat, maybe I should add it.
Just noticed that there is no native wechat client for linux and it would need wine, too.

https://github.com/RokasUrbelis/docker-wine-linux

There is already an image x11docker/lxde-wine. I would not like to include wine in x11docker/deepin, too.

Are there other applications that should be added?
Overall, the image is already quite big and I would like to keep it as small as possible.
Maybe fcitx-pidgin should be added to allow additional keyboard configuration.

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Sep 27, 2020

IMO, the major reason for which we want to build a docker container based on Deepin is that this distro has so many optimized tools running under wine and the target user group is Chinese.

Though you can build the wine container based on other distros, say, Debian, but it doesn't mean that you can run the same Windows apps working for Deepin-wine. The Deepin-wine is a specially revised/fixed version which is not the same as the official wine and has the characteristics of maximum compatibility for Windows programs popularly used by Chinese people.

Regards,
HY

@mviereck
Copy link
Owner

mviereck commented Sep 27, 2020

I think it might rather make sense to provide x11docker/deepin as it is.
It can be used as a base image and extended with desired applications. Other x11docker desktop images follow the same concept and provide only few applications on their own.

The README.md could contain an instruction how to extend x11docker/deepin for wine applications.
Something like this should work:

FROM x11docker/deepin
RUN env DEBIAN_FRONTEND=noninteractive dpkg --add-architecture i386 && apt-get update
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y \
      deepin-wine deepin-wine32 deepin-wine32-preloader deepin-wine-helper deepin-wine-uninstaller
RUN env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
      deepin.com.wechat

Could you try this out?

@hongyi-zhao
Copy link
Author

hongyi-zhao commented Sep 27, 2020

Thanks a lot for your wonderful work. I'll try it tomorrow.

BTW, are you a German?

mviereck added a commit that referenced this issue Sep 28, 2020
@mviereck
Copy link
Owner

mviereck commented Sep 28, 2020

I've pulled the new x11docker/deepin image and also build an image with wine and wechat. An explanation is added to the README.
So far I succeeded, everything works as expected. wechat starts slow, but after some time it shows a QR code to scan.

The x11docker command to run the image is shorter than before now, some insecure options are no longer needed with deepin lion. That are quite good news.

Installing wine and wechat adds 0.9 GB to the image. So I won't include it in the base image, that is far too much.

There is still an issue left: I cannot switch to chinese keyboard layout. Could you have a look in #3?

BTW, are you a German?

Yes, I am a German in Germany.

@hongyi-zhao
Copy link
Author

Very glad to hear your good news.

There is still an issue left: I cannot switch to chinese keyboard layout. Could you have a look in #3?

I've posted some personal experiences there. Hope that helps.

@hongyi-zhao
Copy link
Author

Another issue: have you also tried qq, say, deepin.com.qq.im?

@mviereck
Copy link
Owner

I did not try other wine applications so far. You could just try yourself like the wechat example.

@mviereck mviereck closed this as completed Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants