mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 13:33:13 -07:00
Enhance Dockerfile
This commit is contained in:
parent
861c0dbaa3
commit
d7372394a2
3 changed files with 48 additions and 101 deletions
|
@ -1,16 +1,6 @@
|
||||||
# Run chiaki in a container
|
|
||||||
# xhost +"local:docker@"
|
|
||||||
# docker run -v $HOME/chiaki:/home/ps4/.local/share/Chiaki \
|
|
||||||
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
||||||
# --net host \
|
|
||||||
# -e DISPLAY=$DISPLAY \
|
|
||||||
# --device /dev/snd \
|
|
||||||
# --name chiaki
|
|
||||||
# --rm \
|
|
||||||
# strubbl_chiaki
|
|
||||||
|
|
||||||
FROM alpine:3 AS builder
|
FROM utensils/opengl:19.0.8 AS builder
|
||||||
LABEL maintainer="Strubbl <dockerfile-chiaki@linux4tw.de>"
|
LABEL maintainer="chiaki-docker@florianmaerkl.de"
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||||
&& apk update \
|
&& apk update \
|
||||||
|
@ -22,11 +12,12 @@ RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/ap
|
||||||
openssl \
|
openssl \
|
||||||
opus-dev \
|
opus-dev \
|
||||||
protobuf \
|
protobuf \
|
||||||
py3-protobuf@testing \
|
# py3-protobuf@testing \ # Enable this when the OpenGL image updates alpine
|
||||||
qt5-qtbase \
|
qt5-qtbase \
|
||||||
qt5-qtmultimedia-dev \
|
qt5-qtmultimedia-dev \
|
||||||
qt5-qtsvg-dev \
|
qt5-qtsvg-dev \
|
||||||
sdl2-dev \
|
sdl2-dev \
|
||||||
|
&& pip3 install protobuf \
|
||||||
&& git clone https://github.com/thestr4ng3r/chiaki.git /app \
|
&& git clone https://github.com/thestr4ng3r/chiaki.git /app \
|
||||||
&& git submodule update --init \
|
&& git submodule update --init \
|
||||||
&& mkdir build \
|
&& mkdir build \
|
||||||
|
@ -36,7 +27,7 @@ RUN echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/ap
|
||||||
&& ./test/chiaki-unit \
|
&& ./test/chiaki-unit \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
FROM alpine:3
|
FROM utensils/opengl:19.0.8
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk --no-cache add \
|
&& apk --no-cache add \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
# Run chiaki in a container
|
|
||||||
# docker run -v $HOME/chiaki:/home/ps4/.local/share/Chiaki \
|
|
||||||
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
||||||
# --net host \
|
|
||||||
# -e DISPLAY=$DISPLAY \
|
|
||||||
# --device /dev/snd \
|
|
||||||
# --name chiaki
|
|
||||||
# --rm \
|
|
||||||
# strubbl_chiaki
|
|
||||||
|
|
||||||
FROM ubuntu:19.04 AS builder
|
|
||||||
LABEL maintainer="Strubbl <dockerfile-chiaki@linux4tw.de>"
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
|
||||||
WORKDIR /app
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
cmake \
|
|
||||||
git \
|
|
||||||
protobuf-compiler \
|
|
||||||
libavcodec-dev \
|
|
||||||
libavutil-dev \
|
|
||||||
libopus-dev \
|
|
||||||
libqt5svg5-dev \
|
|
||||||
libsdl2-dev \
|
|
||||||
libssl-dev \
|
|
||||||
python3 \
|
|
||||||
python3-distutils \
|
|
||||||
python3-protobuf \
|
|
||||||
qt5-default \
|
|
||||||
qtmultimedia5-dev \
|
|
||||||
&& git clone https://github.com/thestr4ng3r/chiaki.git /app \
|
|
||||||
&& git submodule update --init \
|
|
||||||
&& mkdir build \
|
|
||||||
&& cd build \
|
|
||||||
&& cmake .. \
|
|
||||||
&& make
|
|
||||||
|
|
||||||
FROM ubuntu:19.04
|
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y \
|
|
||||||
libavcodec58 \
|
|
||||||
libavutil56 \
|
|
||||||
libopus0 \
|
|
||||||
libqt5multimedia5 \
|
|
||||||
libqt5svg5 \
|
|
||||||
libsdl2-2.0-0 \
|
|
||||||
--no-install-recommends \
|
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
|
||||||
&& useradd -ms /bin/bash ps4
|
|
||||||
WORKDIR /home/ps4
|
|
||||||
USER ps4
|
|
||||||
COPY --from=builder /app/build/gui/chiaki .
|
|
||||||
VOLUME /home/ps4/.local/share/Chiaki
|
|
||||||
ENTRYPOINT ["/home/ps4/chiaki"]
|
|
||||||
|
|
13
scripts/docker-run.sh
Executable file
13
scripts/docker-run.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker run \
|
||||||
|
-v $HOME/.local/share/Chiaki:/home/ps4/.local/share/Chiaki \
|
||||||
|
-v $HOME/.config/Chiaki:/home/ps4/.config/Chiaki \
|
||||||
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||||
|
--net host \
|
||||||
|
-e DISPLAY=$DISPLAY \
|
||||||
|
--device /dev/snd \
|
||||||
|
--name chiaki \
|
||||||
|
--rm \
|
||||||
|
thestr4ng3r/chiaki
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue