Skip to content

Instantly share code, notes, and snippets.

View Vinay08sharma's full-sized avatar

Vinay Sharma Vinay08sharma

View GitHub Profile
#!/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
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
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: selenosis
namespace: selenosis
spec:
maxReplicas: 10
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
@Vinay08sharma
Vinay08sharma / 03-selenosis.yaml
Last active August 15, 2023 16:07
Selenosis deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: selenosis
namespace: selenosis
spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
apiVersion: apps/v1
kind: Deployment
metadata:
name: selenoid-ui
namespace: selenosis
spec:
replicas: 1
strategy:
rollingUpdate:
maxUnavailable: 0
apiVersion: v1
kind: Service
metadata:
name: selenosis
namespace: selenosis
spec:
type: LoadBalancer
ports:
- name: selenium
port: 4444
apiVersion: v1
kind: Namespace
metadata:
name: selenosis
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
namespace: selenosis
name: selenosis
@Vinay08sharma
Vinay08sharma / docker-compose.yml
Created July 22, 2023 08:19
sonarqube-docker-compose.yml
version: "3"
services:
sonarqube:
image: sonarqube:community
hostname: sonarqube
container_name: sonarqube
depends_on:
- db
environment:
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
version: '3'
services:
selenoid:
image: "aerokube/selenoid:latest"
container_name: selenoid
ports:
- "4445:4444"
networks:
- selenoid
volumes:
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",
}