Last active
February 8, 2019 23:38
-
-
Save kazuhisya/98e8f480d5edfcf50cc52755c352ebb0 to your computer and use it in GitHub Desktop.
boostnote rpm test build env.
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
#!/bin/sh | |
time docker build -t local/boostnote . | |
docker run -it --name boostnote local/boostnote true | |
docker cp boostnote:/boostnote/dist/ . | |
docker rm boostnote |
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
# vi: set ft=dockerfile : | |
FROM docker.io/ubuntu:16.04 | |
MAINTAINER Kazuhisa Hara <[email protected]> | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very good work, sir. This functioned without error. Good idea using docker for the build environment.