Skip to content

Instantly share code, notes, and snippets.

version: '2'
services:
app-dev:
build:
context: .
dockerfile: Dockerfile-dev
image: devops-jumpstart-dev:latest
ports:
- "80:8080"
volumes:
FROM ruby:2.3-alpine
RUN apk add --update alpine-sdk && \
apk add --update mysql-dev && \
apk add --update libxslt-dev libxml2-dev && \
apk add --update ruby-dev && \
apk add --update libxslt libxml2 && \
apk add --update xz-dev && \
apk add --update zlib-dev && \
apk add --update linux-headers && \
node('', {
def version = "1.${env.BUILD_NUMBER}"
stage 'Checkout and Build'
git url: 'https://github.com/joebew42/daily-activity-log-to-rss.git'
sh "git tag ${version}"
createVirtualEnv 'env'
node('', {
def url = new URL('http://www.google.com')
def httpCon = (HttpURLConnection) url.openConnection();
httpCon.setRequestMethod('POST')
})
String basePath = 'project-x'
String checkoutAndBuild = 'checkout-and-build'
String integrationTest = 'integration-test'
String deployInTest = 'deploy-test'
String acceptanceTest = 'acceptance-test'
String deployInProduction = 'deploy-production'
folder(basePath) {
description 'Mega project'
}
@joebew42
joebew42 / service-checklist.md
Created December 22, 2016 22:38 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?

Setup:

apt-get update; apt-get install nodejs net-tools

Configuration:

export DISPLAY=:99
@joebew42
joebew42 / arch-linux
Last active September 24, 2017 18:06 — forked from njam/arch-linux
Install Arch Linux on XPS 13 9360
# Installation on Dell XPS
# Please also consult official docu:
# https://wiki.archlinux.org/index.php/Installation_Guide
# https://wiki.archlinux.org/index.php/Dell_XPS_13_(9360)
# https://wiki.archlinux.org/index.php/Dell_XPS_15_(9550)
# Disable the secure boot
# F2 to enter to UEFI setup, check `disable secure boot` under the `secure boot` section
# Save settings and exit