-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 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,40 @@ | ||
FROM ubuntu:rolling | ||
|
||
MAINTAINER Jens Renè Suckert <jens.suckert@gmail.com> | ||
|
||
RUN apt-get -y update && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
python \ | ||
git \ | ||
cmake \ | ||
qt5-default \ | ||
libqt5charts5-dev \ | ||
libqt5opengl5-dev \ | ||
--reinstall ca-certificates | ||
|
||
RUN export uid=1000 gid=1000 && \ | ||
mkdir -p /home/developer && \ | ||
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \ | ||
echo "developer:x:${uid}:" >> /etc/group && \ | ||
chown ${uid}:${gid} -R /home/developer | ||
|
||
# echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \ | ||
# chmod 0440 /etc/sudoers.d/developer && \ | ||
|
||
USER developer | ||
ENV HOME /home/developer | ||
|
||
RUN cd $HOME && \ | ||
git clone https://github.com/spirit-code/spirit.git | ||
|
||
RUN cd $HOME/spirit && \ | ||
git checkout develop | ||
|
||
RUN cd $HOME/spirit && \ | ||
./cmake.sh | ||
|
||
RUN cd $HOME/spirit && \ | ||
./make.sh -j2 | ||
|
||
CMD cd $HOME/spirit && ./spirit |