Skip to content
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

WIP: milvus on rhel 9 #1

Closed
Closed
Changes from 1 commit
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
Prev Previous commit
add workflow
Signed-off-by: greg pereira <grpereir@redhat.com>
Gregory-Pereira committed Jun 12, 2024
commit 25a83b189cfb29d01a82606903dfba5ca534a7a4
56 changes: 56 additions & 0 deletions .github/workflows/ai-lab-remote-rhel-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: AI-lab remove rhel-build

on:
workflow_dispatch:

pull_request:
branches:
- master
paths:
- 'build/docker/builder/cpu/rhel9/**'
- '.github/workflows/ai-lab-remote-rhel-build.yaml'

env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_VAR_vpc_id: ${{ secrets.VPC_ID }}
TF_VAR_rh_access: ${{ secrets.RH_ACCESS }}
TF_VAR_rh_org: ${{ secrets.RH_ORG }}
TF_VAR_ami_id: ${{ secrets.AMI_ID }}

jobs:
podman-remote:
runs-on: ubuntu-24.04
steps:
- uses: hashicorp/setup-terraform@v3

- name: Checkout code
uses: actions/checkout@v2

- name: sshkeygen for ansible
run: ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N ""

- name: Terraform Init
run: terraform init

- name: Terraform Apply
run: terraform apply -auto-approve

- name: Terraform Output
id: terraform-output
run: |
echo "id=$(terraform output id | xargs)" >> $GITHUB_OUTPUT
echo "url=$(terraform output host | xargs)" >> $GITHUB_OUTPUT
echo "ssh_public_key=$(terraform output ssh_public_key | xargs)" >> $GITHUB_OUTPUT
echo "pem_filename=$(terraform output pem_filename | xargs)" >> $GITHUB_OUTPUT
working-directory: terraform-test-environment-module

- name: Install podman remote
run: |
sudo apt-get install -y podman podman-remote
sudo apt-get install -y jq

- name: Terraform Destroy
if: always()
run: terraform destroy -auto-approve
1 change: 1 addition & 0 deletions build/docker/builder/cpu/rhel9/Dockerfile
Original file line number Diff line number Diff line change
@@ -37,6 +37,7 @@ RUN dnf install -y make cmake automake gcc gcc-c++ \
RUN alias python3='python3.11'

# Assumes you have a valid subman subscription
# This gets used for the codeready-builder-for-rhel-9-<arch> stream for openblas-devel

COPY build/docker/builder/cpu/rhel9/install-rpms.sh /root/install-rpms.sh
RUN chmod +x /root/install-rpms.sh
4 changes: 3 additions & 1 deletion build/docker/milvus/rhel9/Dockerfile
Original file line number Diff line number Diff line change
@@ -14,11 +14,13 @@ FROM registry.access.redhat.com/ubi9/ubi:9.4-947.1717074712

ARG TARGETARCH

# assumes repo of codeready-builder-for-rhel-9-<arch>
RUN dnf install -y wget libgomp libaio libatomic

USER 0

# Assumes you have a valid subman subscription
# This gets used for the codeready-builder-for-rhel-9-<arch> stream for openblas-devel

COPY build/docker/milvus/rhel9/install-openblas.sh /home/install-openblas.sh
RUN chmod +x /home/install-openblas.sh
RUN TARGETARCH=$TARGETARCH /home/install-openblas.sh