Skip to content

Instantly share code, notes, and snippets.

@b4tman
Last active June 1, 2017 15:39
Show Gist options
  • Save b4tman/dd26524ff4f0ab445f52e60afc068622 to your computer and use it in GitHub Desktop.
Save b4tman/dd26524ff4f0ab445f52e60afc068622 to your computer and use it in GitHub Desktop.
запуск сервера 1С x32 в докере
FROM ubuntu:xenial
ENV DEBIAN_FRONTEND noninteractive
RUN set -ex \
&& echo "deb http://archive.ubuntu.com/ubuntu/ xenial multiverse" > /etc/apt/sources.list.d/multiverse.list \
&& dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get install --no-install-recommends --no-install-suggests -y \
ca-certificates \
wget \
curl \
apt-transport-https \
apt-utils \
locales \
language-pack-ru \
language-pack-ru-base \
software-properties-common \
imagemagick-6.q16:i386 \
unixodbc:i386 \
libfreetype6:i386 \
libgsf-bin:i386 \
libgsf-1-114:i386 \
libodbc1:i386 \
libgssapi-krb5-2:i386 \
libfontconfig1:i386 \
t1utils:i386 \
&& echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections \
&& mkdir -p /var/lib/update-notifier/package-data-downloads/partial \
&& chown _apt:root /var/lib/update-notifier/package-data-downloads/partial/ \
&& apt-get install --no-install-recommends --no-install-suggests -y \
ttf-mscorefonts-installer \
&& rm -rf /var/lib/update-notifier/package-data-downloads/partial/* \
&& apt-get autoremove -y \
&& apt-get autoclean -y \
&& rm -rf /var/lib/apt/lists/*
ENV LANG ru_RU.UTF-8
RUN set -ex \
&& locale-gen ru_RU && locale-gen ru_RU.UTF-8 \
&& update-locale LANG=ru_RU.UTF-8
COPY 8.3.10.2168/deb.tar.gz /opt/install/
RUN set -ex \
&& cd /opt/install \
&& tar -xzf deb.tar.gz \
&& (dpkg -i *.deb || apt-get install -f) \
&& cd / \
&& rm -rf /opt/install
USER usr1cv8
VOLUME /var/1C
VOLUME /home/usr1cv8
WORKDIR /home/usr1cv8
EXPOSE 1540-1541 1560-1691
ENV SRV1CV8_DATA /home/usr1cv8/.1cv83/1C/1Cv83
ENV SRV1CV8_SECLEV 0
ENV SRV1CV8_ARGS -debug
CMD [ "sh", "-exc", "exec /opt/1C/v8.3/i386/ragent -port 1540 -regport 1541 \
-d \"$SRV1CV8_DATA\" -range 1560:1691 -seclev $SRV1CV8_SECLEV $SRV1CV8_ARGS"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment