push init

main
root 2025-03-04 12:20:36 +01:00
commit 082fd753b3
12 changed files with 133 additions and 0 deletions

View File

@ -0,0 +1,27 @@
from debian:bullseye
run apt update && apt install -y \
gcc \
binutils \
build-essential \
gcc-mingw-w64-x86-64-win32 \
make \
git \
wget
run apt install -y p7zip-full
run cd /root && git clone https://github.com/Ne0nd0g/merlin-agent-dll
workdir /root/merlin-agent-dll
run wget "https://go.dev/dl/go1.24.0.linux-amd64.tar.gz"
run rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
ENV PATH="$PATH:/usr/local/go/bin"
# On build une première fois, pour télécharger les resources nécessaires
run make distro
copy ./resources/make.sh .
run mkdir /data
VOLUME /data
CMD [ "/bin/bash", "make.sh" ]

3
merlin-agent-dll/build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t merlinagentdll .

View File

@ -0,0 +1,12 @@
#!/bin/bash
cp /data/Makefile . 2>/dev/null
make default
IFS=$'\n'
for f in $(find ./bin/ -iname "*\.dll$*" -type f);do
cp "$f" /data/
done
cp Makefile /data/

3
merlin-agent-dll/run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker run --rm -v $(pwd)/data:/data merlinagentdll

26
merlin-agent/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
from debian:bullseye
run apt update && apt install -y \
gcc \
binutils \
build-essential \
make \
git \
wget
run cd /root && git clone https://github.com/Ne0nd0g/merlin-agent
workdir /root/merlin-agent
run wget "https://go.dev/dl/go1.24.0.linux-amd64.tar.gz"
run rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
ENV PATH="$PATH:/usr/local/go/bin"
# On build une première fois, pour télécharger les resources nécessaires
run make all
copy ./resources/make.sh .
run mkdir /data
VOLUME /data
CMD [ "/bin/bash", "make.sh" ]

3
merlin-agent/build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t merlinagent .

12
merlin-agent/resources/make.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
cp /data/Makefile . 2>/dev/null
make all
IFS=$'\n'
for f in $(find ./bin/ -type f);do
cp "$f" /data/
done
cp Makefile /data/

3
merlin-agent/run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker run --rm -v $(pwd)/data:/data merlinagent

26
merlin-server/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
from debian:bullseye
run apt update && apt install -y \
gcc \
binutils \
build-essential \
make \
git \
wget
run cd /root && git clone https://github.com/Ne0nd0g/merlin
workdir /root/merlin
run wget "https://go.dev/dl/go1.24.0.linux-amd64.tar.gz"
run rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
ENV PATH="$PATH:/usr/local/go/bin"
# On build une première fois, pour télécharger les resources nécessaires
run make
copy ./resources/make.sh .
run mkdir /data
VOLUME /data
CMD [ "/bin/bash", "make.sh" ]

3
merlin-server/build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t merlinserver .

12
merlin-server/resources/make.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
cp /data/Makefile . 2>/dev/null
make distro
IFS=$'\n'
for f in $(find ./data/temp/ -iname "*merlinServer*" -type f);do
cp "$f" /data/
done
cp Makefile /data/

3
merlin-server/run.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker run --rm -v $(pwd)/data:/data merlinserver