Compare commits

...
4 Commits
Author SHA1 Message Date
brb ece4304306 added argocd manifests
pipeline / Test (push) Successful in 38s
2023-08-22 16:05:46 +02:00
brb 3d81eee094 added jenkinsfile
pipeline / Test (push) Successful in 35s
2023-07-26 12:09:01 +02:00
brb 448f757bd1 added copying of JDK 17 into image
pipeline / Test (push) Successful in 33s
Docker / Test (push) Successful in 30s
Docker / Publish (push) Successful in 27s
2023-07-24 16:24:01 +02:00
brb 89d29492e6 removed non utf8 character
pipeline / Test (push) Successful in 32s
2023-07-24 11:56:47 +02:00
6 changed files with 76 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: pipeline name: pipeline
run-name: ${{ gitea.actor }} is running script run-name: ${{ gitea.actor }} is running script
runs-on: ubuntu-latest runs-on: ubuntu-latest
on: on:
push: push:
+5
View File
@@ -5,6 +5,11 @@
# pull official base image # pull official base image
FROM python:3.10-bookworm as BUILDER FROM python:3.10-bookworm as BUILDER
# install JDK 17
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=eclipse-temurin:17-jre $JAVA_HOME $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"
# install Ookla's speedtest # install Ookla's speedtest
RUN apt update && \ RUN apt update && \
apt install -y speedtest-cli apt install -y speedtest-cli
Vendored
+21
View File
@@ -0,0 +1,21 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
}
}
stage('Test') {
steps {
echo 'Testing..'
}
}
stage('Deploy') {
steps {
echo 'Deploying..'
}
}
}
}
+8
View File
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: app-config
namespace: bandwidth-probing
data:
USER_ID: "1"
SCHEDULE: "05 * * * *"
+37
View File
@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: bandwidth-probing
namespace: bandwidth-probing
labels:
environment: live
app: bandwidth-probing
spec:
replicas: 1
selector:
matchLabels:
app: bandwidth-probing
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: bandwidth-probing
spec:
containers:
- envFrom:
- configMapRef:
name: app-config
image: '192.168.1.2:5000/brian/bandwidth_probing:v1.3.2'
imagePullPolicy: Always
name: bandwidth-probing
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 50m
memory: 64Mi
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: bandwidth-probing