Compare commits

...

3 Commits

Author SHA1 Message Date
Sébastien Mascha 79435e4ff2
Merge 282e470e72 into 1ef3f55c95 2024-07-31 15:31:42 +02:00
Sébastien Mascha 282e470e72
Merge branch 'dev' into feature/5904-Use-custom-carla-repository-in-docker 2023-05-04 18:39:18 +02:00
Seb Mascha ca889bdbd1 Issue #5904 [Docker ] Add an argument for the CARLA repository 2022-11-02 12:20:04 -07:00
3 changed files with 8 additions and 8 deletions

View File

@ -66,10 +66,10 @@ The following command will use the image created in the previous step to build t
docker build -t carla -f Carla.Dockerfile .
```
If you would like to build a specific branch or tag of the CARLA repository, run the following command:
If you would like to build a specific CARLA repository (defaulted to https://github.com/carla-simulator/carla.git), a branch or tag (defaulted to master), run the following command:
```sh
docker build -t carla -f Carla.Dockerfile . --build-arg GIT_BRANCH=<branch_or_tag_name>
docker build -t carla -f Carla.Dockerfile . --build-arg GIT_BRANCH=<branch_or_tag_name> --build-arg GIT_REPO=<repo_url>
```
---

View File

@ -1,13 +1,13 @@
FROM carla-prerequisites:latest
ARG GIT_BRANCH
ARG GIT_BRANCH=master
ARG GIT_REPO=https://github.com/carla-simulator/carla.git
USER carla
WORKDIR /home/carla
RUN cd /home/carla/ && \
if [ -z ${GIT_BRANCH+x} ]; then git clone --depth 1 https://github.com/carla-simulator/carla.git; \
else git clone --depth 1 --branch $GIT_BRANCH https://github.com/carla-simulator/carla.git; fi && \
RUN cd /home/carla && \
git clone --depth 1 --branch $GIT_BRANCH "$GIT_REPO" && \
cd /home/carla/carla && \
./Update.sh && \
make CarlaUE4Editor && \

View File

@ -72,10 +72,10 @@ docker build -t carla -f Carla.Dockerfile .
## Other useful information
You can use a specific repository **branch** or **tag** from our repository, using:
You can use a specific **repository** and a **branch** or **tag** from our repository, using:
```
docker build -t carla -f Carla.Dockerfile . --build-arg GIT_BRANCH=branch_name
docker build -t carla -f Carla.Dockerfile . --build-arg GIT_BRANCH=branch_name --build-arg GIT_REPO=https://github.com/carla-simulator/carla.git
```
Clean up the intermediate images from the build (keep the ue4-source image so you can use it for full rebuilds)