-
Notifications
You must be signed in to change notification settings - Fork 409
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
Allow branch parameters on build-images.sh
#1016
Labels
Comments
Update reportI am working on changes to the build script, these changes will allow certain parameters to be indicated, I am in the process of testing it: build-images.sh -h[root@centos72 wazuh-docker]# build-docker-images/build-images.sh -h
Usage: build-docker-images/build-images.sh [OPTIONS]
-d, --dev <ref> [Optional] Set the development stage you want to build, example rc1 or beta1, not used by default.
-f, --filebeat-module <ref> [Optional] Set Filebeat module version. By default 0.2.
-r, --revision <rev> [Optional] Package revision. By default 1
-v, --version <ver> [Optional] Set the Wazuh version should be builded. By default, 4.6.0.
-h, --help Show this help. build-images.sh[root@centos72 wazuh-docker]# build-docker-images/build-images.sh
[+] Building 245.8s (80/80) FINISHED
=> [wazuh/wazuh-dashboard:4.6.0 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.72kB 0.0s
=> [wazuh/wazuh-indexer:4.6.0 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.44kB 0.0s
=> [wazuh/wazuh-indexer:4.6.0 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 internal] load metadata for docker.io/library/ubuntu:focal 1.4s
=> [wazuh/wazuh-manager:4.6.0 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.14kB 0.0s
=> [wazuh/wazuh-manager:4.6.0 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-indexer:4.6.0 internal] load build context 0.0s
=> => transferring context: 20.67kB 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 1/14] FROM docker.io/library/ubuntu:focal@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 5.0s
=> => resolve docker.io/library/ubuntu:focal@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 0.0s
=> => sha256:6df89402372646d400cf092016c28066391a26f5d46c00b1153e75003465484d 2.30kB / 2.30kB 0.0s
=> => sha256:edaedc954fb53f42a7754a6e2d1b57f091bc9b11063bc445c2e325ea448f8f68 27.51MB / 27.51MB 3.4s
=> => sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 1.13kB / 1.13kB 0.0s
=> => sha256:3246518d9735254519e1b2ff35f95686e4a5011c90c85344c1f38df7bae9dd37 424B / 424B 0.0s
=> => extracting sha256:edaedc954fb53f42a7754a6e2d1b57f091bc9b11063bc445c2e325ea448f8f68 1.4s
=> [wazuh/wazuh-manager:4.6.0 internal] load build context 0.0s
=> => transferring context: 26.20kB 0.0s
=> [wazuh/wazuh-manager:4.6.0] https://raw.githubusercontent.com/wazuh/wazuh/4.6.0/extensions/elasticsearch/7.x/wazuh-template.json 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 internal] load build context 0.0s
=> => transferring context: 14.06kB 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 2/9] RUN apt-get update -y && apt-get install curl openssl xz-utils -y 31.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 2/14] RUN getent group wazuh-indexer || groupadd -r -g 1000 wazuh-indexer 0.7s
=> [wazuh/wazuh-dashboard:4.6.0 builder 2/17] RUN apt-get update && apt install curl libcap2-bin xz-utils -y 27.7s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 2/13] RUN apt update && apt install -y libnss3-dev fonts-liberation libfontconfig1 17.2s
=> [wazuh/wazuh-manager:4.6.0 2/17] RUN rm /bin/sh && ln -s /bin/bash /bin/sh 0.7s
=> [wazuh/wazuh-manager:4.6.0 3/17] RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y 23.8s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 3/14] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-indexer --gid wazuh-indexer --shell /sbin/nolo 0.5s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 4/14] WORKDIR /usr/share/wazuh-indexer 0.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 5/14] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 6/14] COPY config/securityadmin.sh / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 7/14] RUN chmod 700 /entrypoint.sh && chmod 700 /securityadmin.sh 0.2s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 8/14] RUN chown 1000:1000 /*.sh 0.4s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 3/13] RUN getent group wazuh-dashboard || groupadd -r -g 1000 wazuh-dashboard 0.4s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 4/13] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-dashboard --gid wazuh-dashboard --shell /sbi 0.4s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 5/13] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 6/13] COPY config/wazuh_app_config.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 7/13] RUN chmod 700 /entrypoint.sh 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 8/13] RUN chmod 700 /wazuh_app_config.sh 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 9/13] RUN chown 1000:1000 /*.sh 0.3s
=> [wazuh/wazuh-manager:4.6.0 4/17] COPY config/check_repository.sh / 0.0s
=> [wazuh/wazuh-manager:4.6.0 5/17] RUN chmod 775 /check_repository.sh 0.3s
=> [wazuh/wazuh-manager:4.6.0 6/17] RUN source /check_repository.sh 2.1s
=> [wazuh/wazuh-manager:4.6.0 7/17] RUN apt-get update && apt-get install wazuh-manager=4.6.0-1 119.7s
=> [wazuh/wazuh-dashboard:4.6.0 builder 3/17] RUN mkdir -p /usr/share/wazuh-dashboard 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 builder 4/17] COPY config/dl_base.sh . 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 builder 5/17] RUN bash dl_base.sh 86.4s
=> [wazuh/wazuh-indexer:4.6.0 builder 3/9] COPY config/opensearch.yml / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 4/9] COPY config/config.sh . 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 5/9] COPY config/config.yml / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 6/9] COPY config/internal_users.yml / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 7/9] COPY config/roles_mapping.yml / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 8/9] COPY config/roles.yml / 0.1s
=> [wazuh/wazuh-indexer:4.6.0 builder 9/9] RUN bash config.sh 150.4s
=> [wazuh/wazuh-dashboard:4.6.0 builder 6/17] COPY config/config.sh . 0.1s
=> [wazuh/wazuh-dashboard:4.6.0 builder 7/17] COPY config/config.yml / 0.1s
=> [wazuh/wazuh-dashboard:4.6.0 builder 8/17] RUN bash config.sh 4.2s
=> [wazuh/wazuh-dashboard:4.6.0 builder 9/17] COPY config/install_wazuh_app.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 builder 10/17] RUN chmod 775 /install_wazuh_app.sh 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 builder 11/17] RUN bash /install_wazuh_app.sh 13.7s
=> [wazuh/wazuh-dashboard:4.6.0 builder 12/17] COPY config/opensearch_dashboards.yml /usr/share/wazuh-dashboard/config/ 0.1s
=> [wazuh/wazuh-dashboard:4.6.0 builder 13/17] COPY config/wazuh.yml /usr/share/wazuh-dashboard/data/wazuh/config/ 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 builder 14/17] RUN chown 101:101 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml && chmod 664 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml 0.2s
=> [wazuh/wazuh-dashboard:4.6.0 builder 15/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 builder 16/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/config && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/config && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/conf 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 builder 17/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/logs && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/logs && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/logs 0.3s
=> [wazuh/wazuh-manager:4.6.0 8/17] RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-7.10.2-amd64.deb && dpkg -i filebeat-oss-7.10.2-amd64.deb && rm -f filebeat-oss-7.10.2-amd64.deb && cu 5.0s
=> [wazuh/wazuh-manager:4.6.0 9/17] RUN 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 2.1s
=> [wazuh/wazuh-manager:4.6.0 10/17] COPY config/etc/ /etc/ 0.1s
=> [wazuh/wazuh-manager:4.6.0 11/17] COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py 0.1s
=> [wazuh/wazuh-manager:4.6.0 12/17] COPY config/filebeat.yml /etc/filebeat/ 0.0s
=> [wazuh/wazuh-manager:4.6.0 13/17] RUN chmod go-w /etc/filebeat/filebeat.yml 0.6s
=> [wazuh/wazuh-manager:4.6.0 14/17] ADD https://raw.githubusercontent.com/wazuh/wazuh/4.6.0/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat 0.4s
=> [wazuh/wazuh-manager:4.6.0 15/17] RUN chmod go-w /etc/filebeat/wazuh-template.json 0.4s
=> [wazuh/wazuh-manager:4.6.0 16/17] COPY config/permanent_data.env config/permanent_data.sh / 0.1s
=> [wazuh/wazuh-manager:4.6.0 17/17] RUN chmod 755 /permanent_data.sh && sync && /permanent_data.sh && sync && rm /permanent_data.sh 0.7s
=> [wazuh/wazuh-manager:4.6.0] exporting to image 37.0s
=> => exporting layers 36.7s
=> => writing image sha256:add5e6968df10af8ec99abd66a24ec517d623368768938d058b0245dedb5c957 0.2s
=> => naming to docker.io/wazuh/wazuh-manager:4.6.0 0.1s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 10/13] COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard 53.4s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 9/14] COPY --from=builder --chown=1000:1000 /debian/wazuh-indexer/usr/share/wazuh-indexer /usr/share/wazuh-indexer 3.4s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 10/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/systemd /usr/lib/systemd 0.2s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 11/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/sysctl.d /usr/lib/sysctl.d 0.3s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 12/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/tmpfiles.d /usr/lib/tmpfiles.d 0.1s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 13/14] RUN chown -R 1000:1000 /usr/share/wazuh-indexer 7.3s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 14/14] RUN mkdir -p /var/lib/wazuh-indexer && chown 1000:1000 /var/lib/wazuh-indexer && mkdir -p /usr/share/wazuh-indexer/logs && chown 1000:1000 /usr/share/wazuh-indexer/logs && mkd 0.3s
=> [wazuh/wazuh-indexer:4.6.0] exporting to image 6.3s
=> => exporting layers 6.3s
=> => writing image sha256:1bfef34be1db66692e01d3b1bc1c8d1710553bbcd1d16d28f0d0e899fc4c9f2a 0.0s
=> => naming to docker.io/wazuh/wazuh-indexer:4.6.0 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 11/13] RUN mkdir -p /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 3.5s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 12/13] RUN chown 1000:1000 /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 0.6s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 13/13] WORKDIR /usr/share/wazuh-dashboard 0.0s
=> [wazuh/wazuh-dashboard:4.6.0] exporting to image 20.6s
=> => exporting layers 20.6s
=> => writing image sha256:dc14a40ed613aa891d65ac7f4961f28800dc11b5ab1fb5609f1fdf202b42f924 0.0s
=> => naming to docker.io/wazuh/wazuh-dashboard:4.6.0 build-images.sh -d RC1[root@centos72 wazuh-docker]# build-docker-images/build-images.sh -d RC1
The indicated branch does not exist in the wazuh/wazuh repository: v4.6.0-rc1 build-images.sh -f 0.1[root@centos72 wazuh-docker]# build-docker-images/build-images.sh -f 0.1
[+] Building 192.5s (79/80)
=> [wazuh/wazuh-indexer:4.6.0 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.44kB 0.0s
=> [wazuh/wazuh-indexer:4.6.0 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.72kB 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 internal] load metadata for docker.io/library/ubuntu:focal 0.7s
=> [wazuh/wazuh-manager:4.6.0 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.14kB 0.0s
=> [wazuh/wazuh-manager:4.6.0 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-indexer:4.6.0 internal] load build context 0.0s
=> => transferring context: 889B 0.0s
=> CACHED [wazuh/wazuh-manager:4.6.0] https://raw.githubusercontent.com/wazuh/wazuh/4.6.0/extensions/elasticsearch/7.x/wazuh-template.json 0.5s
=> [wazuh/wazuh-manager:4.6.0 internal] load build context 0.0s
=> => transferring context: 1.81kB 0.0s
=> CACHED [wazuh/wazuh-manager:4.6.0 builder 1/9] FROM docker.io/library/ubuntu:focal@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 191.8s
=> [wazuh/wazuh-dashboard:4.6.0 internal] load build context 0.0s
=> => transferring context: 898B 0.0s
=> [wazuh/wazuh-manager:4.6.0 2/17] RUN rm /bin/sh && ln -s /bin/bash /bin/sh 0.3s
=> [wazuh/wazuh-indexer:4.6.0 builder 2/9] RUN apt-get update -y && apt-get install curl openssl xz-utils -y 21.4s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 2/14] RUN getent group wazuh-indexer || groupadd -r -g 1000 wazuh-indexer 0.6s
=> [wazuh/wazuh-dashboard:4.6.0 builder 2/17] RUN apt-get update && apt install curl libcap2-bin xz-utils -y 19.8s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 2/13] RUN apt update && apt install -y libnss3-dev fonts-liberation libfontconfig1 20.8s
=> [wazuh/wazuh-manager:4.6.0 3/17] RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y 49.1s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 3/14] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-indexer --gid wazuh-indexer --shell /sbin/nolo 0.4s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 4/14] WORKDIR /usr/share/wazuh-indexer 0.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 5/14] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 6/14] COPY config/securityadmin.sh / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 7/14] RUN chmod 700 /entrypoint.sh && chmod 700 /securityadmin.sh 0.2s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 8/14] RUN chown 1000:1000 /*.sh 0.4s
=> [wazuh/wazuh-dashboard:4.6.0 builder 3/17] RUN mkdir -p /usr/share/wazuh-dashboard 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 builder 4/17] COPY config/dl_base.sh . 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 builder 5/17] RUN bash dl_base.sh 44.9s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 3/13] RUN getent group wazuh-dashboard || groupadd -r -g 1000 wazuh-dashboard 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 4/13] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-dashboard --gid wazuh-dashboard --shell /sbi 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 5/13] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 3/9] COPY config/opensearch.yml / 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 6/13] COPY config/wazuh_app_config.sh / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 4/9] COPY config/config.sh . 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 7/13] RUN chmod 700 /entrypoint.sh 0.4s
=> [wazuh/wazuh-indexer:4.6.0 builder 5/9] COPY config/config.yml / 0.1s
=> [wazuh/wazuh-indexer:4.6.0 builder 6/9] COPY config/internal_users.yml / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 7/9] COPY config/roles_mapping.yml / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 8/9] COPY config/roles.yml / 0.0s
=> [wazuh/wazuh-indexer:4.6.0 builder 9/9] RUN bash config.sh 147.7s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 8/13] RUN chmod 700 /wazuh_app_config.sh 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 9/13] RUN chown 1000:1000 /*.sh 0.3s
=> [wazuh/wazuh-manager:4.6.0 4/17] COPY config/check_repository.sh / 0.2s
=> [wazuh/wazuh-manager:4.6.0 5/17] RUN chmod 775 /check_repository.sh 0.8s
=> [wazuh/wazuh-manager:4.6.0 6/17] RUN source /check_repository.sh 3.0s
=> [wazuh/wazuh-manager:4.6.0 7/17] RUN apt-get update && apt-get install wazuh-manager=4.6.0-1 105.1s
=> [wazuh/wazuh-dashboard:4.6.0 builder 6/17] COPY config/config.sh . 0.1s
=> [wazuh/wazuh-dashboard:4.6.0 builder 7/17] COPY config/config.yml / 0.1s
=> [wazuh/wazuh-dashboard:4.6.0 builder 8/17] RUN bash config.sh 4.5s
=> [wazuh/wazuh-dashboard:4.6.0 builder 9/17] COPY config/install_wazuh_app.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 builder 10/17] RUN chmod 775 /install_wazuh_app.sh 0.4s
=> [wazuh/wazuh-dashboard:4.6.0 builder 11/17] RUN bash /install_wazuh_app.sh 15.3s
=> [wazuh/wazuh-dashboard:4.6.0 builder 12/17] COPY config/opensearch_dashboards.yml /usr/share/wazuh-dashboard/config/ 0.1s
=> [wazuh/wazuh-dashboard:4.6.0 builder 13/17] COPY config/wazuh.yml /usr/share/wazuh-dashboard/data/wazuh/config/ 0.0s
=> [wazuh/wazuh-dashboard:4.6.0 builder 14/17] RUN chown 101:101 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml && chmod 664 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml 0.4s
=> [wazuh/wazuh-dashboard:4.6.0 builder 15/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh 0.5s
=> [wazuh/wazuh-dashboard:4.6.0 builder 16/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/config && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/config && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/conf 0.5s
=> [wazuh/wazuh-dashboard:4.6.0 builder 17/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/logs && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/logs && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/logs 0.4s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 10/13] COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard 23.8s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 11/13] RUN mkdir -p /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 1.4s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 12/13] RUN chown 1000:1000 /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 0.3s
=> [wazuh/wazuh-dashboard:4.6.0 stage-1 13/13] WORKDIR /usr/share/wazuh-dashboard 0.0s
=> [wazuh/wazuh-dashboard:4.6.0] exporting to image 14.7s
=> => exporting layers 14.7s
=> => writing image sha256:51f0f97ba122cc9f35e0acef70a132a78626423f62b45641f85cdda9d7d28a4c 0.0s
=> => naming to docker.io/wazuh/wazuh-dashboard:4.6.0 0.0s
=> [wazuh/wazuh-manager:4.6.0 8/17] RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-7.10.2-amd64.deb && dpkg -i filebeat-oss-7.10.2-amd64.deb && rm -f filebeat-oss-7.10.2-amd64.deb && cu 7.4s
=> [wazuh/wazuh-manager:4.6.0 9/17] RUN 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 3.0s
=> [wazuh/wazuh-manager:4.6.0 10/17] COPY config/etc/ /etc/ 0.0s
=> [wazuh/wazuh-manager:4.6.0 11/17] COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py 0.2s
=> [wazuh/wazuh-manager:4.6.0 12/17] COPY config/filebeat.yml /etc/filebeat/ 0.0s
=> [wazuh/wazuh-manager:4.6.0 13/17] RUN chmod go-w /etc/filebeat/filebeat.yml 0.3s
=> [wazuh/wazuh-manager:4.6.0 14/17] ADD https://raw.githubusercontent.com/wazuh/wazuh/4.6.0/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat 0.0s
=> [wazuh/wazuh-manager:4.6.0 15/17] RUN chmod go-w /etc/filebeat/wazuh-template.json 0.3s
=> [wazuh/wazuh-manager:4.6.0 16/17] COPY config/permanent_data.env config/permanent_data.sh / 0.0s
=> [wazuh/wazuh-manager:4.6.0 17/17] RUN chmod 755 /permanent_data.sh && sync && /permanent_data.sh && sync && rm /permanent_data.sh 0.5s
=> [wazuh/wazuh-manager:4.6.0] exporting to image 20.1s
=> => exporting layers 20.1s
=> => writing image sha256:ca6e2668901cde34778ded74c4ba6946750b3f5d736b20ee87ef0d4964b21083 0.0s
=> => naming to docker.io/wazuh/wazuh-manager:4.6.0 0.0s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 9/14] COPY --from=builder --chown=1000:1000 /debian/wazuh-indexer/usr/share/wazuh-indexer /usr/share/wazuh-indexer 2.6s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 10/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/systemd /usr/lib/systemd 0.4s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 11/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/sysctl.d /usr/lib/sysctl.d 0.2s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 12/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/tmpfiles.d /usr/lib/tmpfiles.d 0.2s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 13/14] RUN chown -R 1000:1000 /usr/share/wazuh-indexer 7.2s
=> [wazuh/wazuh-indexer:4.6.0 stage-1 14/14] RUN mkdir -p /var/lib/wazuh-indexer && chown 1000:1000 /var/lib/wazuh-indexer && mkdir -p /usr/share/wazuh-indexer/logs && chown 1000:1000 /usr/share/wazuh-indexer/logs && mkd 0.3s
=> [wazuh/wazuh-indexer:4.6.0] exporting to image 6.5s
=> => exporting layers 6.5s
=> => writing image sha256:49382a830e9ab73ab53eabc552f70cfd1327eaafb7b24369cd696540eeb4466d 0.0s
=> => naming to docker.io/wazuh/wazuh-indexer:4.6.0 |
Update reportbuild-images.sh -v 4.5.2[root@centos72 wazuh-docker]# build-docker-images/build-images.sh -v 4.5.2
+ WAZUH_IMAGE_VERSION=4.6.0
+ WAZUH_TAG_REVISION=1
+ WAZUH_DEV_STAGE=
+ FILEBEAT_MODULE_VERSION=0.2
+ trap ctrl_c INT
+ main -v 4.5.2
+ '[' -n -v ']'
+ case "${1}" in
+ '[' -n 4.5.2 ']'
+ WAZUH_IMAGE_VERSION=4.5.2
+ shift 2
+ '[' -n '' ']'
+ build
++ echo 4.5.2
++ sed -e 's/\.//g'
+ WAZUH_VERSION=452
+ FILEBEAT_TEMPLATE_BRANCH=4.5.2
+ WAZUH_FILEBEAT_MODULE=wazuh-filebeat-0.2.tar.gz
+ WAZUH_UI_REVISION=1
+ '[' '' ']'
+ curl --output /dev/null --silent --head --fail https://github.com/wazuh/wazuh/tree/4.5.2
+ curl --output /dev/null --silent --head --fail https://github.com/wazuh/wazuh/tree/v4.5.2
+ FILEBEAT_TEMPLATE_BRANCH=v4.5.2
+ echo WAZUH_VERSION=4.5.2
+ echo WAZUH_IMAGE_VERSION=4.5.2
+ echo WAZUH_TAG_REVISION=1
+ echo FILEBEAT_TEMPLATE_BRANCH=v4.5.2
+ echo WAZUH_FILEBEAT_MODULE=wazuh-filebeat-0.2.tar.gz
+ echo WAZUH_UI_REVISION=1
+ docker-compose -f build-docker-images/build-images.yml --env-file .env build --no-cache
[+] Building 183.4s (80/80) FINISHED
=> [wazuh/wazuh-dashboard:4.5.2 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.72kB 0.0s
=> [wazuh/wazuh-dashboard:4.5.2 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-manager:4.5.2 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.14kB 0.0s
=> [wazuh/wazuh-manager:4.5.2 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-manager:4.5.2 internal] load metadata for docker.io/library/ubuntu:focal 1.5s
=> [wazuh/wazuh-indexer:4.5.2 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-indexer:4.5.2 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.44kB 0.0s
=> [wazuh/wazuh-manager:4.5.2 internal] load build context 0.0s
=> => transferring context: 1.81kB 0.0s
=> CACHED [wazuh/wazuh-manager:4.5.2] https://raw.githubusercontent.com/wazuh/wazuh/v4.5.2/extensions/elasticsearch/7.x/wazuh-template.json 0.5s
=> CACHED [wazuh/wazuh-dashboard:4.5.2 1/17] FROM docker.io/library/ubuntu:focal@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 0.0s
=> [wazuh/wazuh-manager:4.5.2 2/17] RUN rm /bin/sh && ln -s /bin/bash /bin/sh 0.3s
=> [wazuh/wazuh-indexer:4.5.2 internal] load build context 0.0s
=> => transferring context: 889B 0.0s
=> [wazuh/wazuh-indexer:4.5.2 builder 2/9] RUN apt-get update -y && apt-get install curl openssl xz-utils -y 28.3s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 2/14] RUN getent group wazuh-indexer || groupadd -r -g 1000 wazuh-indexer 0.6s
=> [wazuh/wazuh-dashboard:4.5.2 builder 2/17] RUN apt-get update && apt install curl libcap2-bin xz-utils -y 19.3s
=> [wazuh/wazuh-dashboard:4.5.2 internal] load build context 0.0s
=> => transferring context: 898B 0.0s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 2/13] RUN apt update && apt install -y libnss3-dev fonts-liberation libfontconfig1 21.1s
=> [wazuh/wazuh-manager:4.5.2 3/17] RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y 25.2s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 3/14] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-indexer --gid wazuh-indexer --shell /sbin/nolo 0.6s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 4/14] WORKDIR /usr/share/wazuh-indexer 0.0s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 5/14] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 6/14] COPY config/securityadmin.sh / 0.0s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 7/14] RUN chmod 700 /entrypoint.sh && chmod 700 /securityadmin.sh 0.2s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 8/14] RUN chown 1000:1000 /*.sh 0.3s
=> [wazuh/wazuh-dashboard:4.5.2 builder 3/17] RUN mkdir -p /usr/share/wazuh-dashboard 0.3s
=> [wazuh/wazuh-dashboard:4.5.2 builder 4/17] COPY config/dl_base.sh . 0.1s
=> [wazuh/wazuh-dashboard:4.5.2 builder 5/17] RUN bash dl_base.sh 26.3s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 3/13] RUN getent group wazuh-dashboard || groupadd -r -g 1000 wazuh-dashboard 0.3s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 4/13] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-dashboard --gid wazuh-dashboard --shell /sbi 0.4s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 5/13] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 6/13] COPY config/wazuh_app_config.sh / 0.1s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 7/13] RUN chmod 700 /entrypoint.sh 0.3s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 8/13] RUN chmod 700 /wazuh_app_config.sh 0.4s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 9/13] RUN chown 1000:1000 /*.sh 0.3s
=> [wazuh/wazuh-manager:4.5.2 4/17] COPY config/check_repository.sh / 0.0s
=> [wazuh/wazuh-manager:4.5.2 5/17] RUN chmod 775 /check_repository.sh 0.4s
=> [wazuh/wazuh-manager:4.5.2 6/17] RUN source /check_repository.sh 1.7s
=> [wazuh/wazuh-manager:4.5.2 7/17] RUN apt-get update && apt-get install wazuh-manager=4.5.2-1 107.2s
=> [wazuh/wazuh-indexer:4.5.2 builder 3/9] COPY config/opensearch.yml / 0.1s
=> [wazuh/wazuh-indexer:4.5.2 builder 4/9] COPY config/config.sh . 0.1s
=> [wazuh/wazuh-indexer:4.5.2 builder 5/9] COPY config/config.yml / 0.1s
=> [wazuh/wazuh-indexer:4.5.2 builder 6/9] COPY config/internal_users.yml / 0.1s
=> [wazuh/wazuh-indexer:4.5.2 builder 7/9] COPY config/roles_mapping.yml / 0.0s
=> [wazuh/wazuh-indexer:4.5.2 builder 8/9] COPY config/roles.yml / 0.0s
=> [wazuh/wazuh-indexer:4.5.2 builder 9/9] RUN bash config.sh 131.7s
=> [wazuh/wazuh-dashboard:4.5.2 builder 6/17] COPY config/config.sh . 0.0s
=> [wazuh/wazuh-dashboard:4.5.2 builder 7/17] COPY config/config.yml / 0.0s
=> [wazuh/wazuh-dashboard:4.5.2 builder 8/17] RUN bash config.sh 3.3s
=> [wazuh/wazuh-dashboard:4.5.2 builder 9/17] COPY config/install_wazuh_app.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.5.2 builder 10/17] RUN chmod 775 /install_wazuh_app.sh 0.4s
=> [wazuh/wazuh-dashboard:4.5.2 builder 11/17] RUN bash /install_wazuh_app.sh 17.5s
=> [wazuh/wazuh-dashboard:4.5.2 builder 12/17] COPY config/opensearch_dashboards.yml /usr/share/wazuh-dashboard/config/ 0.1s
=> [wazuh/wazuh-dashboard:4.5.2 builder 13/17] COPY config/wazuh.yml /usr/share/wazuh-dashboard/data/wazuh/config/ 0.0s
=> [wazuh/wazuh-dashboard:4.5.2 builder 14/17] RUN chown 101:101 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml && chmod 664 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml 0.3s
=> [wazuh/wazuh-dashboard:4.5.2 builder 15/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh 0.5s
=> [wazuh/wazuh-dashboard:4.5.2 builder 16/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/config && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/config && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/conf 0.5s
=> [wazuh/wazuh-dashboard:4.5.2 builder 17/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/logs && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/logs && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/logs 0.4s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 10/13] COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard 23.1s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 11/13] RUN mkdir -p /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 0.3s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 12/13] RUN chown 1000:1000 /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 0.4s
=> [wazuh/wazuh-dashboard:4.5.2 stage-1 13/13] WORKDIR /usr/share/wazuh-dashboard 0.0s
=> [wazuh/wazuh-dashboard:4.5.2] exporting to image 16.7s
=> => exporting layers 16.7s
=> => writing image sha256:f847d619191f1e5a0446a969a8585212cd6778f2df62e6c655eaf470ef57e13c 0.0s
=> => naming to docker.io/wazuh/wazuh-dashboard:4.5.2 0.0s
=> [wazuh/wazuh-manager:4.5.2 8/17] RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-7.10.2-amd64.deb && dpkg -i filebeat-oss-7.10.2-amd64.deb && rm -f filebeat-oss-7.10.2-amd64.deb && cu 3.6s
=> [wazuh/wazuh-manager:4.5.2 9/17] RUN 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 1.7s
=> [wazuh/wazuh-manager:4.5.2 10/17] COPY config/etc/ /etc/ 0.0s
=> [wazuh/wazuh-manager:4.5.2 11/17] COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py 0.1s
=> [wazuh/wazuh-manager:4.5.2 12/17] COPY config/filebeat.yml /etc/filebeat/ 0.0s
=> [wazuh/wazuh-manager:4.5.2 13/17] RUN chmod go-w /etc/filebeat/filebeat.yml 0.2s
=> [wazuh/wazuh-manager:4.5.2 14/17] ADD https://raw.githubusercontent.com/wazuh/wazuh/v4.5.2/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat 0.0s
=> [wazuh/wazuh-manager:4.5.2 15/17] RUN chmod go-w /etc/filebeat/wazuh-template.json 0.3s
=> [wazuh/wazuh-manager:4.5.2 16/17] COPY config/permanent_data.env config/permanent_data.sh / 0.1s
=> [wazuh/wazuh-manager:4.5.2 17/17] RUN chmod 755 /permanent_data.sh && sync && /permanent_data.sh && sync && rm /permanent_data.sh 0.5s
=> [wazuh/wazuh-manager:4.5.2] exporting to image 7.1s
=> => exporting layers 7.1s
=> => writing image sha256:6091c59e5711ac96403c338152d9d5529cc1954f0fb0710e114cb49795dda7a0 0.0s
=> => naming to docker.io/wazuh/wazuh-manager:4.5.2 0.0s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 9/14] COPY --from=builder --chown=1000:1000 /debian/wazuh-indexer/usr/share/wazuh-indexer /usr/share/wazuh-indexer 2.5s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 10/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/systemd /usr/lib/systemd 0.0s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 11/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/sysctl.d /usr/lib/sysctl.d 0.1s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 12/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/tmpfiles.d /usr/lib/tmpfiles.d 0.1s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 13/14] RUN chown -R 1000:1000 /usr/share/wazuh-indexer 4.7s
=> [wazuh/wazuh-indexer:4.5.2 stage-1 14/14] RUN mkdir -p /var/lib/wazuh-indexer && chown 1000:1000 /var/lib/wazuh-indexer && mkdir -p /usr/share/wazuh-indexer/logs && chown 1000:1000 /usr/share/wazuh-indexer/logs && mkd 2.7s
=> [wazuh/wazuh-indexer:4.5.2] exporting to image 5.6s
=> => exporting layers 5.6s
=> => writing image sha256:7441ca553d9661bbd81d0e3ee8be6a07bdadc33f897515e44e8625cd9953d5fa 0.0s
=> => naming to docker.io/wazuh/wazuh-indexer:4.5.2 Deploy single node[root@centos72 single-node]# vi docker-compose.yml
[root@centos72 single-node]# docker-compose -f generate-indexer-certs.yml run --rm generator
[+] Running 1/1
⠿ Network single-node_default Created 0.1s
[+] Running 5/5
⠿ generator Pulled 18.7s
⠿ edaedc954fb5 Already exists 0.0s
⠿ 573f4d11a520 Pull complete 11.0s
⠿ 8f200922197d Pull complete 11.0s
⠿ 55a86de68c5c Pull complete 11.0s
The tool to create the certificates exists in the in Packages bucket
04/10/2023 13:46:03 INFO: Admin certificates created.
04/10/2023 13:46:03 INFO: Wazuh indexer certificates created.
04/10/2023 13:46:04 INFO: Wazuh server certificates created.
04/10/2023 13:46:04 INFO: Wazuh dashboard certificates created.
Moving created certificates to the destination directory
Changing certificate permissions
Setting UID indexer and dashboard
Setting UID for wazuh manager and worker
[root@centos72 single-node]# docker-compose up -d
[+] Running 17/17
⠿ Volume "single-node_wazuh-indexer-data" Created 0.0s
⠿ Volume "single-node_wazuh_var_multigroups" Created 0.0s
⠿ Volume "single-node_wazuh_wodles" Created 0.0s
⠿ Volume "single-node_wazuh_agentless" Created 0.0s
⠿ Volume "single-node_filebeat_var" Created 0.0s
⠿ Volume "single-node_wazuh_etc" Created 0.0s
⠿ Volume "single-node_wazuh_api_configuration" Created 0.0s
⠿ Volume "single-node_wazuh_logs" Created 0.0s
⠿ Volume "single-node_wazuh-dashboard-config" Created 0.0s
⠿ Volume "single-node_wazuh_integrations" Created 0.0s
⠿ Volume "single-node_wazuh-dashboard-custom" Created 0.0s
⠿ Volume "single-node_wazuh_active_response" Created 0.0s
⠿ Volume "single-node_wazuh_queue" Created 0.0s
⠿ Volume "single-node_filebeat_etc" Created 0.0s
⠿ Container single-node-wazuh.manager-1 Started 0.5s
⠿ Container single-node-wazuh.indexer-1 Started 0.5s
⠿ Container single-node-wazuh.dashboard-1 Started 0.7s
[root@centos72 single-node]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d63ab59e5c17 wazuh/wazuh-dashboard:4.5.2 "/entrypoint.sh" 6 seconds ago Up 5 seconds 443/tcp, 0.0.0.0:443->5601/tcp, :::443->5601/tcp single-node-wazuh.dashboard-1
04c97e72985b wazuh/wazuh-manager:4.5.2 "/init" 6 seconds ago Up 5 seconds 0.0.0.0:1514-1515->1514-1515/tcp, :::1514-1515->1514-1515/tcp, 0.0.0.0:514->514/udp, :::514->514/udp, 0.0.0.0:55000->55000/tcp, :::55000->55000/tcp, 1516/tcp single-node-wazuh.manager-1
3899cdb14503 wazuh/wazuh-indexer:4.5.2 "/entrypoint.sh open…" 6 seconds ago Up 5 seconds 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp single-node-wazuh.indexer-1
[root@centos72 single-node]# docker exec -it single-node-wazuh.manager-1 /var/ossec/bin/wazuh-control info
WAZUH_VERSION="v4.5.2"
WAZUH_REVISION="40505"
WAZUH_TYPE="server"
[root@centos72 single-node]# docker exec -it single-node-wazuh.indexer-1 cat /usr/share/wazuh-indexer/VERSION
4.5.2
[root@centos72 single-node]# docker exec -it single-node-wazuh.dashboard-1 cat /usr/share/wazuh-dashboard/VERSION
4.5.2
The docker-compose of the deploy single node was modified to use the 4.5.2 images previously created |
Update reportbuild-images.sh -v 4.5.3 -d rc2[root@centos72 wazuh-docker]# build-docker-images/build-images.sh -d rc2 -v 4.5.3
[+] Building 188.3s (80/80) FINISHED
=> [wazuh/wazuh-manager:4.5.3 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.14kB 0.0s
=> [wazuh/wazuh-manager:4.5.3 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-indexer:4.5.3 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-indexer:4.5.3 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2.44kB 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 3.72kB 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [wazuh/wazuh-manager:4.5.3 internal] load metadata for docker.io/library/ubuntu:focal 2.4s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 1/14] FROM docker.io/library/ubuntu:focal@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 4.3s
=> => resolve docker.io/library/ubuntu:focal@sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 0.0s
=> => sha256:33a5cc25d22c45900796a1aca487ad7a7cb09f09ea00b779e3b2026b4fc2faba 1.13kB / 1.13kB 0.0s
=> => sha256:3246518d9735254519e1b2ff35f95686e4a5011c90c85344c1f38df7bae9dd37 424B / 424B 0.0s
=> => sha256:6df89402372646d400cf092016c28066391a26f5d46c00b1153e75003465484d 2.30kB / 2.30kB 0.0s
=> => sha256:edaedc954fb53f42a7754a6e2d1b57f091bc9b11063bc445c2e325ea448f8f68 27.51MB / 27.51MB 2.8s
=> => extracting sha256:edaedc954fb53f42a7754a6e2d1b57f091bc9b11063bc445c2e325ea448f8f68 1.4s
=> [wazuh/wazuh-indexer:4.5.3 internal] load build context 0.0s
=> => transferring context: 20.67kB 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 internal] load build context 0.0s
=> => transferring context: 14.06kB 0.0s
=> [wazuh/wazuh-manager:4.5.3 internal] load build context 0.0s
=> => transferring context: 26.20kB 0.0s
=> [wazuh/wazuh-manager:4.5.3] https://raw.githubusercontent.com/wazuh/wazuh/v4.5.3-rc2/extensions/elasticsearch/7.x/wazuh-template.json 0.4s
=> [wazuh/wazuh-dashboard:4.5.3 builder 2/17] RUN apt-get update && apt install curl libcap2-bin xz-utils -y 19.0s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 2/13] RUN apt update && apt install -y libnss3-dev fonts-liberation libfontconfig1 18.1s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 2/14] RUN getent group wazuh-indexer || groupadd -r -g 1000 wazuh-indexer 0.7s
=> [wazuh/wazuh-indexer:4.5.3 builder 2/9] RUN apt-get update -y && apt-get install curl openssl xz-utils -y 23.6s
=> [wazuh/wazuh-manager:4.5.3 2/17] RUN rm /bin/sh && ln -s /bin/bash /bin/sh 0.6s
=> [wazuh/wazuh-manager:4.5.3 3/17] RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y 25.9s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 3/14] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-indexer --gid wazuh-indexer --shell /sbin/nolo 0.5s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 4/14] WORKDIR /usr/share/wazuh-indexer 0.0s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 5/14] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 6/14] COPY config/securityadmin.sh / 0.0s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 7/14] RUN chmod 700 /entrypoint.sh && chmod 700 /securityadmin.sh 0.2s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 8/14] RUN chown 1000:1000 /*.sh 0.4s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 3/13] RUN getent group wazuh-dashboard || groupadd -r -g 1000 wazuh-dashboard 0.3s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 4/13] RUN useradd --system --uid 1000 --no-create-home --home-dir /usr/share/wazuh-dashboard --gid wazuh-dashboard --shell /sbi 0.4s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 5/13] COPY config/entrypoint.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 6/13] COPY config/wazuh_app_config.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 7/13] RUN chmod 700 /entrypoint.sh 0.3s
=> [wazuh/wazuh-dashboard:4.5.3 builder 3/17] RUN mkdir -p /usr/share/wazuh-dashboard 0.3s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 8/13] RUN chmod 700 /wazuh_app_config.sh 0.4s
=> [wazuh/wazuh-dashboard:4.5.3 builder 4/17] COPY config/dl_base.sh . 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 5/17] RUN bash dl_base.sh 50.6s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 9/13] RUN chown 1000:1000 /*.sh 0.3s
=> [wazuh/wazuh-indexer:4.5.3 builder 3/9] COPY config/opensearch.yml / 0.1s
=> [wazuh/wazuh-indexer:4.5.3 builder 4/9] COPY config/config.sh . 0.0s
=> [wazuh/wazuh-indexer:4.5.3 builder 5/9] COPY config/config.yml / 0.0s
=> [wazuh/wazuh-indexer:4.5.3 builder 6/9] COPY config/internal_users.yml / 0.0s
=> [wazuh/wazuh-indexer:4.5.3 builder 7/9] COPY config/roles_mapping.yml / 0.0s
=> [wazuh/wazuh-indexer:4.5.3 builder 8/9] COPY config/roles.yml / 0.0s
=> [wazuh/wazuh-indexer:4.5.3 builder 9/9] RUN bash config.sh 135.0s
=> [wazuh/wazuh-manager:4.5.3 4/17] COPY config/check_repository.sh / 0.0s
=> [wazuh/wazuh-manager:4.5.3 5/17] RUN chmod 775 /check_repository.sh 0.3s
=> [wazuh/wazuh-manager:4.5.3 6/17] RUN source /check_repository.sh 2.7s
=> [wazuh/wazuh-manager:4.5.3 7/17] RUN apt-get update && apt-get install wazuh-manager=4.5.3-1 97.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 6/17] COPY config/config.sh . 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 7/17] COPY config/config.yml / 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 8/17] RUN bash config.sh 4.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 9/17] COPY config/install_wazuh_app.sh / 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 10/17] RUN chmod 775 /install_wazuh_app.sh 0.3s
=> [wazuh/wazuh-dashboard:4.5.3 builder 11/17] RUN bash /install_wazuh_app.sh 16.3s
=> [wazuh/wazuh-dashboard:4.5.3 builder 12/17] COPY config/opensearch_dashboards.yml /usr/share/wazuh-dashboard/config/ 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 13/17] COPY config/wazuh.yml /usr/share/wazuh-dashboard/data/wazuh/config/ 0.0s
=> [wazuh/wazuh-dashboard:4.5.3 builder 14/17] RUN chown 101:101 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml && chmod 664 /usr/share/wazuh-dashboard/config/opensearch_dashboards.yml 0.2s
=> [wazuh/wazuh-dashboard:4.5.3 builder 15/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh 0.4s
=> [wazuh/wazuh-dashboard:4.5.3 builder 16/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/config && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/config && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/conf 0.4s
=> [wazuh/wazuh-dashboard:4.5.3 builder 17/17] RUN mkdir -p /usr/share/wazuh-dashboard/data/wazuh/logs && chown -R 101:101 /usr/share/wazuh-dashboard/data/wazuh/logs && chmod -R 775 /usr/share/wazuh-dashboard/data/wazuh/logs 0.3s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 10/13] COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard 16.7s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 11/13] RUN mkdir -p /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 0.2s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 12/13] RUN chown 1000:1000 /usr/share/wazuh-dashboard/plugins/wazuh/public/assets/custom 0.4s
=> [wazuh/wazuh-dashboard:4.5.3 stage-1 13/13] WORKDIR /usr/share/wazuh-dashboard 0.0s
=> [wazuh/wazuh-dashboard:4.5.3] exporting to image 30.6s
=> => exporting layers 30.6s
=> => writing image sha256:b7ee2a45e576b513dec96ab5334572c7d3a511ba72bfa223d71f23e8d3a9a43d 0.0s
=> => naming to docker.io/wazuh/wazuh-dashboard:4.5.3 0.0s
=> [wazuh/wazuh-manager:4.5.3 8/17] RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-oss-7.10.2-amd64.deb && dpkg -i filebeat-oss-7.10.2-amd64.deb && rm -f filebeat-oss-7.10.2-amd64.deb && cu 3.5s
=> [wazuh/wazuh-manager:4.5.3 9/17] RUN 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 1.8s
=> [wazuh/wazuh-manager:4.5.3 10/17] COPY config/etc/ /etc/ 0.0s
=> [wazuh/wazuh-manager:4.5.3 11/17] COPY --chown=root:wazuh config/create_user.py /var/ossec/framework/scripts/create_user.py 0.1s
=> [wazuh/wazuh-manager:4.5.3 12/17] COPY config/filebeat.yml /etc/filebeat/ 0.0s
=> [wazuh/wazuh-manager:4.5.3 13/17] RUN chmod go-w /etc/filebeat/filebeat.yml 0.2s
=> [wazuh/wazuh-manager:4.5.3 14/17] ADD https://raw.githubusercontent.com/wazuh/wazuh/v4.5.3-rc2/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat 0.0s
=> [wazuh/wazuh-manager:4.5.3 15/17] RUN chmod go-w /etc/filebeat/wazuh-template.json 0.3s
=> [wazuh/wazuh-manager:4.5.3 16/17] COPY config/permanent_data.env config/permanent_data.sh / 0.1s
=> [wazuh/wazuh-manager:4.5.3 17/17] RUN chmod 755 /permanent_data.sh && sync && /permanent_data.sh && sync && rm /permanent_data.sh 0.5s
=> [wazuh/wazuh-manager:4.5.3] exporting to image 14.1s
=> => exporting layers 14.1s
=> => writing image sha256:b2dd4d58765a7c39c6842eb840f020abdbe0894e3d1a11d4ab3973b4b251ed75 0.0s
=> => naming to docker.io/wazuh/wazuh-manager:4.5.3 0.0s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 9/14] COPY --from=builder --chown=1000:1000 /debian/wazuh-indexer/usr/share/wazuh-indexer /usr/share/wazuh-indexer 2.1s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 10/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/systemd /usr/lib/systemd 0.1s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 11/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/sysctl.d /usr/lib/sysctl.d 0.1s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 12/14] COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/tmpfiles.d /usr/lib/tmpfiles.d 0.0s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 13/14] RUN chown -R 1000:1000 /usr/share/wazuh-indexer 10.1s
=> [wazuh/wazuh-indexer:4.5.3 stage-1 14/14] RUN mkdir -p /var/lib/wazuh-indexer && chown 1000:1000 /var/lib/wazuh-indexer && mkdir -p /usr/share/wazuh-indexer/logs && chown 1000:1000 /usr/share/wazuh-indexer/logs && mkd 0.4s
=> [wazuh/wazuh-indexer:4.5.3] exporting to image 5.5s
=> => exporting layers 5.5s
=> => writing image sha256:e2fb1ca400c11e0b7a963a842aeb55de9f90d32741a06725c8ae30f017571965 0.0s
=> => naming to docker.io/wazuh/wazuh-indexer:4.5.3 build-docker-images/build-images.sh -d rc1 -v 4.5.3 -r 2cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-docker$ build-docker-images/build-images.sh -d rc1 -v 4.5.3 -r 2
Building wazuh.manager
Sending build context to Docker daemon 39.94kB
Step 1/26 : FROM ubuntu:focal
---> 6df894023726
Step 2/26 : RUN rm /bin/sh && ln -s /bin/bash /bin/sh
---> Running in 8d9b5c121656
Removing intermediate container 8d9b5c121656
---> c4474403710d
Step 3/26 : ARG WAZUH_VERSION
---> Running in e0d0ffdede9b
Removing intermediate container e0d0ffdede9b
---> e673d5cb4ff0
Step 4/26 : ARG WAZUH_TAG_REVISION
---> Running in b919e2aa4858
Removing intermediate container b919e2aa4858
---> f9bfdb9be553
Step 5/26 : ARG FILEBEAT_TEMPLATE_BRANCH
---> Running in 0a45d8a9de68
Removing intermediate container 0a45d8a9de68
---> b000fd1358fd
Step 6/26 : ARG FILEBEAT_CHANNEL=filebeat-oss
---> Running in 5f0da44329e1
Removing intermediate container 5f0da44329e1
---> 7ae82dbf2349
Step 7/26 : ARG FILEBEAT_VERSION=7.10.2
---> Running in 95dd257ba046
Removing intermediate container 95dd257ba046
---> c599808db9f5
Step 8/26 : ARG WAZUH_FILEBEAT_MODULE
---> Running in 64089371cf9e
Removing intermediate container 64089371cf9e
---> 4d0989f118a5
Step 9/26 : RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y
---> Running in e6324f78745a
Removing intermediate container fbcee457c81f
---> fbcee457c81f
Step 10/26 : COPY config/check_repository.sh /
---> b3c1294c88c8
Step 11/26 : RUN chmod 775 /check_repository.sh
---> Running in 8534a7e1fd9f
Removing intermediate container 8534a7e1fd9f
---> 261665ea538d
Step 12/26 : RUN source /check_repository.sh
---> Running in 7b16c559c69c
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.MfwBFNfrNM/gpg.1.sh --fetch-keys https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH
gpg: requesting key from 'https://packages-dev.wazuh.com/key/GPG-KEY-WAZUH'
gpg: key 96B3EE5F29111145: public key "Wazuh.com (Wazuh Signing Key) <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
deb https://packages-dev.wazuh.com/pre-release/apt/ unstable main
Removing intermediate container 7b16c559c69c
---> 774426e8f548
Step 13/26 : RUN apt-get update && apt-get install wazuh-manager=${WAZUH_VERSION}-${WAZUH_TAG_REVISION}
---> Running in 96222a16c490
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Get:5 https://packages-dev.wazuh.com/pre-release/apt unstable InRelease [17.3 kB]
Get:6 https://packages-dev.wazuh.com/pre-release/apt unstable/main amd64 Packages [37.8 kB]
Fetched 55.1 kB in 2s (27.6 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Version '4.5.3-2' for 'wazuh-manager' was not found
The command '/bin/sh -c apt-get update && apt-get install wazuh-manager=${WAZUH_VERSION}-${WAZUH_TAG_REVISION}' returned a non-zero code: 100
ERROR: Service 'wazuh.manager' failed to build : Build failed
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
During https://github.com/wazuh/wazuh-jenkins/issues/5691, it was requested to build and push docker images using v4.6.0-beta1 branches across wazuh repositories, but
build-images.sh
uses Dockerfiles that make reference to version tags rather than branches, causing the next errorshttps://ci.wazuh.info/job/procedure_push_docker_images/83/
It's desirable to allow building and pushing those images before going to production
The text was updated successfully, but these errors were encountered: