- ざっくり概要として、CMDとENTRYPOINT どちらを使うかによって
docker run CONTAINER_ID <command>した際の<command>が及ぼす影響 が変わる
- Dockerfile
| #!/bin/sh | |
| sudo yum -y install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel | |
| mkdir /tmp | |
| #Yasm | |
| cd /tmp | |
| git clone --depth 1 git://github.com/yasm/yasm.git | |
| cd yasm | |
| autoreconf -fiv |
| #!/bin/bash | |
| set -x | |
| export SHA1=`echo ${CIRCLE_SHA1} | cut -c1-7` | |
| # 引数で配布先のbucketを分けたい | |
| if [ $#$ -ne 1 ]; then | |
| export SL_COLOR="danger" | |
| export SL_TEXT="Sync failure: Not enough args in CircleCI: $S3 - ${CIRCLE_BRANCH} (<${CIRCLE_COMPARE_URL}|${SHA1}>) by ${CIRCLE_USERNAME} !!" | |
| export SL_ICON="http://cdn.dev.classmethod.jp/wp-content/uploads/2014/05/aws_icon-s3_white-200x200.png" |
docker run CONTAINER_ID <command> した際の<command>が及ぼす影響 が変わる| package main | |
| import ( | |
| "encoding/json" | |
| "github.com/mizzy/consul-catalog" | |
| "log" | |
| "os" | |
| "reflect" | |
| "time" | |
| ) |
| # Stopping firewall | |
| /etc/init.d/iptables stop | |
| # Install EPEL-6 yum repo | |
| rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| # Install Erlang | |
| yum -y install erlang | |
| # Install RabbitMQ from RPM |
| # app.psgi | |
| use strict; | |
| use warnings; | |
| use WAF; | |
| any '/' => sub { | |
| my $c = shift; | |
| $c->render('index.tt', { name => 'shiba_yu36' }); | |
| }; |