docker full: install missing package for SDL2 mixer
[nit.git] / misc / docker / full / Dockerfile
1 # This is a full install of Nit on a debian base.
2 # Full because most dependencies are installed so that most tests can be run
3
4 FROM nitlang/nit:latest
5 MAINTAINER Jean Privat <jean@pryen.org>
6
7 # Dependencies for more libs and tests
8 RUN dpkg --add-architecture i386 \
9         && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
10                 # Packages needed for lib/
11                 libcurl4-openssl-dev \
12                 libegl1-mesa-dev \
13                 libevent-dev \
14                 libgles1-mesa-dev \
15                 libgles2-mesa-dev \
16                 libgtk-3-dev \
17                 libncurses5-dev \
18                 libpq-dev \
19                 libsdl-image1.2-dev \
20                 libsdl-ttf2.0-dev \
21                 libsdl1.2-dev \
22                 libsdl2-dev \
23                 libsdl2-image-dev \
24                 libsdl2-mixer-dev \
25                 libsqlite3-dev \
26                 libx11-dev \
27                 libxdg-basedir-dev \
28                 postgresql \
29                 # Packages needed for contrib, platforms and FFI
30                 ant \
31                 clang \
32                 default-jdk \
33                 file \
34                 inkscape \
35                 libopenmpi-dev \
36                 unzip \
37                 # Android
38                 libc6:i386 \
39                 libstdc++6:i386 \
40                 zlib1g:i386 \
41                 # TODO neo4j emscripten test_glsl_validation
42         && rm -rf /var/lib/apt/lists/*
43
44 # Install android sdk/ndk
45 RUN mkdir -p /opt \
46         && cd /opt \
47         # Android SDK
48         && curl https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz -o android-sdk-linux.tgz \
49         && tar xzf android-sdk-linux.tgz \
50         && rm android-sdk-linux.tgz \
51         && echo y | android-sdk-linux/tools/android update sdk -a --no-ui --filter \
52                 # Hardcode minimal known working things
53                 platform-tools,build-tools-22.0.1,android-22,android-10 \
54         # Android NDK
55         && curl http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip -o android-ndk.zip \
56         && unzip -q android-ndk.zip \
57         && ln -s android-ndk-r11c android-ndk \
58         && rm android-ndk.zip \
59         && printf "PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK\nexport PATH\n" >> "/etc/profile.d/android.sh"
60
61 # Setup environment variables
62 ENV ANDROID_HOME /opt/android-sdk-linux
63 ENV ANDROID_NDK /opt/android-ndk
64 ENV PATH $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK