-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (32 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM fedora:38
ARG GIT_HEAD=development
ARG BUILD_CONFIG=profile
ARG USER_NAME=user1
ARG PROJ_NAME=proj
ENV PROJ_PATH=/home/$USER_NAME/O3DE/Projects/$PROJ_NAME
ENV O3DE_PACKAGE_DIR=/home/$USER_NAME/o3de-packages
RUN dnf update -y
RUN dnf install -y openssl cmake clang ninja-build git git-lfs openssl-devel libunwind-devel libzstd-devel which \
zlib-devel libxkbcommon-x11-devel libcurl-devel fontconfig-devel libxcb-devel mesa-libGLU-devel \
qt5-qtbase-devel lldb lld
RUN useradd -ms /bin/bash $USER_NAME
USER $USER_NAME
WORKDIR /home/$USER_NAME
ADD build.sh .
RUN git clone https://github.com/o3de/o3de.git
WORKDIR o3de
RUN git checkout $GIT_HEAD
ADD Configurations_clang.patch .
ADD Configurations_linux_x86_64.patch .
RUN git apply Configurations_clang.patch
RUN git apply Configurations_linux_x86_64.patch
RUN mkdir $O3DE_PACKAGE_DIR
RUN git lfs pull
RUN python/get_python.sh
RUN cmake -B build/linux -S . -G "Ninja Multi-Config" -DLY_3RDPARTY_PATH=$O3DE_PACKAGE_DIR
RUN cmake --build build/linux --target Editor --config $BUILD_CONFIG
RUN scripts/o3de.sh register --this-engine
RUN scripts/o3de.sh create-project --project-path $PROJ_PATH
WORKDIR $PROJ_PATH
RUN cmake -B build/linux -S . -G "Ninja Multi-Config"
RUN cmake --build build/linux --target $PROJ_NAME.GameLauncher Editor --config $BUILD_CONFIG