-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
57 lines (38 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Set up a docker machine that has all the tools to build the speck
FROM ubuntu
MAINTAINER Cullen Jennings <fluffy@iii.ca>
# set up basic build machine
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y build-essential
RUN apt-get install -y python-pip python-dev
RUN pip install --upgrade pip
RUN apt-get install -y default-jre default-jdk
RUN apt-get install -y rubygems ruby-full ruby-json
RUN gem install bundle
# setup go
RUN apt-get install -y golang git
RUN mkdir /go
ENV PATH /go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV GOPATH /go
RUN apt-get install -y nodejs npm
RUN ln -s `which nodejs` /usr/bin/node
RUN apt-get -y install tcsh
RUN apt-get install -y libxml2-dev libxslt-dev
RUN pip install xml2rfc
RUN gem install kramdown-rfc2629
RUN gem update
# install tidy to relow XML
RUN apt-get install -y tidy
# there must be a better way to intall mmark
RUN go get github.com/miekg/mmark
RUN ( cd /go/src/github.com/miekg/mmark/mmark ; make ; go install )
RUN npm install -g raml2html
RUN npm install -g jayschema
RUN npm install -g json
RUN npm install -g ramllint
RUN go get -v github.com/spf13/hugo
RUN npm install -g aglio
VOLUME /work
WORKDIR /work
CMD [ "/usr/bin/make", "all" ]