$ kubectl apply -f - <<EOF
<-- insert YAML content here -->
EOF
OR
$ cat file.yaml | kubectl apply -f -
$ kubectl apply -f - <<EOF
<-- insert YAML content here -->
EOF
OR
$ cat file.yaml | kubectl apply -f -
| version: 0.2 | |
| phases: | |
| install: | |
| runtime-versions: | |
| python: 3.8 | |
| pre_build: | |
| commands: | |
| - apt-get install -y python3-venv | |
| - python3.6 -m venv test_venv |
| FROM ubuntu:latest | |
| RUN apt-get update \ | |
| && apt-get install -y python3-pip python3-dev \ | |
| && cd /usr/local/bin \ | |
| && ln -s /usr/bin/python3 python \ | |
| && pip3 install --upgrade pip | |
| # INSTALL DEPENDENCIES | |
| RUN apt-get install -y curl unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4 |
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build_web: |
| import imagetyperzapi2 | |
| #... then go to the page using a webdriver object called driver | |
| try: | |
| driver.find_element_by_xpath("//*[@data-sitekey]") | |
| captcha = True | |
| except NoSuchElementException: | |
| captcha = False |
| # Based on https://hub.docker.com/r/graylog/graylog/ | |
| # Date: dec. 2018 | |
| version: '2' | |
| services: | |
| # MongoDB: https://hub.docker.com/_/mongo/ | |
| mongo: | |
| image: mongo:3 | |
| # Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/docker.html | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:6.5.1 |
| import keras | |
| from keras.applications.vgg16 import VGG16 | |
| from keras.applications.vgg16 import preprocess_input, decode_predictions | |
| from keras.preprocessing import image | |
| import keras.backend as K | |
| import tensorflow as tf | |
| from tensorflow.python.framework import ops | |
| import numpy as np |
| #!/bin/bash | |
| # Get directory of script | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| if [[ $# -ne 1 ]] | |
| then | |
| echo "ERROR: This script expects the namespace name to be given as an argument" | |
| echo "e.g. ./ecr-cred-updater.sh my-namespace" | |
| exit 1 |
| from __future__ import print_function | |
| from sqlalchemy import * | |
| from sqlalchemy.orm import create_session | |
| from sqlalchemy.ext.declarative import declarative_base | |
| Base = declarative_base() | |
| engine = \ | |
| create_engine("postgresql://...") | |
| metadata = MetaData(bind=engine) |