9 changed files with 217 additions and 50 deletions
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
# Spreed WebRTC server. |
||||
# |
||||
# To execute it install docker and then run 'sudo docker build .' |
||||
# |
||||
FROM ubuntu:trusty |
||||
MAINTAINER Simon Eisenmann <simon@struktur.de> |
||||
|
||||
# Set locale. |
||||
RUN locale-gen --no-purge en_US.UTF-8 |
||||
ENV LC_ALL en_US.UTF-8 |
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive |
||||
|
||||
# Base system |
||||
RUN apt-get update -q |
||||
|
||||
# Base build dependencies. |
||||
RUN apt-get install -qy golang nodejs build-essential git mercurial automake autoconf |
||||
|
||||
# Add and build Spreed WebRTC server. |
||||
ADD . /srv/spreed-webrtc |
||||
WORKDIR /srv/spreed-webrtc |
||||
RUN ./autogen.sh |
||||
RUN ./configure |
||||
RUN make pristine && make |
||||
|
||||
# Create default config file. |
||||
RUN cp -v /srv/spreed-webrtc/server.conf.in /srv/spreed-webrtc/server.conf && \ |
||||
sed -i 's|listen = 127.0.0.1:8080|listen = 0.0.0.0:8080|' /srv/spreed-webrtc/server.conf && \ |
||||
sed -i 's|;root = .*|root = /srv/spreed-webrtc|' /srv/spreed-webrtc/server.conf |
||||
|
||||
# Allow to mount. |
||||
VOLUME /srv/spreed-webrtc |
||||
|
||||
# Tell about our service. |
||||
EXPOSE 8080 |
||||
|
||||
# Define entry point. |
||||
ENTRYPOINT ["/srv/spreed-webrtc/spreed-webrtc-server", "-c /srv/spreed-webrtc/server.conf"] |
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
#
|
||||
# Spreed WebRTC.
|
||||
# Copyright (C) 2013-2014 struktur AG
|
||||
#
|
||||
# This file is part of Spreed WebRTC.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
SASSFLAGS = --style=compressed --no-cache |
||||
AUTOPREFIXER_BROWSER_SUPPORT := "> 1%, last 2 versions, Firefox ESR, Opera 12.1" |
||||
STATIC = ../../static |
||||
|
||||
styles: |
||||
$(MKDIR_P) $(STATIC)/css |
||||
$(SASS) --compass --scss $(SASSFLAGS) \
|
||||
$(CURDIR)/main.scss:$(STATIC)/css/main.min.css |
||||
$(AUTOPREFIXER) --browsers $(AUTOPREFIXER_BROWSER_SUPPORT) $(STATIC)/css/main.min.css |
||||
$(SASS) --compass --scss $(SASSFLAGS) \
|
||||
$(CURDIR)/bootstrap.scss:$(STATIC)/css/bootstrap.min.css |
||||
$(SASS) --compass --scss $(SASSFLAGS) \
|
||||
$(CURDIR)/font-awesome.scss:$(STATIC)/css/font-awesome.min.css |
||||
|
||||
styleshint: |
||||
$(FIND) ./ -maxdepth 1 -name "*.scss" -print0 | xargs -0 -n1 $(SASS) --compass --scss $(SASSFLAGS) -c |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue