Compare commits

...

1 Commits

Author SHA1 Message Date
cc6dab9066
WIP on new devel version 2019-11-17 10:37:29 +01:00
2 changed files with 26 additions and 30 deletions

View File

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

View File

@ -1,14 +0,0 @@
#!/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