Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dynalab/dockerfiles/Dockerfile.cuda
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ RUN apt-get update && \
ca-certificates \
dpkg-dev \
g++ \
python3.6-dev \
python3.7-dev \
python3-pip \
openjdk-11-jre-headless \
curl \
vim \
git \
&& rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
RUN cd /tmp \
&& curl -O https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py
Expand All @@ -49,7 +49,7 @@ WORKDIR /home/model-server/code

RUN if [ -f requirements.txt ] && [ ${requirements} = True ]; then python -m pip install --no-cache-dir --force-reinstall -r requirements.txt; fi
RUN if [ -f setup.py ] && [ ${setup} = True ]; then python -m pip install --no-cache-dir --force-reinstall -e .; fi
RUN python -m pip install --force-reinstall git+git://github.com/facebookresearch/dynalab.git@flores
RUN python -m pip install --force-reinstall git+https://github.com/facebookresearch/dynalab.git@flores

ENV model_name=${model_name}
ENV PYTHONIOENCODING=UTF-8
Expand Down
6 changes: 3 additions & 3 deletions dynalab/dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ RUN apt-get update && \
ca-certificates \
dpkg-dev \
g++ \
python3.6-dev \
python3.7-dev \
python3-pip \
openjdk-11-jdk \
curl \
vim \
git \
&& rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
RUN cd /tmp \
&& curl -O https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py
Expand All @@ -49,7 +49,7 @@ WORKDIR /home/model-server/code

RUN if [ -f requirements.txt ] && [ ${requirements} = True ]; then python -m pip install --no-cache-dir --force-reinstall -r requirements.txt; fi
RUN if [ -f setup.py ] && [ ${setup} = True ]; then python -m pip install --no-cache-dir --force-reinstall -e .; fi
RUN python -m pip install --force-reinstall git+git://github.com/facebookresearch/dynalab.git
RUN python -m pip install --force-reinstall git+https://github.com/facebookresearch/dynalab.git

ENV model_name=${model_name}
ENV PYTHONIOENCODING=UTF-8
Expand Down
6 changes: 3 additions & 3 deletions dynalab/dockerfiles/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ RUN apt-get update && \
ca-certificates \
dpkg-dev \
g++ \
python3.6-dev \
python3.7-dev \
python3-pip \
openjdk-11-jdk \
curl \
vim \
git \
&& rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.6 1
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7 1
RUN cd /tmp \
&& curl -O https://bootstrap.pypa.io/get-pip.py \
&& python3 get-pip.py
Expand All @@ -46,7 +46,7 @@ WORKDIR /home/model-server/code

RUN if [ -f requirements.txt ] && [ ${requirements} = True ]; then python -m pip install --no-cache-dir --force-reinstall -r requirements.txt; fi
RUN if [ -f setup.py ] && [ ${setup} = True ]; then python -m pip install --no-cache-dir --force-reinstall -e .; fi
RUN python -m pip install --force-reinstall git+git://github.com/facebookresearch/dynalab.git
RUN python -m pip install --force-reinstall git+https://github.com/facebookresearch/dynalab.git

ENV PYTHONIOENCODING=UTF-8
ENV MY_SECRET=${my_secret}
Expand Down
2 changes: 1 addition & 1 deletion dynalab_cli/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def run_docker_test(self, config):
"docker",
"run",
"--network=none",
"--cpus=4",
"--cpus=2",
"--memory=16G",
repository_name,
]
Expand Down