This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
kubectl delete all --all -n selenosis | |
kubectl apply -f 01-namespace.yaml | |
kubectl delete configmap selenosis-config -n selenosis | |
kubectl create cm selenosis-config --from-file=browsers.yaml=browsers.yaml -n selenosis | |
kubectl apply -f 02-service.yaml | |
kubectl get svc -n selenosis | |
kubectl apply -f 03-selenosis.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome: | |
defaultVersion: "112.0" | |
path: "/" | |
kernelCaps: | |
- SYS_ADMIN | |
versions: | |
'112.0': | |
image: seleniarm/standalone-chromium:112.0 | |
'113.0': | |
image: seleniarm/standalone-chromium:113.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: autoscaling/v1 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: selenosis | |
namespace: selenosis | |
spec: | |
maxReplicas: 10 | |
minReplicas: 1 | |
scaleTargetRef: | |
apiVersion: apps/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: selenosis | |
namespace: selenosis | |
spec: | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxSurge: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: selenoid-ui | |
namespace: selenosis | |
spec: | |
replicas: 1 | |
strategy: | |
rollingUpdate: | |
maxUnavailable: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: selenosis | |
namespace: selenosis | |
spec: | |
type: LoadBalancer | |
ports: | |
- name: selenium | |
port: 4444 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: selenosis | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRole | |
metadata: | |
namespace: selenosis | |
name: selenosis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
sonarqube: | |
image: sonarqube:community | |
hostname: sonarqube | |
container_name: sonarqube | |
depends_on: | |
- db | |
environment: | |
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
selenoid: | |
image: "aerokube/selenoid:latest" | |
container_name: selenoid | |
ports: | |
- "4445:4444" | |
networks: | |
- selenoid | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { playAudit } = require('playwright-lighthouse'); | |
const { test, chromium } = require('@playwright/test'); | |
const lighthouseDesktopConfig = require('lighthouse/lighthouse-core/config/lr-desktop-config'); | |
const { thresholds } = require('../data/thresholdData'); | |
const { URLs } = require("../resources/urls.json"); | |
const options = { | |
loglevel: "info", | |
} |
NewerOlder