Skip to content
Snippets Groups Projects
Verified Commit 360ada4a authored by micah's avatar micah :speech_balloon:
Browse files

Create initial Dockerfile for the shapeshifter/openvpn container.

This needs buster as a build environment, or the go libs are too old. We also
need to checkout the commit that actually builds.

At the moment, th is only has shapeshifter
parents
Branches
No related tags found
No related merge requests found
FROM debian:buster AS build
RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential pkg-config golang-go git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# don't need to do bash tricks to keep the layers small, as this is a multi-stage build
ENV GOPATH=/go
WORKDIR $GOPATH
RUN mkdir -p $GOPATH/src/github.com/OperatorFoundation && cd $GOPATH/src/github.com/OperatorFoundation/ && \
git clone https://github.com/OperatorFoundation/shapeshifter-dispatcher.git && \
cd shapeshifter-dispatcher && \
git reset --hard 3eee4e2869a783c6f3a5baef279406d82c063f23 && \
cd shapeshifter-dispatcher && go get .
#RUN go get -u github.com/OperatorFoundation/shapeshifter-dispatcher/shapeshifter-dispatcher
RUN strip $GOPATH/bin/shapeshifter-dispatcher
FROM registry.git.autistici.org/ai3/docker/chaperone-base
COPY --from=build /go/bin/shapeshifter-dispatcher /usr/local/bin/shapeshifter-dispatcher
COPY chaperone.d/ /etc/chaperone.d
ENTRYPOINT ["/usr/local/bin/chaperone"]
shapeshifter-dispatcher.service: {
command: "/usr/local/bin/shapeshifter-dispatcher -transparent -server -state /srv/leap/shapeshifter-state -orport ${RHOST}:${RPORT} -transports obfs4 -bindaddr obfs4-${LHOST}:${OBFSPORT} -logLevel ${LOGLEVEL} -enableLogging -extorport ${RHOST}:${EXTORPORT}",
exit_kills: true
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment