File tree Expand file tree Collapse file tree 6 files changed +27
-6
lines changed
Expand file tree Collapse file tree 6 files changed +27
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,19 @@ RUN touch /etc/subgid /etc/subuid \
77
88ENV BUILDAH_ISOLATION=chroot
99
10+ ARG BENTO_USER=bentoml
11+ ARG BENTO_USER_UID=1034
12+ ARG BENTO_USER_GID=1034
13+ RUN groupadd -g $BENTO_USER_GID -o $BENTO_USER && useradd -m -u $BENTO_USER_UID -g $BENTO_USER_GID -o -r $BENTO_USER
14+
15+ RUN echo $BENTO_USER:$BENTO_USER_UID:$BENTO_USER_GID >> /etc/subuid \
16+ && echo $BENTO_USER:$BENTO_USER_UID:$BENTO_USER_GID >> /etc/subgid
17+
18+ RUN echo "export BUILDAH_ISOLATION=chroot" >> /home/build/.bashrc
19+
20+ RUN mkdir -p /home/build/.config/containers \
21+ && (echo '[storage]' ;echo 'driver = "vfs"' ) > /home/build/.config/containers/storage.conf
22+
1023USER build
1124WORKDIR /home/build
1225
Original file line number Diff line number Diff line change 1- IMAGE := quay.io/bentoml/bentoml-buildah:0.0.1
1+ IMAGE := quay.io/bentoml/bentoml-buildah:0.0.3
22
33build :
44 docker build -t ${IMAGE} .
Original file line number Diff line number Diff line change @@ -1604,6 +1604,10 @@ echo "Done"
16041604 inClusterImageName ,
16051605 ),
16061606 }
1607+ envs = append (envs , corev1.EnvVar {
1608+ Name : "BUILDAH_ISOLATION" ,
1609+ Value : "chroot" ,
1610+ })
16071611 default :
16081612 err = errors .Errorf ("unknown bento image build engine %s" , buildEngine )
16091613 return
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ internalImages:
100100 kaniko : quay.io/bentoml/kaniko:1.9.1
101101 buildkit : quay.io/bentoml/buildkit:master
102102 buildkitRootless : quay.io/bentoml/buildkit:master-rootless
103- buildah : quay.io/bentoml/bentoml-buildah:0.0.1
103+ buildah : quay.io/bentoml/bentoml-buildah:0.0.2
104104
105105bentoImageBuildEngine : kaniko # options: kaniko, buildkit, buildkit-rootless
106106runInOpenshift : false
Original file line number Diff line number Diff line change @@ -58,5 +58,9 @@ function trap_handler() {
5858trap trap_handler EXIT
5959
6060echo " β starting yatai-image-builder..."
61- env $( kubectl -n yatai-image-builder get secret yatai-image-builder-env -o jsonpath=' {.data}' | $jq ' to_entries|map("\(.key)=\(.value|@base64d)")|.[]' | xargs) make run
61+ env $( kubectl -n yatai-image-builder get secret yatai-image-builder-env -o jsonpath=' {.data}' | $jq ' to_entries|map("\(.key)=\(.value|@base64d)")|.[]' | xargs) \
62+ BENTO_IMAGE_BUILD_ENGINE=buildah \
63+ INTERNAL_IMAGES_BENTO_DOWNLOADER=quay.io/bentoml/bento-downloader:0.0.3 \
64+ INTERNAL_IMAGES_BUILDAH=quay.io/bentoml/bentoml-buildah:0.0.2 \
65+ make run
6266
Original file line number Diff line number Diff line change 22
33set -xe
44
5- kubectl create ns yatai-system
6- kubectl create ns yatai-image-builder
5+ kubectl create ns yatai-system || true
6+ kubectl create ns yatai-image-builder || true
77kubectl create ns yatai || true
88
99echo " π Creating AWS Secret Access Key..."
10- kubectl create secret generic aws-secret-access-key --from-literal=AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} --namespace yatai-image-builder
10+ kubectl create secret generic aws-secret-access-key --from-literal=AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} --namespace yatai-image-builder || true
1111echo " π Installing yatai-image-builder..."
1212YATAI_ENDPOINT=' empty' USE_LOCAL_HELM_CHART=true UPGRADE_CRDS=false AWS_SECRET_ACCESS_KEY_EXISTING_SECRET_NAME=aws-secret-access-key AWS_SECRET_ACCESS_KEY_EXISTING_SECRET_KEY=AWS_SECRET_ACCESS_KEY bash ./scripts/quick-install-yatai-image-builder.sh
1313echo " yatai-image-builder helm release values:"
You canβt perform that action at this time.
0 commit comments