Skip to content

Commit

Permalink
Merge branch 'docker' of github.com:cgeller/scenario_runner into docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeller committed Dec 18, 2023
2 parents db9f7b3 + 25c962a commit 673cc6f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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" ]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 673cc6f

Please sign in to comment.