This buildpack aims at installing a Harfang agent in app on Scalingo and let you configure it at your convenance.
Add this buildpack environment variable to your Scalingo application to install the Harfang
agent:
BUILDPACK_URL=https://github.com/MTES-MCT/harfang-buildpack
In your root directory app code, add Procfile with:
worker: hurukai_agent
Default version HARFANG_VERSION
is always latest
found in hurukai api.
You must set these vars in scalingo app admin console2:
HURUKAI_HOST=
HURUKAI_PROTOCOL=https
HURUKAI_PORT=
HURUKAI_API_URL=
HURUKAI_API_TOKEN=
HURUKAI_HLAB_TOKEN=
Environment variables are set in a .env
file. You copy the sample one:
cp .env.sample .env
Run an interactive docker scalingo stack 1:
docker run --name harfang -it -v "$(pwd)"/.env:/env/.env -v "$(pwd)":/buildpack scalingo/scalingo-22:latest bash
And test in it step by step in order:
bash buildpack/bin/detect
bash buildpack/bin/env.sh /env/.env /env
bash buildpack/bin/compile /build /cache /env
mv /build/vendor/hurukai /app
bash /build/.profile.d/000_hurukai.sh
bash buildpack/bin/release
Or all in one:
docker build .