mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-06 09:12:49 +01:00
33 lines
1.1 KiB
Bash
Executable File
33 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
|
|
git_ref_core=$(cd ./intelmq && git describe --long)
|
|
git_ref_manager=$(cd ./intelmq-manager && git describe --long)
|
|
git_ref_api=$(cd ./intelmq-api && git describe --long)
|
|
build_version=$(cd ./intelmq && git describe)
|
|
|
|
echo Building new IntelMQ-Image v$build_version
|
|
echo Core : $git_ref_core
|
|
echo Manager : $git_ref_manager
|
|
echo Api : $git_ref_api
|
|
echo Build_date: $build_date
|
|
|
|
# build static html
|
|
cd ./intelmq-manager \
|
|
&& python3 setup.py build \
|
|
&& cd ..
|
|
|
|
docker build --build-arg BUILD_DATE=$build_date \
|
|
--build-arg VCS_REF="IntelMQ-Manager=$git_ref_manager" \
|
|
--build-arg BUILD_VERSION=$build_version \
|
|
-f ./.docker/nginx/Dockerfile \
|
|
-t intelmq-nginx:latest .
|
|
|
|
docker build --build-arg BUILD_DATE=$build_date \
|
|
--build-arg VCS_REF="IntelMQ=$git_ref_core, IntelMQ-API=$git_ref_api, IntelMQ-Manager=$git_ref_manager" \
|
|
--build-arg BUILD_VERSION=$build_version \
|
|
-f ./.docker/intelmq-full/Dockerfile \
|
|
-t intelmq-full:latest .
|
|
|
|
cd ./intelmq-manager \
|
|
&& rm -r html \
|
|
&& cd .. |