Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Jan 18, 2023
1 parent ec2424a commit df7e2d6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
5 changes: 5 additions & 0 deletions container_images/buildah/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ RUN touch /etc/subgid /etc/subuid \

ENV BUILDAH_ISOLATION=chroot

ARG BENTO_USER=bentoml
ARG BENTO_USER_UID=1034
ARG BENTO_USER_GID=1034
RUN groupadd -g $BENTO_USER_GID -o $BENTO_USER && useradd -m -u $BENTO_USER_UID -g $BENTO_USER_GID -o -r $BENTO_USER

USER build
WORKDIR /home/build

13 changes: 12 additions & 1 deletion scripts/quick-install-yatai-image-builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ echo "✅ cert-manager is working properly"
helm repo add twuni https://helm.twun.io
helm repo update twuni
echo "🤖 installing docker-registry..."
helm upgrade --install docker-registry twuni/docker-registry -n ${namespace}
helm upgrade --install docker-registry ./helm/docker-registry -n ${namespace}

echo "⏳ waiting for docker-registry to be ready..."
kubectl -n ${namespace} wait --for=condition=ready --timeout=600s pod -l app=docker-registry
Expand All @@ -155,6 +155,8 @@ metadata:
namespace: ${namespace}
labels:
app: docker-private-registry-proxy
annotations:
openshift.io/scc: hostnetwork
spec:
selector:
matchLabels:
Expand All @@ -165,6 +167,10 @@ spec:
labels:
app: docker-private-registry-proxy
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- args:
- tcp
Expand All @@ -181,6 +187,11 @@ spec:
limits:
cpu: 100m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
EOF

echo "⏳ waiting for docker-private-registry-proxy to be ready..."
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/installation_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

set -xe

kubectl create ns yatai-system
kubectl create ns yatai-image-builder
kubectl create ns yatai-system || true
kubectl create ns yatai-image-builder || true
kubectl create ns yatai || true

echo "🚀 Creating AWS Secret Access Key..."
kubectl create secret generic aws-secret-access-key --from-literal=AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} --namespace yatai-image-builder
kubectl create secret generic aws-secret-access-key --from-literal=AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} --namespace yatai-image-builder || true
echo "🚀 Installing yatai-image-builder..."
YATAI_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
echo "yatai-image-builder helm release values:"
Expand Down

0 comments on commit df7e2d6

Please sign in to comment.