mirror of
https://github.com/RoganDawes/P4wnP1_aloa.git
synced 2025-03-17 13:21:50 +01:00
Dockerfile to create a build image and test build of service/CLI/WebClient
This commit is contained in:
parent
f9dcc17eca
commit
95de406b72
33
build_support/Dockerfile
Normal file
33
build_support/Dockerfile
Normal file
@ -0,0 +1,33 @@
|
||||
FROM kalilinux/kali-rolling
|
||||
|
||||
WORKDIR /root
|
||||
RUN apt-get update && apt-get -y install git wget nano
|
||||
# install Go 1.12 instead of Kali bundled Go 1.13 (GopherJS needs 1.12)
|
||||
RUN wget https://dl.google.com/go/go1.12.16.linux-amd64.tar.gz
|
||||
RUN tar -C /usr/local -xzf go1.12.16.linux-amd64.tar.gz
|
||||
ENV PATH "$PATH:/usr/local/go/bin:/root/go/bin"
|
||||
RUN go get -u github.com/gopherjs/gopherjs
|
||||
# clone P4wnP1 master (has to be changed in order to use a different branch/tag)
|
||||
RUN git clone https://github.com/mame82/P4wnP1_aloa
|
||||
|
||||
# P4wnP1 webclient dependencies
|
||||
RUN go get -u github.com/johanbrandhorst/protobuf/...
|
||||
# manual population of go source tree, with dependencies of P4wnP1 webclient
|
||||
# using git clone.
|
||||
# This is really messy, but unfortunately GopherJS has no module support (dependency tracking)
|
||||
# At least this leaves room to modify "git clone" commands to grab proper branches,
|
||||
# in case this is required
|
||||
RUN mkdir -p /usr/local/go/src/github.com/mame82/
|
||||
RUN git clone https://github.com/mame82/hvue /usr/local/go/src/github.com/mame82/hvue
|
||||
RUN git clone https://github.com/mame82/mvuex /usr/local/go/src/github.com/mame82/mvuex
|
||||
# copy already cloned repo of P4wnP1 instead of cloning (assures same branch in Go
|
||||
# source tree)
|
||||
RUN cp -R P4wnP1_aloa/ /usr/local/go/src/github.com/mame82/
|
||||
|
||||
|
||||
# run a test build, otherwise the image could be used interactively
|
||||
# with build.sh as used below
|
||||
WORKDIR /root/P4wnP1_aloa/build_support
|
||||
RUN ./build.sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user