urubu python CMS
This commit is contained in:
15
apps/urubu/Dockerfile
Normal file
15
apps/urubu/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
FROM python
|
||||||
|
|
||||||
|
#RUN echo 'Acquire::http::proxy "http://172.23.255.1:3142";' >/etc/apt/apt.conf.d/proxy
|
||||||
|
RUN pip3 install urubu
|
||||||
|
|
||||||
|
# CLeanup
|
||||||
|
#RUN apt-get remove -y --purge ${DEV_PKGS} && \
|
||||||
|
# apt-get autoremove --purge -y && \
|
||||||
|
# apt-get clean -y && \
|
||||||
|
# rm -rf /var/lib/apt/lists/* && \
|
||||||
|
# rm -rf /var/cache/apt/* /tmp/* /var/tmp/* /var/log/*
|
||||||
|
|
||||||
|
VOLUME [ "/data" ]
|
||||||
|
EXPOSE 8000
|
||||||
|
CMD ["make", "serve"]
|
||||||
62
apps/urubu/urubu.yaml
Normal file
62
apps/urubu/urubu.yaml
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: urubu
|
||||||
|
labels:
|
||||||
|
app: urubu
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: urubu
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: urubu
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: urubu
|
||||||
|
image: "docker-registry.lan/urubu:arm64"
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: http
|
||||||
|
resources:
|
||||||
|
{}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: urubu
|
||||||
|
labels:
|
||||||
|
app: urubu
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: http
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
|
selector:
|
||||||
|
app: urubu
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: urubu
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: urubu.lan
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- backend:
|
||||||
|
serviceName: urubu
|
||||||
|
servicePort: http
|
||||||
Reference in New Issue
Block a user