Примерный DockerFile для работы в контейнерами 1С

Пока могу поделиться только этим. Дальше будет больше/лучше

build_container.sh

#!/usr/bin/env sh

eval $(bash ./../params.sh)
echo user for download $V8USER
echo passwd for download $V8PASSW
echo version for download $V8VERSION

sed "s/\$VBOX_VERSION/$V8USER/g" Dockerfile.tmpl > Dockerfile
sed "s/\$VBOX_VERSION/$V8PASSW/g" Dockerfile.tmpl > Dockerfile
sed "s/\$VBOX_VERSION/$V8VERSION/g" Dockerfile.tmpl > Dockerfile

Dockerfile.tmpl

# r&d onec server on centos 

#VERSION 2

FROM centos

MAINTAINER Alexey Lustin contact@lustin.org

ENTRYPOINT /opt/1C/v8.3/x86_64/ragent #TODO add config option

#USER usr1cv8 TODO Need to be update by set the entrypoint

EXPOSE 1540
EXPOSE 1541
EXPOSE 1560


RUN yum -y install wget tar

#TODO mount distr dir

RUN mkdir -p distr && \
	cd distr && \
	wget --http-user=$V8USER -v --http-passwd=$V8PASSW --continue  http://downloads.v8.1c.ru/get/Info/Platform/$V8ERSION/rpm64.tar.gz ./$V8ERSION.rpm64.tar.gz && \
	tar xvf ./$V8ERSION.rpm64.tar.gz
	
RUN yum install /distr/1C_Enterprise*.rpm -y

RUN yum install ImageMagick unixODBC libgsf httpd -y

#TODO mount logs file dir, conf files dir

#TODO set the httpd conf

params.sh

#!/usr/bin/env
V8USER=<on users.v8.1c.ru>
V8PASSW=<on users.v8.1c.ru>
V8VERSION=8.3.150.1
2 Симпатий