Skip to content

Commit

Permalink
Rework towards launch on Kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
JMGaljaard committed Mar 28, 2022
1 parent 667b2c0 commit e2338bc
Show file tree
Hide file tree
Showing 26 changed files with 76 additions and 595 deletions.
24 changes: 7 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,42 +1,32 @@
# Base image to start with
FROM ubuntu:20.04

# Who maintains this DockerFile
MAINTAINER Bart Cox <b.a.cox@tudelft.nl>
MAINTAINER Jeroen Galjaard <J.M.Galjaard-1@student.tudelft.nl>

# Run build without interactive dialogue
ARG DEBIAN_FRONTEND=noninteractive

# Set required environmental variables for the working setup.
# Set environment variables for GLOO and TP (needed for RPC calls)
ENV GLOO_SOCKET_IFNAME=eth0
ENV TP_SOCKET_IFNAME=eth0

# Define the working directory of the current Docker container
WORKDIR /opt/federation-lab

# Update the Ubuntu software repository
# Update the Ubuntu software repository and fetch packages
RUN apt-get update \
&& apt-get install -y vim curl python3 python3-pip net-tools iproute2

#COPY data/ ./data
#COPY default_models ./default_models
# Copy the current folder to the working directory
ADD setup.py requirements.txt ./

# Use cache for pip, otherwise we repeatedly pull from repository
ADD setup.py requirements.txt ./
RUN --mount=type=cache,target=/root/.cache/pip python3 -m pip install -r requirements.txt

ADD configs configs

ADD fltk fltk
ADD scripts scripts


# Install newest version of library
RUN python3 -m setup install

# Expose the container's port to the host OS
# Expose default port 5000 to the host OS.
EXPOSE 5000


# Update relevant runtime configuration for experiment
COPY cloud_configs/cloud_experiment.yaml configs/cloud_config.yaml
3 changes: 2 additions & 1 deletion charts/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
This chart was created by Kompose
# FLTK Helm charts

35 changes: 0 additions & 35 deletions cloud_configs/cloud_experiment.yaml

This file was deleted.

7 changes: 5 additions & 2 deletions configs/example_cloud_experiment.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@
},
"client": {
"prefix": "client",
"tensorboard_active": true
"tensorboard_active": false
}
},
"execution_config": {
"experiment_prefix": "cloud_experiment",
"tensorboard_active": true,
"cuda": false,
"tensorboard": {
"active": true,
"record_dir": true
},
"net": {
"save_model": false,
"save_temp_model": false,
Expand Down
21 changes: 0 additions & 21 deletions deploy/templates/client_stub_default.yml

This file was deleted.

21 changes: 0 additions & 21 deletions deploy/templates/client_stub_medium.yml

This file was deleted.

21 changes: 0 additions & 21 deletions deploy/templates/client_stub_slow.yml

This file was deleted.

23 changes: 0 additions & 23 deletions deploy/templates/system_stub.yml

This file was deleted.

113 changes: 0 additions & 113 deletions examples/change_world_size_gcp.py

This file was deleted.

Loading

0 comments on commit e2338bc

Please sign in to comment.