-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add guidelines for running Saraswati on Docker
- Loading branch information
Showing
5 changed files
with
66 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
* | ||
|
||
!saraswati | ||
!setup.py | ||
!LICENSE | ||
!README.rst | ||
!CHANGES.rst | ||
!MANIFEST.in |
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Docker build file for Saraswati development. | ||
# | ||
# Invoke like: | ||
# | ||
# docker build --file=dockerfiles/develop.Dockerfile --tag=saraswati-develop . | ||
# | ||
FROM amd64/debian:bullseye-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install --yes \ | ||
libgstreamer1.0 gstreamer1.0-tools gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good \ | ||
python3 python3-pip python3-gst-1.0 python3-gi python3-tz \ | ||
alsa-utils mkvtoolnix flac wavpack |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Docker build file for Saraswati runtime. | ||
# | ||
# Invoke like: | ||
# | ||
# docker build --file=dockerfiles/runtime.Dockerfile --tag=saraswati-runtime . | ||
# | ||
FROM amd64/debian:bullseye-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install --yes \ | ||
libgstreamer1.0 gstreamer1.0-tools gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good \ | ||
python3 python3-pip python3-gst-1.0 python3-gi python3-tz \ | ||
alsa-utils mkvtoolnix flac wavpack | ||
|
||
# Create /etc/saraswati | ||
RUN mkdir -p /etc/saraswati | ||
|
||
# Add user "saraswati" | ||
RUN groupadd -r saraswati && useradd -r -g saraswati saraswati | ||
RUN chown -R saraswati:saraswati /etc/saraswati | ||
|
||
# Install saraswati | ||
COPY . /src | ||
RUN pip install /src | ||
|
||
# Make process run as "saraswati" user | ||
USER saraswati | ||
|
||
# Invoke program | ||
CMD saraswati |