-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (14 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM centos:latest
ENV PATH /root/.rccontrol-profile/bin:$PATH
RUN yum install -y sudo bzip2 wget
RUN sed -i -e "s/Defaults requiretty.*/ #Defaults requiretty/g" /etc/sudoers && \
cd /tmp && \
wget --progress=dot:giga --content-disposition https://dls-eu.rhodecode.com/dls/NzA2MjdhN2E2ODYxNzY2NzZjNDA2NTc1NjI3MTcyNzA2MjcxNzIyZTcwNjI3YQ==/rhodecode-control/latest-linux-ce && \
chmod 775 RhodeCode-installer* && \
yes | ./RhodeCode-installer* && \
rm -f RhodeCode-installer* rccontrol.log rc-installer*.log accepted_con*.txt
RUN yes | rccontrol install VCSServer '{"host":"127.0.0.1", "port":"10001"}' && \
yes | rccontrol install Community '{"password":"111111", "email":"[email protected]", "username":"admin", "host":"127.0.0.1", "port":"10000", "repo_dir":"/root/repos", "database":"sqlite"}'
ADD run.sh /root/run.sh
ADD supervisord.conf /root/supervisord.conf
CMD supervisord -c /root/supervisord.conf