diff --git a/README.md b/README.md index 8e3949f..1b14604 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ 1. Update stack version in the `.env` file. For example, `STACK_VERSION=8.14.0-SNAPSHOT` 1. In Kibana with a feature branch checked out, run `yarn build --skip-os-packages`. -1. When the build is done, find the path to the Linux aarch64 archive shown in the many lines of logged text. +1. When the build is done, find the path to the Linux aarch64 archive shown in the many lines of logged text. It is currently being written to the `target` directory of the repo 1. Copy the archive to the `kibana-dev` folder. 1. Run `yarn build:ubuntu` to test kibana on regular ubuntu linux 1. Run `yarn build:oracle` to test kibana on oracle @@ -11,3 +11,5 @@ 1. Type `cd kibana--SNAPSHOT` then `bin/kibana` and watch the magic happen. Last tested with kibana-9.0.0-SNAPSHOT-linux-aarch64.tar.gz. + +Note that the ES data volumes are persistant, so you if you want a "fresh" ES, you'll want to delete the volumes before the `yarn build:*` step. \ No newline at end of file diff --git a/vm/rhel/Dockerfile b/vm/rhel/Dockerfile index 47beb78..0b82242 100644 --- a/vm/rhel/Dockerfile +++ b/vm/rhel/Dockerfile @@ -1,5 +1,6 @@ # Use offical red hat linux image as base image -FROM redhat/ubi8:latest +# FROM redhat/ubi8:latest +FROM centos:7 # Create a new user to avoid using root RUN useradd -ms /bin/bash developer @@ -7,21 +8,28 @@ RUN useradd -ms /bin/bash developer # Set the working directory in the container to /home/developer WORKDIR /home/developer +RUN sed -i -e 's!mirrorlist!#mirrorlist!g' /etc/yum.repos.d/CentOS-* +RUN sed -i -e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + # Install system dependencies + +# from https://www.reddit.com/r/CentOS/comments/1akkn92/dnf_on_centos_79/ +RUN yum-config-manager --enable extras + RUN yum update -y && yum install -y \ git curl vim wget \ liberation-fonts-common fontconfig nss \ - ttmkfdir rpm-build + ttmkfdir rpm-build dnf # install cabextract, required to install microsoft fonts (Arial, Times New Roman etc.) especially that liberation-fonts doesn't quite install these fonts -RUN wget -P ~/packages https://dl.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/c/cabextract-1.9-7.el8.aarch64.rpm && \ - rpm -Uvh ~/packages/cabextract-1.9-7.el8.aarch64.rpm && \ - dnf install cabextract +# RUN wget -P ~/packages https://dl.fedoraproject.org/pub/epel/8/Everything/aarch64/Packages/c/cabextract-1.9-7.el8.aarch64.rpm && \ +# rpm -Uvh ~/packages/cabextract-1.9-7.el8.aarch64.rpm && \ +# dnf install cabextract # configure web fonts -RUN wget -P ~/packages http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec && \ - rpmbuild -ba ~/packages/msttcorefonts-2.5-1.spec && \ - yum localinstall --nogpgcheck -y /root/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm +# RUN wget -P ~/packages http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec && \ +# rpmbuild -ba ~/packages/msttcorefonts-2.5-1.spec && \ +# yum localinstall --nogpgcheck -y /root/rpmbuild/RPMS/noarch/msttcorefonts-2.5-1.noarch.rpm # install nodejs RUN mkdir /usr/local/nvm