-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
30 lines (24 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Docker image with all the dependencies for the prl-disp-service
# Build and run as follows:
# docker build -t prl-disp-service . && docker run -v "$(pwd):/root/src" -it prl-disp-service
FROM virtuozzo/vz7-minimal:latest
RUN printf \
"\n[factory-sources]\n\
name=Build Factory packages for Containers (sources)\n\
baseurl=https://download.openvz.org/virtuozzo/factory/source/SRPMS/\n\
priority=49\n\
enabled=0\n\
gpgcheck=0\n" >>/etc/yum.repos.d/factory.repo
RUN yum -y install yum-utils gdb && \
yum-config-manager --enable factory factory-sources virtuozzolinux-vz-factory && \
mkdir /tmp/source_package/ && \
cd /tmp/source_package/ && \
yumdownloader --source prl-disp-service && \
yum -y update && \
yes | yum-builddep "/tmp/source_package/`ls /tmp/source_package/`"
RUN useradd prl_unit_test_user && \
useradd prl_unit_test_user2 && \
echo test | passwd prl_unit_test_user --stdin && \
echo test | passwd prl_unit_test_user2 --stdin
WORKDIR /root/src
CMD sh docker-build.sh debug && sh docker-build.sh test