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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: app-ingress | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
cert-manager.io/cluster-issuer: "letsencrypt-prod" | |
spec: | |
tls: | |
- hosts: |
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: v1 | |
kind: Secret | |
metadata: | |
name: regcred | |
data: | |
.dockerconfigjson: DOCKER_CONFIG | |
type: kubernetes.io/dockerconfigjson | |
--- | |
# This section will create a deployment in the Kubernetes cluster | |
apiVersion: apps/v1 |
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
# This is a sample build configuration for Python. | |
# Check our guides at https://confluence.atlassian.com/x/x4UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
definitions: | |
services: | |
docker: | |
memory: 4096 |
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: | |
redis: | |
image: 'redis:alpine' | |
ports: | |
- '6379:6379' | |
networks: | |
- redis | |
server: | |
restart: on-failure |
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 node:alpine | |
# Create app directory | |
WORKDIR /usr/src/app | |
# ENV LANG es_ES.UTF-8 | |
# ENV LC_ALL es_ES.UTF-8 | |
# ENV LANGUAGE es_ES.UTF-8 | |
# ENV TZ America/Bogota | |
RUN apk add git |
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
/** | |
* Launch Puppeteer chromium instance with MetaMask plugin installed | |
* */ | |
export async function launch(puppeteerLib: typeof puppeteer, options: LaunchOptions): Promise<puppeteer.Browser> { | |
if (!options || !options.metamaskVersion) | |
throw new Error( | |
`Pleas provide "metamaskVersion" (use recommended "${RECOMMENDED_METAMASK_VERSION}" or "latest" to always get latest release of MetaMask)`, | |
); | |
const { args, metamaskVersion, metamaskLocation, ...rest } = options; |
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
const downloadMetamaskLocally = async (): Promise<string> => { | |
try { | |
let metamaskPath = await download({ | |
metamaskVersion: "v10.1.1", | |
metamaskLocation: './home/browserless' | |
}); | |
return metamaskPath; | |
} catch (e) { |