New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Dockerize wazuh-manager from github source #1014
Comments
i dont want to use deb file i want build and make from source |
i use this way: my Dockerfile_base Set environment variables to avoid interactive prompts during package installationENV DEBIAN_FRONTEND=noninteractive Update and upgrade packages, install required packages, and clean upRUN apt-get update Download and install CMakeRUN curl -OL http://packages.wazuh.com/utils/cmake/cmake-3.18.3.tar.gz && RUN echo "deb-src http://archive.ubuntu.com/ubuntu $(lsb_release -cs) main" >> /etc/apt/sources.list Set the working directoryWORKDIR /root Clear the environment variableENV DEBIAN_FRONTEND=` my Dockerfile is Set environment variables to avoid interactive prompts during package installationENV DEBIAN_FRONTEND=noninteractive Set environment variablesENV USER_LANGUAGE=en Create a directory for your installation scriptsRUN mkdir -p /srv Clone the Wazuh repository and build the serverRUN cd /srv && Set up auto_install.sh with expectCOPY auto_install.sh /srv/manager/auto_install.sh WORKDIR /srv/manager/ RUN expect /srv/manager/auto_install.sh Expose ports 55000, 1515, and 1514EXPOSE 55000 1515 1514 my auto_install.sh Path to your shell scriptset script_path "/srv/manager/install.sh" Spawn your scriptspawn "$script_path" Expect and respond to the first promptexpect "Press ENTER to continue" { Expect and respond to the second promptexpect "Choose where to install Wazuh" { Expect and respond to the third promptexpect "Press ENTER to continue" { Expect and respond to the fourth promptexpect "Press ENTER to continue" { Wait for the "Completed." message and ignore itexpect "Completed." Wait for the final message and respond with ENTERexpect "Press ENTER to finish" { Wait for the spawned process to completeexpect eof` my docker compose file
|
@mehrdadhosseinzadeh Hi! I am kindly asking you to fix the formatting of the message as it was corrupted by GitHub markdown... and it is really damn hard to read it right now. |
we forke wazuh from https://github.com/wazuh/wazuh on our self hosted gitlab.
and want to Dockerize it with dockerfile and docker-compose to deploy automatic after each commit by Ci/CD
anyone can help us ? are you have any availble repository ? any help ?
The text was updated successfully, but these errors were encountered: