$ docker run --rm rails:4.2.5 rails new . -d mysql
$ git init
$ git add .
$ git commit -m 'initial revision'
$ cat docker-compose.yml
This file contains 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
# | |
# Copyright:: Copyright (c) 2017-2019 Chef Software Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
This file contains 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 ubuntu:18.04 | |
# copied from https://github.com/chef/chef-dk/blob/master/Dockerfile | |
ARG PACKAGE=chef-workstation | |
ARG CHANNEL=stable | |
ARG VERSION=0.2.48 | |
RUN apt-get update && \ | |
apt-get install -y wget && \ |
This file contains 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 ubuntu:16.04 | |
RUN apt-get update \ | |
&& apt-get install -y binutils build-essential sysstat strace \ | |
&& apt-get install -y \ | |
binutils build-essential sysstat \ | |
strace \ | |
&& rm -rf /var/lib/apt/lists/* | |
WORKDIR /usr/src/app |
This file contains 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
/local.env | |
/tf/*.tf | |
/tf/*.tfstate* |
This file contains 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
/** | |
* | |
*/ | |
package lesson.test.util; | |
import java.io.BufferedOutputStream; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.InputStream; | |
import java.io.PrintStream; |
This file contains 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 | |
if whence -p boot2docker 2>&1 > /dev/null; then | |
alias boot2dockerenv="boot2docker up | awk '/export/{print \$2}'" | |
alias boot2dockerhost="boot2docker up | awk -F= '/export/{print \$2}'" | |
alias boot2dockerstatus="boot2docker status | awk '{print \$5}'" | |
if whence -p docker 2>&1 > /dev/null; then | |
function docker { | |
if [[ x"`boot2dockerstatus`" == x"running." ]]; then | |
command docker --host="`boot2dockerhost`" "$@" | |
else |
This file contains 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 centos | |
# スクリプトで使われているコマンドを入れる | |
RUN yum install -y which sudo | |
# コマンド置換できるようにする (<() ってやつ) | |
#RUN ln -s /proc/self/fd /dev/fd | |
# rvm:rvm を作る(root だとインストール先が /home/<USER> にならないため一般ユーザで) | |
RUN groupadd rvm | |
RUN useradd -g rvm rvm | |
# sudo でパスワードなし,tty 不要に |
This file contains 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
grep -v '#' .gitignore|grep -v '^!'|grep -v '^$'|perl -lne 'push(@a,$_);END{print "find . ", join(" -o ", map {"-name '\''$_'\''"} @a), " | xargs git rm -r"}' |
NewerOlder