24 lines
686 B
Docker
Raw Normal View History

2021-06-19 09:46:24 +00:00
ARG VERSION
2021-08-03 15:26:16 +00:00
FROM ubuntu:latest
2021-06-19 09:46:24 +00:00
ENV DEBIAN_FRONTEND=noninteractive
COPY buildbox-casd .
2021-08-03 15:26:16 +00:00
COPY set-perms.sh .
2021-06-19 09:46:24 +00:00
2021-08-03 15:26:16 +00:00
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 09:46:24 +00:00
2021-06-29 13:50:31 +00:00
CMD sudo rm -rf /wrk-cache/* &&\
bash -c "socat -t10 UNIX-LISTEN:/wrk-cache/bots.sock,reuseaddr,fork TCP4:$REMOTEEXEC_ADDR &" &&\
2021-08-03 15:26:16 +00:00
bash -c "$PWD/set-perms.sh &" &&\
2021-06-29 13:50:31 +00:00
./buildbox-casd \
2021-06-19 09:46:24 +00:00
--instance=default_instance \
--cas-instance=default_instance \
--cas-remote=http://$REMOTEEXEC_ADDR \
--ra-remote=http://$REMOTEEXEC_ADDR \
--verbose \
/wrk-cache