Skip to content

Instantly share code, notes, and snippets.

@kazuhisya
Last active February 8, 2019 23:38
Show Gist options
  • Save kazuhisya/98e8f480d5edfcf50cc52755c352ebb0 to your computer and use it in GitHub Desktop.
Save kazuhisya/98e8f480d5edfcf50cc52755c352ebb0 to your computer and use it in GitHub Desktop.
boostnote rpm test build env.
#!/bin/sh
time docker build -t local/boostnote .
docker run -it --name boostnote local/boostnote true
docker cp boostnote:/boostnote/dist/ .
docker rm boostnote
# vi: set ft=dockerfile :
FROM docker.io/ubuntu:16.04
MAINTAINER Kazuhisa Hara <kazuhisya@gmail.com>
ENV TZ="JST-9" \
DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && \
apt-get install -y curl --no-install-recommends
RUN curl -OLk https://deb.nodesource.com/setup_7.x && bash ./setup_7.x
RUN apt-get install -y \
nodejs git rpm fakeroot --no-install-recommends
RUN npm install -g grunt-cli
RUN git clone --depth 1 https://github.com/BoostIO/Boostnote/ /boostnote &&\
useradd -m mock && chown -R mock.mock /boostnote
USER mock
WORKDIR /boostnote
RUN npm install
RUN grunt build
@redeemed2011
Copy link

Very good work, sir. This functioned without error. Good idea using docker for the build environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment