Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Daniel Romero infoslack

🏠
Working from home
View GitHub Profile
View cloudbuild.yaml
steps:
# build steps
- name: 'gcr.io/cloud-builders/docker'
args: ['pull', 'gcr.io/$PROJECT_ID/project:latest']
- name: 'gcr.io/cloud-builders/docker'
args: [ 'build', '--cache-from', 'gcr.io/$PROJECT_ID/project:latest', '-t', 'gcr.io/$PROJECT_ID/projetc:latest', '-t', 'gcr.io/$PROJECT_ID/project', '.' ]
- name: 'gcr.io/cloud-builders/docker'
args: [ 'tag', 'gcr.io/$PROJECT_ID/project', 'gcr.io/$PROJECT_ID/project:stable-v-$TAG_NAME']
@infoslack
infoslack / Dockerfile
Created Jul 5, 2017
minimal Dockerfile
View Dockerfile
FROM microsoft/dotnet:1.1.2-runtime
ADD . /app/Service.Authentication.Identity
COPY appsettings.json /var/cedro/configs/
ENTRYPOINT dotnet /app/Service.Authentication.Identity/Service.Authentication.Identity.dll
@infoslack
infoslack / demo.yml
Created Apr 22, 2017
LinuxKit Example
View demo.yml
kernel:
image: "linuxkit/kernel:4.9.x"
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/init:63eed9ca7a09d2ce4c0c5e7238ac005fa44f564b
- linuxkit/runc:b0fb122e10dbb7e4e45115177a61a3f8d68c19a9
- linuxkit/containerd:18eaf72f3f4f9a9f29ca1951f66df701f873060b
- linuxkit/ca-certificates:eabc5a6e59f05aa91529d80e9a595b85b046f935
onboot:
- name: sysctl
@infoslack
infoslack / install.sh
Created Mar 15, 2017 — forked from marklit/install.sh
Bot Detection Script. Works with Apache and Nginx Log Files.
View install.sh
sudo apt-get update
sudo apt-get install \
python-dev \
python-pip \
python-virtualenv
virtualenv findbots
source findbots/bin/activate
curl -O http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz