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 alpine | |
RUN apk add --update curl python bash && rm -rf /var/cache/apk/* | |
ENV HOME / | |
#RUN curl https://sdk.cloud.google.com | bash | |
ARG CLOUD_SDK_VERSION=151.0.1 | |
ARG SHA256SUM=26b84898bc7834664f02b713fd73c7787e62827d2d486f58314cdf1f6f6c56bb | |
RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz | |
RUN echo "${SHA256SUM} google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz" > google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz.sha256 | |
RUN sha256sum -c google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz.sha256 | |
RUN tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz |
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
pkgname=google-cloud-sdk | |
pkgver=147.0.0 | |
pkgrel=0 | |
pkgdesc="Google Cloud SDK" | |
url="https://cloud.google.com/sdk" | |
arch="x86_64" | |
license="GPL" | |
depends="python libc6-compat" | |
makedepends="$depends" | |
install="" |
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
docker run -ti alpine sh | |
$ apk add google-cloud-sdk --update-cache --repository https://storage.googleapis.com/mineral-minutia-820/alpine/v3.5/community --allow-untrusted | |
fetch https://storage.googleapis.com/mineral-minutia-820/alpine/v3.5/community/x86_64/APKINDEX.tar.gz | |
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz | |
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz | |
(1/14) Upgrading musl (1.1.15-r5 -> 1.1.15-r6) | |
(2/14) Installing libbz2 (1.0.6-r5) | |
(3/14) Installing expat (2.2.0-r0) | |
(4/14) Installing libffi (3.2.1-r2) |
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 debian | |
RUN apt-get -y update | |
RUN apt-get install -y curl supervisor git openssl build-essential libssl-dev wget | |
RUN mkdir -p /var/log/supervisor | |
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
WORKDIR /apps/ | |
RUN wget -O - http://www.squid-cache.org/Versions/v3/3.4/squid-3.4.14.tar.gz | tar zxfv - | |
RUN cd /apps/squid-3.4.14/ && ./configure --prefix=/apps/squid --enable-icap-client --enable-ssl --with-openssl --enable-ssl-crtd --enable-auth --enable-basic-auth-helpers="NCSA" && make && make install | |
ADD . /apps/ |
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 com.test; | |
import com.google.auth.oauth2.ServiceAccountCredentials; | |
import java.net.URL; | |
import java.io.FileInputStream; | |
import java.net.URLEncoder; | |
import com.google.api.client.util.Base64; | |
import java.net.HttpURLConnection; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; |
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
$ kubectl create -f my-srv.yaml -f my-rc-volume.yaml | |
service "myapp-srv" created | |
replicationcontroller "myapp-rs" created | |
$ kubectl get no,po,svc,rc | |
NAME STATUS AGE VERSION | |
no/gke-filier-cluster-default-pool-8f6193e8-21kn Ready 1h v1.6.7 | |
no/gke-filier-cluster-default-pool-8f6193e8-3tz1 Ready 1h v1.6.7 | |
no/gke-filier-cluster-default-pool-8f6193e8-ktxt Ready 1h v1.6.7 | |
NAME READY STATUS RESTARTS AGE |
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
$ gcloud container clusters create "filier-cluster" \ | |
--zone "us-central1-a" | |
---machine-type "n1-standard-1" \ | |
--num-nodes "3" |
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 main | |
import ( | |
"io/ioutil" | |
"log" | |
"time" | |
"cloud.google.com/go/storage" | |
//"golang.org/x/net/context" | |
) |
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
-----BEGIN CERTIFICATE----- | |
MIIDbzCCAlegAwIBAgIJAMZmqBYUKLnjMA0GCSqGSIb3DQEBCwUAMHcxCzAJBgNV | |
BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1Nb3VudGFpbiBW | |
aWV3MQ8wDQYDVQQKEwZHb29nbGUxEzARBgNVBAsTCkVudGVycHJpc2UxFTATBgNV | |
BAMTDFRlc3RDQWZvckVTTzAeFw0xNTEwMDkxNDU3MDlaFw0xNzA5MDgxNDU3MDla | |
MHcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1N | |
b3VudGFpbiBWaWV3MQ8wDQYDVQQKEwZHb29nbGUxEzARBgNVBAsTCkVudGVycHJp | |
c2UxFTATBgNVBAMTDFRlc3RDQWZvckVTTzCCASIwDQYJKoZIhvcNAQEBBQADggEP | |
ADCCAQoCggEBANz0vvpK6cKMg4MvVbQLk/mXNifXPZFhPQnI/Jcc4lAjrP/2r3bI | |
kUy7eGVBvB5aLl6Z0Pj8hMh7VoH7QXTJ2iXS9iEb73mdX2AFB2VuWaib7mPl0Yy2 |
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
/* | |
Sample demonstrates proxy support for google api clients in java using | |
apachetransport | |
to use, first run a squid proxy server with auth setup: | |
https://github.com/salrashid123/squid_proxy | |
docker run -p 3128:3128 -ti docker.io/salrashid123/squidproxy /bin/bash | |
then when inside the container: |