-
Notifications
You must be signed in to change notification settings - Fork 62
/
Dockerfile
33 lines (23 loc) · 864 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Base image to start with
FROM ubuntu:20.04
MAINTAINER Bart Cox <[email protected]>
# Run build without interactive dialogue
ARG DEBIAN_FRONTEND=noninteractive
# Define the working directory of the current Docker container
WORKDIR /opt/federation-lab
# Update the Ubuntu software repository
RUN apt-get update \
&& apt-get install -y vim curl python3 python3-pip net-tools iproute2
# Copy the current folder to the working directory
COPY setup.py ./
COPY requirements.txt ./
# Install all required packages for the generator
RUN python3 -m pip install -r requirements.txt
ENV GLOO_SOCKET_IFNAME=$NIC
ENV TP_SOCKET_IFNAME=$NIC
# Expose the container's port to the host OS
EXPOSE 5000
COPY fltk ./fltk
COPY configs ./configs
COPY experiments ./experiments
CMD python3 -m fltk remote $EXP_CONFIG $RANK --nic=$NIC --host=$MASTER_HOSTNAME $OPTIONAL_PARAMS