File tree 3 files changed +53
-0
lines changed
3 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM ubuntu
2
+ LABEL maintainer="Wassim DHIF <
[email protected] >"
3
+
4
+ ENV NPROC=1
5
+
6
+ RUN apt-get update \
7
+ && apt-get install -y --no-install-recommends software-properties-common apt-utils \
8
+ && add-apt-repository ppa:openmw/openmw \
9
+ && apt-get update \
10
+ && apt-get install -y --no-install-recommends openmw openmw-launcher \
11
+ && apt-get install -y --no-install-recommends git build-essential cmake \
12
+ libopenal-dev libopenscenegraph-dev libbullet-dev libsdl2-dev \
13
+ libmygui-dev libunshield-dev liblz4-dev libtinyxml-dev libqt5opengl5-dev \
14
+ libboost-filesystem-dev libboost-program-options-dev libboost-iostreams-dev \
15
+ libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev \
16
+ librecastnavigation-dev libluajit-5.1-dev
17
+
18
+ COPY build.sh /build.sh
19
+
20
+ RUN mkdir /openmw
21
+ WORKDIR /openmw
22
+
23
+ ENTRYPOINT ["/build.sh"]
Original file line number Diff line number Diff line change
1
+ # Build OpenMW using Docker
2
+
3
+ ## Build Docker image
4
+
5
+ Replace ` LINUX_VERSION ` with the Linux distribution you wish to use.
6
+ ```
7
+ docker build -f Dockerfile.LINUX_VERSION -t openmw.LINUX_VERSION .
8
+ ```
9
+
10
+ ## Build OpenMW using Docker
11
+
12
+ Labeling systems like SELinux require that proper labels are placed on volume content mounted into a container.
13
+ Without a label, the security system might prevent the processes running inside the container from using the content.
14
+ The Z option tells Docker to label the content with a private unshared label.
15
+ ```
16
+ docker run -v /path/to/openmw:/openmw:Z -e NPROC=2 -it openmw.LINUX_VERSION
17
+ ```
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -xe
4
+
5
+ # Creating build directory...
6
+ mkdir -p build
7
+ cd build
8
+
9
+ # Running CMake...
10
+ cmake ../
11
+
12
+ # Building with $NPROC CPU...
13
+ make -j $NPROC
You can’t perform that action at this time.
0 commit comments