Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# .dockerignore
#
# Created on Wed Nov 15 2023 by Florian Pfleiderer
#
# Copyright (c) 2023 TU Wien

# Ignore .github directory
.github

# Ignore build directory
build

# Ignore LICENSE.md file
LICENSE.md

# Ignore README.md file
README.md

# Ignore .gitignore file
.gitignore
47 changes: 47 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Dockerfile
#
# Created on Wed Nov 15 2023 by Florian Pfleiderer
#
# Copyright (c) 2023 TU Wien

FROM gcc:latest AS build

# Install necessary tools
RUN apt-get update && \
apt-get install -y \
build-essential \
cmake \
git

# Install dependencies
RUN apt-get update && \
apt-get install -y \
libgl1-mesa-dev \
libglfw3-dev \
libxinerama-dev \
libxcursor-dev \
libxi-dev \
libasound2-dev \
doxygen \
openssh-server \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /simplesynth

COPY . .

WORKDIR /simplesynth/build

RUN cmake .. && make

WORKDIR /simplesynth

# Configure SSH
# RUN mkdir /var/run/sshd
# RUN echo 'root:password' | chpasswd
# RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config

#expose ssh port
# EXPOSE 22

CMD [ "/bin/bash" ]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ Clone:
git clone https://stea.iue.tuwien.ac.at/CppProjects2023/GroupKProject
```
### Build
#### using docker
```
docker built -t simplesynth .
docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix simplesynth
```

If you want to run it on mac, see: https://medium.com/@nr817174/gui-containers-on-docker-running-graphical-applications-seamlessly-36e77925d0df

#### macos
```
mkdir build
Expand Down