View Makefile
tag=tarata/migrater
build:
docker build -f ./migrater.Dockerfile -t $(tag) .
View Makefile
tag=tarata/php-with-httpd
build:
docker build -f ./php-with-httpd -t $(tag) .
View Makefile
AWS=$(shell which aws)
ECS=$(shell which ecs-cli)
.DEFAULT_GOAL:=help
KEYNAME=ecs_cli_sample
CLUSTER=ecs-cli-sample
help:
cat Makefile
keypair/create:
View Makefile
NPM=$(shell which npm)
install: $(NPM)
$(NPM) install
webpack: $(NPM)
$(NPM) run webpack -- --config ./webpack.config.js
webpack/correct: $(NPM)
$(NPM) run webpack -- --config ./webpack.config.corrent.js
View Dockerfile
FROM php:fpm
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
View http.go
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
)
func main() {
View redundant_type_declaration.go
package main
import "fmt"
type Hoge struct {
AAA string
}
type Fuga struct {
hs map[string]Hoge
View main.go
package main
import (
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
)
type Hoge struct {
View redash.mk
conf=docker-compose.production.yml
help:
@echo "1st make setup"
@echo "2nd make run"
run: .redash
docker-compose -f $</$(conf) up
setup: .redash
View github.api.mk
token=
number=
owner=
repo=
list:
curl 'https://api.github.com/repos/$(owner)/$(repo)/pulls?access_token=$(token)&state=open'
detail:
curl 'https://api.github.com/repos/$(owner)/$(repo)/pulls/$(number)?access_token=$(token)'