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 rmi `docker images | egrep \^\<none\> | awk '{print $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
| require 'json' | |
| def print_json(data) | |
| puts JSON.dump(data) | |
| end | |
| print_json(1) #=> 1 | |
| print_json([1]) #=> [1] | |
| print_json({a:1}) #=> {"a":1} | |
| print_json({a:1, b: 2}) #=> {"a":1,"b":2} |
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 ruby:2.6.3-slim | |
| ENV APP_DIR /webapp | |
| ENV RUBYOPT -EUTF-8 | |
| RUN set -e \ | |
| && apt-get update -y -qq \ | |
| && apt-get install -y -qq \ | |
| awscli \ | |
| build-essential \ |
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
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| # using custom image, see .circleci/images/primary/Dockerfile | |
| - image: circleci/cci-demo-docker-primary:0.0.2 | |
| working_directory: /go/src/github.com/circleci/cci-demo-docker | |
| steps: | |
| - checkout |
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
| # Wordpress on GKE | |
| # https://cloud.google.com/kubernetes-engine/docs/tutorials/persistent-disk?hl=ja | |
| # Terraform: Variables {{{ | |
| locals { | |
| project_name = "website" | |
| cluster_name = "wordpress" | |
| zone = "asia-northeast1-a" | |
| mysql_storage_name = "mysql-persistent-storage" | |
| mysql_disk_name = "mysql-disk" |
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
| RUN apk update && \ | |
| apk upgrade && \ | |
| apk add --update --no-cache --virtual=.build-dependencies \ | |
| build-base \ | |
| curl-dev \ | |
| linux-headers \ | |
| libxml2-dev \ | |
| libxslt-dev \ | |
| postgresql-dev \ |
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
| .git/* | |
| node_modules/* | |
| vendor/* | |
| logs/* | |
| *.log | |
| tags | |
| GLOBAL | |
| GTAGS | |
| GRTAGS |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCyT9V+jjD/PTBt2EuyyJVgTuCSmi+dRESJdAVTXf49rtk592K0b4S24kEYu76bWP5SKdafOwzvRHZ6wjoKU3YeOw72WEbhVod066EUjvSkYt3dQkAhlsOeLLVWRcEd/XMGRtaW5duuwVkIM5lYds+SVkw1FQEmUORqVlx8p1ymHcd99Kvv+x9SDm49xK5EoaBwgHb9ohvmjfccQ09f2g72iJaZeGhlc1Ac/JGGoFM85CGHLNIDxj16sso90So0D9kmyrMYhaPLC/ZGmA07WVzfHzhnQmYi8mJgnbrt+olYD3jrRYDsrluZSaGBPYBvKcxa9sTQe3CHzF5i4JQzQoe4DyivEx+ekfTIBA3wr+SzyGUMinhfCAP56ChtkiLGX8rZUiWBr754ofRROFmucfAu/ALbtIyGAo1D4K+bTW1rbI8/vntv2KZ0a4a/jk5uLE7wA42j4DauW6WU1u60m87GeAs4WioaybeJquA6dcwMP8PT3VqUbA/CVMykK0zFZ04xaM0jB5UaWPKdmzafOtV+OOK5Z7wlzyO9LQuZq5/3XmPrMg6Hx56YljCxj0SJrDbowXaO1Vk6A3QdD7JbHRmRKUnFSlvZqZVNLzYVmyqIEgITeRUmKBVDeJ8617xYroPpDExV2DU4sP/hy4SfbC5UdIv2MHFp5aS5LQlHq5mnfw== root@6ddd93dc83a6 |
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
| #!/bin/bash | |
| ecs_cluster_arn=$(aws ecs list-clusters | jq -r '.clusterArns[]' | fzf --layout=reverse-list) | |
| ecs_cluster=${ecs_cluster_arn##*/} | |
| container=$(aws ecs describe-tasks --tasks $(aws ecs list-tasks --cluster $ecs_cluster | jq -r '.taskArns[]') --cluster $ecs_cluster | jq -r '.tasks[] | (.group + "|" + (.containers[] | (.name + "|" + .taskArn)))' | fzf --layout=reverse-list) | |
| task_id=$(echo $container | cut -d'|' -f3) | |
| container_name=$(echo $container | cut -d'|' -f2) | |
| aws ecs execute-command --cluster $ecs_cluster \ | |
| --task $task_id \ |
OlderNewer