Skip to content

Commit

Permalink
Select a base image according to the experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Aug 22, 2023
1 parent 15b174c commit fca2636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions reproserver/run/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
import os
import random
from reprounzip_docker import select_image
import shutil
import subprocess
import tempfile
Expand Down Expand Up @@ -59,9 +60,8 @@ async def _docker_run(self, run_info, bind_host):
# Make build directory
directory = tempfile.mkdtemp('rpz-run')

# TODO: Select base image from metadata
run_info['rpz_meta']['meta']['distribution']
image_name = 'ubuntu:22.04'
# Select base image from metadata
image_name = select_image(run_info['rpz_meta']['meta'])

try:
# Use a random directory in the container for our operations
Expand Down
2 changes: 1 addition & 1 deletion reprozip

0 comments on commit fca2636

Please sign in to comment.