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
git_repository( | |
name = "io_bazel_rules_docker", | |
remote = "https://github.com/bazelbuild/rules_docker.git", | |
tag = "v0.0.1", | |
) | |
load( | |
"@io_bazel_rules_docker//docker:docker.bzl", | |
"docker_repositories", | |
"docker_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
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_build", "docker_push") | |
docker_build( | |
name = "nginx", | |
labels = {"maintainer" : "Bitnami <[email protected]>"}, | |
base = "@bitnami_minideb//image:image.tar", | |
debs = [ | |
"@glibc//file", | |
], | |
symlinks = { |
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
load("@io_bazel_rules_docker//docker:docker.bzl", "docker_build", "docker_push") | |
docker_build( | |
name = "nginx", | |
labels = {"maintainer" : "Bitnami <[email protected]>"}, | |
base = "@bitnami_minideb//image:image.tar", | |
debs = [ | |
"@glibc//file", | |
], | |
symlinks = { |
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: bazel-build | |
spec: | |
template: | |
metadata: | |
name: bazel | |
spec: | |
restartPolicy: Never |
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: Namespace | |
metadata: | |
name: linux | |
--- | |
apiVersion: v1 | |
kind: ResourceQuota | |
metadata: | |
name: quota | |
namespace: linux |
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/v2alpha1 | |
kind: CronJob | |
metadata: | |
name: cookie-app | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
spec: | |
template: | |
spec: |
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 python | |
import os | |
import json | |
import boto3 | |
import tweepy | |
consumer_key = os.getenv("consumer_key") | |
consumer_secret = os.getenv("consumer_secret") |
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 json | |
import boto3 | |
access_key="" | |
secret_key="" | |
def tweets_processor(event, context): | |
tweet = event['data'] | |
print tweet |
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
#!/bin/sh | |
set -e -x | |
apt-get --yes --quiet update | |
apt-get --yes --quiet install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ |
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
#cloud-config | |
package_update: true | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl | |
- gnupg-agent | |
- software-properties-common |