1
0
mirror of https://github.com/newnius/YAO-Dockerfiles.git synced 2025-06-06 07:51:54 +00:00

update dependencies

This commit is contained in:
Newnius 2019-07-10 20:47:02 +08:00
parent eaf2d3dfae
commit f79ab58e5d
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,11 @@ if [ -d /workspace ]; then
cd /workspace
fi
if ! grep -q *.py per_process_gpu_memory_fraction; then
echo "Resourse usage limitation not set!"
exit 1
fi
# use eval because commands likes `key=value command` would cause file not found error when using $@, but this eval will ruin current environment
eval $@

View File

@ -10,6 +10,7 @@ RUN wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz && \
ENV PATH $PATH:/usr/local/go/bin
RUN go get github.com/Shopify/sarama
RUN go get github.com/sirupsen/logrus
RUN git clone https://github.com/newnius/YAO-scheduler.git /root/yao-scheduler/