bromite-buildtools/images/buildboxcasd/Dockerfile

24 lines
686 B
Docker
Raw Permalink Normal View History

2021-06-19 15:16:24 +05:30
ARG VERSION
2021-08-03 20:56:16 +05:30
FROM ubuntu:latest
2021-06-19 15:16:24 +05:30
ENV DEBIAN_FRONTEND=noninteractive
COPY buildbox-casd .
2021-08-03 20:56:16 +05:30
COPY set-perms.sh .
2021-06-19 15:16:24 +05:30
2021-08-03 20:56:16 +05:30
RUN apt-get update &&\
apt-get -f -y install sudo libgoogle-glog-dev libprotobuf17 libgrpc++1 socat &&\
sudo chmod +x buildbox-casd &&\
sudo chmod +x set-perms.sh
2021-06-19 15:16:24 +05:30
2021-06-29 19:20:31 +05:30
CMD sudo rm -rf /wrk-cache/* &&\
bash -c "socat -t10 UNIX-LISTEN:/wrk-cache/bots.sock,reuseaddr,fork TCP4:$REMOTEEXEC_ADDR &" &&\
2021-08-03 20:56:16 +05:30
bash -c "$PWD/set-perms.sh &" &&\
2021-06-29 19:20:31 +05:30
./buildbox-casd \
2021-06-19 15:16:24 +05:30
--instance=default_instance \
--cas-instance=default_instance \
--cas-remote=http://$REMOTEEXEC_ADDR \
--ra-remote=http://$REMOTEEXEC_ADDR \
--verbose \
/wrk-cache