-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile-update
36 lines (27 loc) · 986 Bytes
/
Dockerfile-update
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
31
32
33
34
35
36
#
# Build git-daemon server for meta-debian build environment
#
FROM deby:1
MAINTAINER KOBAYASHI Yoshitake
# Please change the follows
ENV DEFAULT_USERNAME debian
ENV DEFAULT_PASSWORD debian
ENV GIT_REPO /home/$DEFAULT_USERNAME/repositories
ENV DEBIAN_MIRROR http://ftp.jp.debian.org/debian/
# Might be do not need to edit from here
ENV DEBIAN_FRONTEND noninteractive
USER $DEFAULT_USERNAME
# Update scripts
WORKDIR /home/$DEFAULT_USERNAME/meta-debian-scripts
RUN git pull
# Cretae new list
WORKDIR /home/$DEFAULT_USERNAME/meta-debian-scripts/repo-lists
RUN ./generate_src-deby_all.sh
RUN cp src-deby_all.txt /home/$DEFAULT_USERNAME/repo-list/repo-deby_all.txt
# Update git repositories
WORKDIR /home/$DEFAULT_USERNAME/meta-debian-scripts/setup-local-gitrepo
RUN ./pull-repos.sh -c ../config.sh -l /home/$DEFAULT_USERNAME/repo-list/repo-deby_all.txt
# Set permission for git push command
RUN chmod -R a+rw /home/$DEFAULT_USERNAME/repositories
EXPOSE 9418
USER root