Compare commits

..

1 Commits

Author SHA1 Message Date
44b4b92a8d
pinned to version of live system 2019-11-17 11:04:58 +01:00
2 changed files with 30 additions and 26 deletions

View File

@ -1,38 +1,28 @@
FROM node:13.1.0-alpine FROM node:5.6.0
MAINTAINER Stefan Hoffmann <stefan@freifunk-troisdorf.de>, Nils Jakobi <nils@freifunk-troisdorf.de> MAINTAINER Stefan Hoffmann <stefan@freifunk-troisdorf.de>
# add community repo
RUN echo @community http://dl-cdn.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories
# Install Yarn # Install Yarn
RUN apk add \ RUN apt-get update && apt-get install -y curl apt-transport-https && \
build-base \ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
gcc \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
git \ apt-get update && apt-get install -y yarn
# libffi-dev \
ruby \
ruby-dev \
yarn@community
# Install Grunt # Install Grunt
RUN npm install --global grunt-cli && \ RUN npm install --global grunt-cli && \
apt-get install -y ruby ruby-dev && \
gem install --no-rdoc --no-ri sass -v 3.4.22 && \ gem install --no-rdoc --no-ri sass -v 3.4.22 && \
gem install --no-rdoc --no-ri compass gem install --no-rdoc --no-ri compass
# Clone Meshviewer # Build Meshviewer
WORKDIR /tmp/meshviewer #RUN git clone https://github.com/Freifunk-Troisdorf/meshviewer.git /opt/meshviewer/
RUN git clone https://github.com/Freifunk-Troisdorf/meshviewer.git /tmp/meshviewer
RUN ls -alh /tmp/meshviewer
RUN npm install gulp@4 -D #RUN npm install gulp -D && \
RUN yarn && \ # yarn && \
yarn global add gulp-cli # yarn global add gulp-cli
# create supernode folders COPY start.sh /
RUN mkdir -p $(printf "/opt/meshviewer/build/data/tdf%d " {4..7}) RUN chmod +x /start.sh
# gulp this stuff and delete build environment ENTRYPOINT ["/start.sh"]
RUN gulp && \ #RUN gulp
cp -r /tmp/meshviewer/build* /opt/meshviewer/build && \
rm -rf /tmp/meshviewer

14
start.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
git clone https://github.com/Freifunk-Troisdorf/meshviewer.git /opt/tmp
cd /opt/tmp
npm install gulp -D
yarn
yarn global add gulp-cli
gulp
cp -r /opt/tmp/build/* /opt/meshviewer/build/
rm -r /opt/tmp
mkdir /opt/meshviewer/build/data
mkdir /opt/meshviewer/build/data/tdf4
mkdir /opt/meshviewer/build/data/tdf5
mkdir /opt/meshviewer/build/data/tdf6
mkdir /opt/meshviewer/build/data/tdf7