diff --git a/docker/Dockerfile b/docker/Dockerfile index 669b63024..5fd176480 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,6 +1,24 @@ ARG UBUNTU_VERSION="22.04" +ARG CARLA_REMOTE_PATH="https://carla-releases.s3.eu-west-3.amazonaws.com/Linux/CARLA_0.9.13.tar.gz" + +############ PythonAPI ############ +FROM "ubuntu:${UBUNTU_VERSION}" as artifacts + +USER root +SHELL ["/bin/bash", "-c"] +ARG CARLA_REMOTE_PATH + +# Install wget +RUN apt-get update && \ + apt-get install -y \ + wget \ + && rm -rf /var/lib/apt/lists/* + +# Download and extract API +RUN wget -qO- "${CARLA_REMOTE_PATH}" | tar -xzv PythonAPI/carla ############ dependencies ############ +ARG UBUNTU_VERSION FROM "ubuntu:${UBUNTU_VERSION}" as dependencies USER root @@ -30,7 +48,7 @@ COPY . $SCENARIO_RUNNER_PATH RUN pip3 install -r $SCENARIO_RUNNER_PATH/requirements.txt # Copy over PythonAPI -#COPY --from=artifacts artifacts_ci/PythonAPI ${CARLA_API_PATH} +COPY --from=artifacts PythonAPI ${CARLA_API_PATH} # Recursively install PythonAPI requirements, keep version of first occurrence RUN cat $(find ${CARLA_API_PATH} -type f -name "requirements.txt") > /tmp/requirements_raw.txt \ @@ -61,4 +79,4 @@ WORKDIR ${WORKSPACE} COPY ./docker/entrypoint.sh / ENTRYPOINT [ "/entrypoint.sh" ] -CMD [ "python3", "scenario_runner_server.py" ] +CMD [ "python3", "scenario_runner.py", "--help" ] diff --git a/requirements.txt b/requirements.txt index 5f7a5194d..62d304cb5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,4 @@ matplotlib==3.7.2 six==1.16.0 simple-watchdog-timer==0.1.1 antlr4-python3-runtime==4.13.1 -graphviz=0.20.1 +graphviz==0.20.1