mirror of https://github.com/MISP/misp-docker
Fix indent and spaces
parent
61b93ab0e3
commit
14129387c4
|
@ -23,22 +23,22 @@ FROM "${DOCKER_HUB_PROXY}python:3.11-slim-bullseye" as python-build
|
||||||
WORKDIR /srv
|
WORKDIR /srv
|
||||||
|
|
||||||
RUN <<-EOF
|
RUN <<-EOF
|
||||||
if [ ! -z ${MODULES_COMMIT} ]; then
|
if [ ! -z ${MODULES_COMMIT} ]; then
|
||||||
git clone https://github.com/MISP/misp-modules.git /srv/misp-modules && cd /srv/misp-modules && git checkout ${MODULES_COMMIT}
|
git clone https://github.com/MISP/misp-modules.git /srv/misp-modules && cd /srv/misp-modules && git checkout ${MODULES_COMMIT}
|
||||||
else
|
else
|
||||||
git clone --branch ${MODULES_TAG} --depth 1 https://github.com/MISP/misp-modules.git /srv/misp-modules
|
git clone --branch ${MODULES_TAG} --depth 1 https://github.com/MISP/misp-modules.git /srv/misp-modules
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /srv/misp-modules
|
cd /srv/misp-modules
|
||||||
echo "pyeti" >> REQUIREMENTS
|
echo "pyeti" >> REQUIREMENTS
|
||||||
echo "greynoise" >> REQUIREMENTS
|
echo "greynoise" >> REQUIREMENTS
|
||||||
echo "git+https://github.com/abenassi/Google-Search-API" >> REQUIREMENTS
|
echo "git+https://github.com/abenassi/Google-Search-API" >> REQUIREMENTS
|
||||||
sed -i 's|.*apiosintDS.*|apiosintDS==2.0.1|g' REQUIREMENTS
|
sed -i 's|.*apiosintDS.*|apiosintDS==2.0.1|g' REQUIREMENTS
|
||||||
# let apiosintDS decide since misp-modules doesn't actually use this package anyway
|
# let apiosintDS decide since misp-modules doesn't actually use this package anyway
|
||||||
sed -i '/validators.*/d' REQUIREMENTS
|
sed -i '/validators.*/d' REQUIREMENTS
|
||||||
sed -i 's/-e //g' REQUIREMENTS
|
sed -i 's/-e //g' REQUIREMENTS
|
||||||
pip3 wheel -r REQUIREMENTS --no-cache-dir -w /wheels/
|
pip3 wheel -r REQUIREMENTS --no-cache-dir -w /wheels/
|
||||||
rm -rf /srv/misp-modules
|
rm -rf /srv/misp-modules
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
RUN <<-EOF
|
RUN <<-EOF
|
||||||
|
@ -47,6 +47,7 @@ EOF
|
||||||
if [ ! -z ${LIBFAUP_COMMIT} ]; then
|
if [ ! -z ${LIBFAUP_COMMIT} ]; then
|
||||||
git checkout ${LIBFAUP_COMMIT}
|
git checkout ${LIBFAUP_COMMIT}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd /srv/faup/build
|
cd /srv/faup/build
|
||||||
cmake -G "Ninja" ../
|
cmake -G "Ninja" ../
|
||||||
ninja
|
ninja
|
||||||
|
|
Loading…
Reference in New Issue