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 ruby | |
def online? | |
num = 0 | |
flag_regexp = /R[A-Z]*\n$/m | |
process = IO.popen("ifconfig -s") | |
process.each do |line| | |
num = num + 1 | |
# ignore first line | |
next if num == 1 | |
# ignore lo |
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
RUBY_IMAGE:=$(shell grep FROM Dockerfile | cut -f2 -d' ') | |
DYNAMODB_IMAGE:=dynamodb:latest # original value ommitted | |
APP_IMAGE:=inventory_service/app | |
TAG:=$(shell git rev-parse --short HEAD) | |
REGISTRY:=example.registry.com # original value omitted | |
.DEFAULT_GOAL:= build |