Skip to content

Instruction for building attachment for docker environment #70

Description

@Bouby308

The current swag-attachment 1.1.35 is based on swag:5.6.0-ls460 which has some issues with crowdsec integration with swag. I tried to build the attachment for a newer version of swag (i.e. 5.6.0-ls463) following the guide for compiling for existing server in README. However, I am getting error "not binary compatible in /etc/nginx/nginx.conf:1" when running swag with the attachment. Are there any guides for building the attachment for docker environment?

Tried building with the following commands directly in swag 5.6.0-ls460:

apk add pcre-dev libxml2-dev zlib-dev openssl-dev geoip-dev cmake linux-headers libxslt-dev gd-dev perl-dev make g++
nginx -V &> /tmp/nginx.ver
git clone https://github.com/openappsec/attachment.git
cd attachment
./attachments/nginx/ngx_module/nginx_version_configuration.sh --conf /tmp/nginx.ver build_out
cmake -DCMAKE_INSTALL_PREFIX=build_out .
make install
make package
./build_out/install-cp-nano-nginx-attachment.sh --install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions