-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to use cache during building
- Loading branch information
1 parent
e52ec88
commit c4cc602
Showing
2 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ MAINTAINER Bart Cox <[email protected]> | |
# Run build without interactive dialogue | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Set required environmental variables for the working setup. | ||
ENV GLOO_SOCKET_IFNAME=eth0 | ||
ENV TP_SOCKET_IFNAME=eth0 | ||
|
||
|
@@ -19,7 +20,9 @@ RUN apt-get update \ | |
|
||
# Copy the current folder to the working directory | ||
ADD setup.py requirements.txt ./ | ||
RUN python3 -m pip install -r requirements.txt | ||
|
||
# Use cache for pip, otherwise we repeatedly pull from repository | ||
RUN --mount=type=cache,target=/root/.cache/pip python3 -m pip install -r requirements.txt | ||
|
||
ADD configs configs | ||
|
||
|
@@ -28,13 +31,5 @@ ADD fltk fltk | |
# Install newest version of library | ||
RUN python3 -m setup install | ||
|
||
|
||
|
||
# Expose the container's port to the host OS | ||
EXPOSE 5000 | ||
|
||
# Run command by default for the executing container | ||
# CMD ["python3", "/opt/Generatrix/rpc_parameter_server.py", "--world_size=2", "--rank=0", "--master_addr=192.168.144.2"] | ||
|
||
#CMD python3 /opt/federation-lab/rpc_parameter_server.py --world_size=$WORLD_SIZE --rank=$RANK --master_addr=10.5.0.11 | ||
CMD python3 /opt/federation-lab/federated_learning.py $RANK $WORLD_SIZE 10.5.0.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters