You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
527 B
20 lines
527 B
2 years ago
|
#!/bin/bash -eu
|
||
|
#
|
||
|
# create vendor and webpack bundles inside a container for reproducibility
|
||
|
#
|
||
|
|
||
|
cat <<EOF | podman build -t grafana-build -f - .
|
||
|
FROM fedora:35
|
||
|
|
||
|
RUN dnf upgrade -y && \
|
||
|
dnf install -y rpmdevtools python3-packaging make golang nodejs yarnpkg
|
||
|
|
||
|
WORKDIR /tmp/grafana-build
|
||
|
COPY Makefile grafana.spec *.patch build_frontend.sh list_bundled_nodejs_packages.py .
|
||
|
RUN mkdir bundles
|
||
|
CMD make && mv *.tar.* bundles
|
||
|
EOF
|
||
|
|
||
|
podman run --name grafana-build --replace "$@" grafana-build
|
||
|
podman cp grafana-build:bundles/. .
|