Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -11,3 +11,5 @@
1. Type `cd kibana-<version>-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.
24 changes: 16 additions & 8 deletions vm/rhel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
# 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

# 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
Expand Down