mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
Revert to medpot (75a2e6134cf926c35b6017d62542274434c87388) from 2 years ago since current master is broken.
This commit is contained in:
parent
8bbfe7ac62
commit
e94f70a15f
1 changed files with 12 additions and 15 deletions
|
@ -8,29 +8,27 @@ RUN apk -U --no-cache add \
|
|||
g++ && \
|
||||
#
|
||||
# Setup go, build medpot
|
||||
export GOPATH=/tmp && \
|
||||
export GOPATH=/opt/go/ && \
|
||||
export GO111MODULE=off && \
|
||||
cd /tmp && \
|
||||
mkdir -p /opt/go/src && \
|
||||
cd /opt/go/src && \
|
||||
git clone https://github.com/schmalle/medpot && \
|
||||
cd medpot && \
|
||||
git checkout 75a2e6134cf926c35b6017d62542274434c87388 && \
|
||||
cd .. && \
|
||||
go get -d -v github.com/davecgh/go-spew/spew && \
|
||||
go get -d -v github.com/go-ini/ini && \
|
||||
go get -d -v github.com/mozillazg/request && \
|
||||
go get -d -v go.uber.org/zap && \
|
||||
go get -d -v github.com/s9rA16Bf4/ArgumentParser/go/arguments && \
|
||||
go get -d -v github.com/s9rA16Bf4/notify_handler/go/notify && \
|
||||
# git clone https://github.com/schmalle/medpot && \
|
||||
git clone https://github.com/s9rA16Bf4/medpot && \
|
||||
cd medpot && \
|
||||
# git checkout dd9833786bb56cd40c11dfb15e0dd57298e249e8 && \
|
||||
git checkout 0feb786cd8a7616498ba9749dbfda24b5dbd363e && \
|
||||
sed -i s/"ews = true"/"ews = false"/g template/ews.cfg && \
|
||||
go build -o medpot go/medpot.go go/logo.go && \
|
||||
cp dist/etc/ews.cfg /etc/ && \
|
||||
go build medpot && \
|
||||
#
|
||||
# Setup medpot
|
||||
mkdir -p /etc/medpot \
|
||||
/opt/medpot \
|
||||
mkdir -p /opt/medpot \
|
||||
/var/log/medpot && \
|
||||
cp medpot /opt/medpot && \
|
||||
cp ./template/* /etc/medpot && \
|
||||
cp /opt/go/src/medpot/template/*.xml /opt/medpot/ && \
|
||||
#
|
||||
# Setup user, groups and configs
|
||||
addgroup -g 2000 medpot && \
|
||||
|
@ -44,8 +42,7 @@ RUN apk -U --no-cache add \
|
|||
g++ && \
|
||||
rm -rf /var/cache/apk/* \
|
||||
/opt/go \
|
||||
/root/dist \
|
||||
/tmp
|
||||
/root/dist
|
||||
#
|
||||
# Start medpot
|
||||
WORKDIR /opt/medpot
|
||||
|
|
Loading…
Reference in a new issue