mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 20:59:02 +02:00
docker: Use current git version
Use local git version instead of fetching remote master branch. Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
754040f52c
commit
fab4b91312
|
@ -58,15 +58,17 @@ ENV LC_ALL en_US.UTF-8
|
|||
RUN ssh-keyscan push.yoctoproject.org push.openembedded.org >> /etc/ssh/ssh_known_hosts
|
||||
|
||||
# Setup buildbot
|
||||
COPY yocto-autobuilder2_patches /yocto-autobuilder2_patches
|
||||
COPY docker/yocto-autobuilder2_patches /yocto-autobuilder2_patches
|
||||
COPY . /yocto-autobuilder2
|
||||
RUN useradd -m --system pokybuild && \
|
||||
cd /home/pokybuild && \
|
||||
buildbot create-master -r yocto-controller && \
|
||||
buildbot-worker create-worker -r --umask=0o22 yocto-worker controller example-worker pass && \
|
||||
\
|
||||
cd yocto-controller && \
|
||||
git clone https://git.yoctoproject.org/git/yocto-autobuilder2 yoctoabb && \
|
||||
mv /yocto-autobuilder2 yoctoabb && \
|
||||
git -C yoctoabb apply /yocto-autobuilder2_patches/*.patch && \
|
||||
rm -rf /yocto-autobuilder2_patches && \
|
||||
ln -rs yoctoabb/master.cfg master.cfg && \
|
||||
\
|
||||
cd /home/pokybuild && \
|
||||
|
@ -108,7 +110,7 @@ RUN sed -i \
|
|||
awk '/^schedulers.append\(sched.Nightly\(/{comment=1} /\(/{count+=gsub("\\(", "(")} /\)/{count-=gsub("\\)", ")")} {if (comment) {print "#" $0} else {print} if (count==0) comment=0}' \
|
||||
/home/pokybuild/yocto-controller/yoctoabb/schedulers.py
|
||||
|
||||
COPY entry.sh /
|
||||
COPY docker/entry.sh /
|
||||
RUN chmod a+x /entry.sh
|
||||
|
||||
ENTRYPOINT ["/entry.sh"]
|
||||
|
|
|
@ -2,29 +2,27 @@
|
|||
|
||||
---
|
||||
|
||||
services:
|
||||
controller:
|
||||
build: .
|
||||
x-base-service: &base-service
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
volumes:
|
||||
- sharedrepo:/sharedrepo
|
||||
- publish:/publish
|
||||
- mirror:/home/pokybuild/git/mirror
|
||||
- srvautobuilder:/srv/autobuilder
|
||||
ports:
|
||||
- 8010:8010
|
||||
stdin_open: true
|
||||
tty: true
|
||||
|
||||
services:
|
||||
controller:
|
||||
<<: *base-service
|
||||
ports:
|
||||
- 8010:8010
|
||||
cpus: 4
|
||||
command: controller
|
||||
worker:
|
||||
build: .
|
||||
volumes:
|
||||
- sharedrepo:/sharedrepo
|
||||
- publish:/publish
|
||||
- mirror:/home/pokybuild/git/mirror
|
||||
- srvautobuilder:/srv/autobuilder
|
||||
stdin_open: true
|
||||
tty: true
|
||||
<<: *base-service
|
||||
cpus: 8
|
||||
command: worker yocto-worker
|
||||
mem_limit: 16gb
|
||||
|
|
Loading…
Reference in New Issue
Block a user