Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Dockerfile.compute_worker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8
FROM --platform=linux/amd64 python:3.8

# This makes output not buffer and return immediately, nice for seeing results in stdout
ENV PYTHONUNBUFFERED 1
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.compute_worker_gpu
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM python:3.8.1-buster
FROM --platform=linux/amd64 python:3.8.1-buster

# We need curl to get docker/nvidia-docker
RUN apt-get update && apt-get install curl wget -y

# This makes output not buffer and return immediately, nice for seeing results in stdout
ENV PYTHONUNBUFFERED 1

# Install a specific version of docker
RUN curl -sSL https://get.docker.com/ | sed 's/docker-ce/docker-ce=18.03.0~ce-0~debian/' | sh
# Install Docker
RUN apt-get update && curl -fsSL https://get.docker.com | sh

# nvidia-docker jazz
RUN curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | apt-key add -
Expand Down
2 changes: 1 addition & 1 deletion docker/compute_worker/compute_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ async def _run_program_directory(self, program_dir, kind, can_be_output=False):
with open(os.path.join(program_dir, metadata_path), 'r') as metadata_file:
metadata = yaml.load(metadata_file.read(), Loader=yaml.FullLoader)
logger.info(f"Metadata contains:\n {metadata}")
command = metadata.get("command")
command = metadata.get("command") if metadata is not None else None # in case the file exists but is empty
if not command and kind == "ingestion":
raise SubmissionException("Program directory missing 'command' in metadata")
elif not command:
Expand Down