Fix users permissions
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
ARG VERSION
|
||||
FROM uazo/build-deps:$VERSION
|
||||
FROM ubuntu:latest
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
USER lg
|
||||
COPY buildbox-casd .
|
||||
COPY set-perms.sh .
|
||||
|
||||
RUN sudo apt-get -f -y install libgoogle-glog-dev libprotobuf17 libgrpc++1 socat &&\
|
||||
sudo chmod +x buildbox-casd
|
||||
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
|
||||
|
||||
CMD sudo rm -rf /wrk-cache/* &&\
|
||||
bash -c "socat UNIX-LISTEN:/wrk-cache/bots.sock,reuseaddr,fork TCP4:$REMOTEEXEC_ADDR &" &&\
|
||||
bash -c "$PWD/set-perms.sh &" &&\
|
||||
./buildbox-casd \
|
||||
--instance=default_instance \
|
||||
--cas-instance=default_instance \
|
||||
@@ -18,5 +21,3 @@ CMD sudo rm -rf /wrk-cache/* &&\
|
||||
--ra-remote=http://$REMOTEEXEC_ADDR \
|
||||
--verbose \
|
||||
/wrk-cache
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user