File tree 4 files changed +39
-4
lines changed
container-images/pragmatic
4 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 69
69
70
70
- name : Build Images
71
71
run : |
72
- make build_rm
72
+ make build-rm
Original file line number Diff line number Diff line change @@ -12,11 +12,15 @@ PATH := $(PATH):$(HOME)/.local/bin
12
12
default : help
13
13
14
14
help :
15
- @echo " Build Container"
15
+ @echo " Build Container Image "
16
16
@echo
17
17
@echo " - make build"
18
18
@echo " - make build IMAGE=ramalama"
19
19
@echo
20
+ @echo " Build RAG Container Image"
21
+ @echo
22
+ @echo " - make build-rag IMAGE=quay.io/ramalama/ramalama"
23
+ @echo
20
24
@echo " Build docs"
21
25
@echo
22
26
@echo " - make docs"
@@ -77,10 +81,14 @@ install: docs completions
77
81
build :
78
82
./container_build.sh build $(IMAGE )
79
83
80
- .PHONY : build_rm
81
- build_rm :
84
+ .PHONY : build-rm
85
+ build-rm :
82
86
./container_build.sh -r build $(IMAGE )
83
87
88
+ .PHONY : build-rag
89
+ build-rag :
90
+ podman build --build-arg IMAGE=${IMAGE} -t ${IMAGE} -rag container-images/pragmatic
91
+
84
92
.PHONY : install-docs
85
93
install-docs : docs
86
94
make -C docs install
Original file line number Diff line number Diff line change
1
+ ARG IMAGE=quay.io/ramalama/ramalama:latest
2
+ FROM $IMAGE
3
+
4
+ COPY pragmatic/build_pragmatic.sh /tmp/
5
+ RUN sh /tmp/build_pragmatic.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ clone_and_build_pragmatic () {
4
+ git clone https://github.com/redhat-et/PRAGmatic
5
+ cd PRAGmatic
6
+ git submodule update --init --recursive
7
+ PYTHON_VERSION=" python3 -m"
8
+
9
+ if [ " $( python3 --version) " \< " Python 3.11" ]; then
10
+ dnf install -y python3.11 python3.11-pip
11
+ PYTHON_VERSION=" /usr/bin/python3.11 -m"
12
+ fi
13
+
14
+ ${PYTHON_VERSION} pip install -r requirements.txt --prefix=/usr
15
+ ${PYTHON_VERSION} pip install --prefix=/usr .
16
+ cd ..
17
+ }
18
+
19
+ clone_and_build_pragmatic
20
+ rm -rf /var/cache/* dnf* /opt/rocm-* /lib/* /library/* gfx9* /root/.cache /root/buildinfo PRAGmatic
21
+ dnf -y clean all
22
+ ldconfig
You can’t perform that action at this time.
0 commit comments