Blame SOURCES/create_bundles_in_container.sh

ad1bcd
#!/bin/bash -eu
ad1bcd
#
ad1bcd
# create vendor and webpack bundles inside a container for reproducibility
ad1bcd
#
ad1bcd
ad1bcd
cat <
ad1bcd
FROM fedora:35
ad1bcd
ad1bcd
RUN dnf upgrade -y && \
ad1bcd
    dnf install -y rpmdevtools python3-packaging make golang nodejs yarnpkg
ad1bcd
ad1bcd
WORKDIR /tmp/grafana-build
ad1bcd
COPY Makefile grafana.spec *.patch build_frontend.sh list_bundled_nodejs_packages.py .
ad1bcd
RUN mkdir bundles
ad1bcd
CMD make && mv *.tar.* bundles
ad1bcd
EOF
ad1bcd
ad1bcd
podman run --name grafana-build --replace "$@" grafana-build
ad1bcd
podman cp grafana-build:bundles/. .