bromite-buildtools/images/buildboxcasd/Dockerfile

23 lines
589 B
Docker
Raw Normal View History

2021-06-19 15:16:24 +05:30
ARG VERSION
2021-06-29 19:20:31 +05:30
FROM uazo/build-deps:$VERSION
2021-06-19 15:16:24 +05:30
ENV DEBIAN_FRONTEND=noninteractive
USER lg
COPY buildbox-casd .
2021-06-29 19:20:31 +05:30
RUN sudo apt-get -f -y install libgoogle-glog-dev libprotobuf17 libgrpc++1 socat &&\
2021-06-19 15:16:24 +05:30
sudo chmod +x buildbox-casd
2021-06-29 19:20:31 +05:30
CMD sudo rm -rf /wrk-cache/* &&\
bash -c "socat UNIX-LISTEN:/wrk-cache/bots.sock,reuseaddr,fork TCP4:$REMOTEEXEC_ADDR &" &&\
./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