We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After finishing edit my wazuh-manager dockerfile to be able to use the nano command on it , Ican't rebuild the image to use it ,
Here is my manager Dockerfile content :
FROM amazonlinux:2023
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ARG WAZUH_VERSION=4.9 ARG WAZUH_TAG_REVISION ARG FILEBEAT_TEMPLATE_BRANCH ARG FILEBEAT_CHANNEL=filebeat-oss ARG FILEBEAT_VERSION=7.10.2 ARG WAZUH_FILEBEAT_MODULE ARG S6_VERSION="v2.2.0.3"
RUN yum install curl-minimal xz gnupg tar gzip openssl findutils procps nano -y && yum clean all
COPY config/check_repository.sh / COPY config/filebeat_module.sh / COPY config/permanent_data.env config/permanent_data.sh /
RUN chmod 775 /check_repository.sh RUN source /check_repository.sh
RUN yum install wazuh-manager-${WAZUH_VERSION}-${WAZUH_TAG_REVISION} -y && yum clean all && chmod 775 /filebeat_module.sh && source /filebeat_module.sh && rm /filebeat_module.sh && curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz -o /tmp/s6-overlay-amd64.tar.gz && tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bin" && tar xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin && rm /tmp/s6-overlay-amd64.tar.gz
COPY config/etc/ /etc/ COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py
COPY config/filebeat.yml /etc/filebeat/
RUN chmod go-w /etc/filebeat/filebeat.yml
ADD https://github.com/wazuh/wazuh/blob/master/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat RUN chmod go-w /etc/filebeat/wazuh-template.json
RUN mkdir -p /var/ossec/var/multigroups && chown root:wazuh /var/ossec/var/multigroups && chmod 770 /var/ossec/var/multigroups && mkdir -p /var/ossec/agentless && chown root:wazuh /var/ossec/agentless && chmod 770 /var/ossec/agentless && mkdir -p /var/ossec/active-response/bin && chown root:wazuh /var/ossec/active-response/bin && chmod 770 /var/ossec/active-response/bin && chmod 755 /permanent_data.sh && sync && /permanent_data.sh && sync && rm /permanent_data.sh
RUN rm /etc/yum.repos.d/wazuh.repo
EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp
ENTRYPOINT [ "/init" ]
And when trying to rebuild the images after executing this command : "docker build -t manager_update ."
I got this error:
[ 9/17] RUN yum install wazuh-manager-4.9-${WAZUH_TAG_REVISION} -y && yum clean all && chmod 775 /filebeat_module.sh && source /filebeat_module.sh && rm /filebeat_module.sh && curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/v2.2.0.3/s6-overlay-amd64.tar.gz -o /tmp/s6-overlay-amd64.tar.gz && tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bin" && tar xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin && rm /tmp/s6-overlay-amd64.tar.gz: 6.028 Amazon Linux 2023 repository 5.4 MB/s | 29 MB 00:05 18.32 EL-2023.6.20241121 - Wazuh 4.8 MB/s | 31 MB 00:06 25.03 Last metadata expiration check: 0:00:08 ago on Wed Dec 18 00:33:03 2024. 25.78 No match for argument: wazuh-manager-4.9- 25.80 Error: Unable to find a match: wazuh-manager-4.9-
ERROR: failed to solve: process "/bin/sh -c yum install wazuh-manager-${WAZUH_VERSION}-${WAZUH_TAG_REVISION} -y && yum clean all && chmod 775 /filebeat_module.sh && source /filebeat_module.sh && rm /filebeat_module.sh && curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz -o /tmp/s6-overlay-amd64.tar.gz && tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bi
Somebody can help me resolve this issue please ? Thanks in advance
The text was updated successfully, but these errors were encountered:
vcerenu
No branches or pull requests
After finishing edit my wazuh-manager dockerfile to be able to use the nano command on it , Ican't rebuild the image to use it ,
Here is my manager Dockerfile content :
Wazuh Docker Copyright (C) 2017, Wazuh Inc. (License GPLv2)
FROM amazonlinux:2023
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ARG WAZUH_VERSION=4.9
ARG WAZUH_TAG_REVISION
ARG FILEBEAT_TEMPLATE_BRANCH
ARG FILEBEAT_CHANNEL=filebeat-oss
ARG FILEBEAT_VERSION=7.10.2
ARG WAZUH_FILEBEAT_MODULE
ARG S6_VERSION="v2.2.0.3"
Installer les paquets nécessaires, y compris nano
RUN yum install curl-minimal xz gnupg tar gzip openssl findutils procps nano -y &&
yum clean all
COPY config/check_repository.sh /
COPY config/filebeat_module.sh /
COPY config/permanent_data.env config/permanent_data.sh /
RUN chmod 775 /check_repository.sh
RUN source /check_repository.sh
RUN yum install wazuh-manager-${WAZUH_VERSION}-${WAZUH_TAG_REVISION} -y &&
yum clean all &&
chmod 775 /filebeat_module.sh &&
source /filebeat_module.sh &&
rm /filebeat_module.sh &&
curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz
-o /tmp/s6-overlay-amd64.tar.gz &&
tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bin" &&
tar xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin &&
rm /tmp/s6-overlay-amd64.tar.gz
COPY config/etc/ /etc/
COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py
COPY config/filebeat.yml /etc/filebeat/
RUN chmod go-w /etc/filebeat/filebeat.yml
ADD https://github.com/wazuh/wazuh/blob/master/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat
RUN chmod go-w /etc/filebeat/wazuh-template.json
Préparer les données permanentes
Les appels sync sont dus à moby/moby#9547
Créer des répertoires de montage pour conserver les permissions
RUN mkdir -p /var/ossec/var/multigroups &&
chown root:wazuh /var/ossec/var/multigroups &&
chmod 770 /var/ossec/var/multigroups &&
mkdir -p /var/ossec/agentless &&
chown root:wazuh /var/ossec/agentless &&
chmod 770 /var/ossec/agentless &&
mkdir -p /var/ossec/active-response/bin &&
chown root:wazuh /var/ossec/active-response/bin &&
chmod 770 /var/ossec/active-response/bin &&
chmod 755 /permanent_data.sh &&
sync && /permanent_data.sh &&
sync && rm /permanent_data.sh
RUN rm /etc/yum.repos.d/wazuh.repo
Ports des services
EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp
ENTRYPOINT [ "/init" ]
And when trying to rebuild the images after executing this command : "docker build -t manager_update ."
I got this error:
=> [ 8/17] RUN source /check_repository.sh 2.9s
=> ERROR [ 9/17] RUN yum install wazuh-manager-4.9-${WAZUH_TAG_REVISION} -y && yum clean all && chmod 775 /filebeat_module.sh && source 25.9s
Dockerfile:25
24 |
25 | >>> RUN yum install wazuh-manager-${WAZUH_VERSION}-${WAZUH_TAG_REVISION} -y &&
26 | >>> yum clean all &&
27 | >>> chmod 775 /filebeat_module.sh &&
28 | >>> source /filebeat_module.sh &&
29 | >>> rm /filebeat_module.sh &&
30 | >>> curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz
31 | >>> -o /tmp/s6-overlay-amd64.tar.gz &&
32 | >>> tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bin" &&
33 | >>> tar xzf /tmp/s6-overlay-amd64.tar.gz -C /usr ./bin &&
34 | >>> rm /tmp/s6-overlay-amd64.tar.gz
35 |
ERROR: failed to solve: process "/bin/sh -c yum install wazuh-manager-${WAZUH_VERSION}-${WAZUH_TAG_REVISION} -y && yum clean all && chmod 775 /filebeat_module.sh && source /filebeat_module.sh && rm /filebeat_module.sh && curl --fail --silent -L https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz -o /tmp/s6-overlay-amd64.tar.gz && tar xzf /tmp/s6-overlay-amd64.tar.gz -C / --exclude="./bi
Somebody can help me resolve this issue please ? Thanks in advance
The text was updated successfully, but these errors were encountered: