Bootstrapped.
Some checks failed
Home Cluster Builds/Image-FastApi-Arm64/pipeline/head There was a failure building this commit

This commit is contained in:
2023-01-12 13:44:22 +02:00
parent 6fbcae07cf
commit 887a529b86
4 changed files with 16 additions and 31 deletions

View File

@@ -1 +1,13 @@
FROM nginx:latest
FROM python:3.8-slim
RUN python3 -m venv /venv
RUN . /venv/bin/activate && pip install --no-cache-dir anyio==3.6.1 asgiref==3.5.2 \
certifi==2022.6.15 charset-normalizer==2.0.12 click==8.1.3 dnspython==2.2.1 email-validator==1.2.1 \
fastapi==0.78.0 h11==0.13.0 httptools==0.4.0 idna==3.3 itsdangerous==2.1.2 Jinja2==3.1.2 \
MarkupSafe==2.1.1 orjson==3.7.3 pydantic==1.9.1 python-dateutil==2.8.2 python-dotenv==0.20.0 \
python-multipart==0.0.5 PyYAML==6.0 requests==2.28.0 six==1.16.0 sniffio==1.2.0 starlette==0.19.1 \
typing-extensions==4.2.0 ujson==5.3.0 urllib3==1.26.9 uvicorn==0.17.6 uvloop==0.16.0 watchgod==0.8.2 \
websockets==10.3 SQLAlchemy==1.4.42 PyMySQL==1.0.2 mysql-connector-python==8.0.31 xmltodict==0.13.0
CMD . /venv/bin/activate && exec python

View File

@@ -8,11 +8,11 @@ pipeline {
apiVersion: v1
kind: Pod
metadata:
name: {{k3sApp}}-image-build
name: fastapi-arm-image-build
spec:
serviceAccountName: jenkins-admin
nodeSelector:
kubernetes.io/arch: {{k3sArch}}
kubernetes.io/arch: arm64
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:debug

View File

@@ -1,3 +1,3 @@
destinationRegistry=192.168.195.195:30000
imageName=nginx
imageName=fastapi-arm
imageTag=latest

View File

@@ -1,27 +0,0 @@
#!/bin/bash
echo "Hello, lets get your project set up. Please follow the prompts attentively."
echo ""
read -p " K3S Build Pod Name: " k3sApp
read -p " Build Architecture: [amd64 | arm64] " k3sArch
echo ""
echo "Creating Folders"
echo " Creating cicd/"
mkdir cicd
echo ""
echo "Loading files"
echo " Loading cicd/Jenkinsfile"
cp template/Jenkinsfile cicd/Jenkinsfile
sed -ie "s|{{k3sApp}}|$k3sApp|g" cicd/Jenkinsfile
sed -ie "s|{{k3sArch}}|$k3sArch|g" cicd/Jenkinsfile
rm cicd/Jenkinsfilee
echo ""
echo "Removing template folder"
rm -rf template
echo ""
echo "Thank you! Happy building..."