NOTE: This page has been translated automatically from Russian to English. Original page.



Create Docker-container 1C-client for Linux

Create Docker-container for Linux-based version of 1C. For example, to freely use it on any Linux distribution and does not hold in this "primeval" versions of the libraries in the system.

Surely each of you who have used 1C client on linux, especially a non-ubuntu / debian / redhat / centos faced with a pile of problems (from version ImageMagic and "strange" if not rougher use libraries to various "stray glitches" when using libraries newer than prehistoric). The article offers one of the solutions to these problems, with Docker. ( Https://ru.wikipedia.org/wiki/Docker )

The resulting Docker-Container is based on ubuntu 14.04, includes mscorefonts (a set of standard fonts from the MS; the LGPL license is different from, the text of the license within mscorefonts.zip archive), infinality patches (for the "correct" rendering fonts), font Fira Code ( good, monospaced font for the code)

The repository is added to light-version Dockerfile (without those fonts, infinality, only mscorefonts), is light in the directory.

First of all, we set Docker, such as Arch Linux:

pacman -S docker gpasswd -a <username> docker systemctl enable docker systemctl start docker 

Clone repository scripts and open Dockerfile to configure:

git clone https://github.com/psyriccio/dck1c.git cd dck1c # cd ./light # если нужно взять за основу light-версию nano ./Dockerfile 

You can get rid of these lines (it's themes to docker application looked like a native in the system can be replaced by their own, are unpacked in / usr / share / themes and / usr / share / icons, respectively):

&& unzip /opt/zukitwo-themes.zip -d /usr/share/themes \ && unzip /opt/yltra-icons.zip -d /usr/share/icons \ && unzip /opt/ultraflat-icons.zip -d /usr/share/icons \ / themes \ && unzip /opt/zukitwo-themes.zip -d /usr/share/themes \ && unzip /opt/yltra-icons.zip -d /usr/share/icons \ && unzip /opt/ultraflat-icons.zip -d /usr/share/icons \ / icons \ && unzip /opt/zukitwo-themes.zip -d /usr/share/themes \ && unzip /opt/yltra-icons.zip -d /usr/share/icons \ && unzip /opt/ultraflat-icons.zip -d /usr/share/icons \ 

The following line indicates the version and architecture of the platform and encoding:

ENV PLT_VERSION 8.3.7-1873 ENV PLT_ARCH amd64 ENV LANG ru_RU.utf8 

Located in a directory ./distr official deb-package, respective versions and architecture (need server, common, and client). Start the assembly commando container:

docker build -t psyriccio/dck1c . 

The assembly will take some time. After assembly, the container can run a script or ./run.sh commando type:

docker run -t --rm -e DISPLAY -v $HOME/.Xauthority:/home/user/.Xauthority -v $HOME:/home/user -v /mnt:/mnt --net=host --pid=host --ipc=host psyriccio/dck1c 

1C:Enterprise Developer's Community