-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Issue #5904 [Docker ] Add an argument for the CARLA repository
- Loading branch information
Seb Mascha
committed
Nov 2, 2022
1 parent
bcf3471
commit fec0eca
Showing
3 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
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 | ||
USER ue4 | ||
WORKDIR /home/ue4 | ||
|
||
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 && \ | ||
cd /home/carla/carla && \ | ||
RUN cd /home/ue4 && \ | ||
git clone --depth 1 --branch $GIT_BRANCH "$GIT_REPO" && \ | ||
cd /home/ue4/carla && \ | ||
./Update.sh && \ | ||
make CarlaUE4Editor && \ | ||
make PythonAPI && \ | ||
make build.utils && \ | ||
make package && \ | ||
rm -r /home/carla/carla/Dist | ||
rm -r /home/ue4/carla/Dist | ||
|
||
WORKDIR /home/carla/carla | ||
WORKDIR /home/ue4/carla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters