This file contains hidden or 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.9" | |
| services: | |
| ollama: | |
| container_name: ollama | |
| image: ollama/ollama:{{ ollama.docker_image }} | |
| restart: always | |
| volumes: | |
| - ollama:/root/.ollama | |
| open-webui: | |
| build: |
This file contains hidden or 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
| package android.demo; | |
| import io.appium.java_client.MobileBy; | |
| import io.appium.java_client.android.AndroidDriver; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.TimeoutException; | |
| import org.openqa.selenium.WebElement; | |
| import org.openqa.selenium.remote.DesiredCapabilities; | |
| import org.openqa.selenium.support.ui.ExpectedConditions; | |
| import org.openqa.selenium.support.ui.WebDriverWait; |
This file contains hidden or 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
| import { interpolate } from "@pulumi/pulumi"; | |
| import * as docker from "@pulumi/docker"; | |
| import { externalIP, dockerInstallation, selenoidBrowserJson } from "./gcp"; | |
| // Remote docker connection | |
| const remoteInstance = new docker.Provider( | |
| "remote", | |
| { | |
| host: interpolate`ssh://madhankumaravelu93@${externalIP}:22`, | |
| sshOpts: [ |
This file contains hidden or 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
| FROM gradle:5.6.4-jdk11 as cache | |
| RUN mkdir -p /home/gradle/cache_home | |
| ENV GRADLE_USER_HOME /home/gradle/cache_home | |
| COPY build.gradle /home/gradle/java-code/ | |
| WORKDIR /home/gradle/java-code | |
| RUN gradle clean build -i --stacktrace | |
| FROM gradle:5.6.4-jdk11 | |
| COPY --from=cache /home/gradle/cache_home /home/gradle/.gradle | |
| COPY . /usr/src/java-code/ |
This file contains hidden or 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
| // Remote docker connection | |
| const remoteInstance = new docker.Provider( | |
| "remote", | |
| { | |
| host: interpolate`ssh://madhankumaravelu93@${externalIP}:22`, | |
| sshOpts: [ | |
| "-o", | |
| "StrictHostKeyChecking=no", | |
| "-o", | |
| "UserKnownHostsFile=/dev/null", |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| while [ ! -f /var/lib/cloud/instance/boot-finished ]; do echo 'Waiting for cloud-init...'; sleep 1; done | |
| sudo apt-get update | |
| sudo apt-get -y install docker.io docker-compose | |
| # add current user to docker group so there is no need to use sudo when running docker |
This file contains hidden or 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
| ❯ pulumi up | |
| Previewing update (dev) | |
| View Live: Pulumi link | |
| Type Name Plan | |
| + pulumi:pulumi:Stack android-gcp-pulumi-dev create | |
| + ├─ gcp:serviceAccount:Account my-service-account create | |
| + ├─ gcp:compute:Network network create |
This file contains hidden or 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
| import * as gcp from "@pulumi/gcp"; | |
| import { remote, types } from "@pulumi/command"; | |
| import { Config, interpolate } from "@pulumi/pulumi"; | |
| import * as fs from "fs"; | |
| import * as os from "os"; | |
| import * as path from "path"; | |
| const config = new Config(); | |
| const privateKeyBase64 = config.get("privateKeyBase64"); |
This file contains hidden or 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: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: e2e | |
| namespace: selenosis | |
| spec: | |
| backoffLimit: 0 # Specifies the number of retries before marking this job failed. | |
| template: | |
| metadata: | |
| labels: |
This file contains hidden or 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: batch/v1 | |
| kind: Job | |
| metadata: | |
| name: pre-pull-browser-images | |
| spec: | |
| ttlSecondsAfterFinished: 10 | |
| parallelism: 2 | |
| template: | |
| spec: | |
| containers: |
NewerOlder