Slide 1

Slide 1 text

$JSDMF$*Ͱ EPDLFSDPNQPTF࠷ڧ גࣜձࣾϚπϦΧ/PUJBࣄۀ੹೚ऀ"ZVNV4VNJEB

Slide 2

Slide 2 text

͋ɺࠓ೔ͷ͓୊͸ d34QFDςετʹ͍ͭͯd ͬͯ͜ͱ͸Θ͔͍ͬͯ·͢

Slide 3

Slide 3 text

ࣗݾ঺հ

Slide 4

Slide 4 text

גࣜձࣾ ϚπϦΧ 4FOTFT 4'"$3. /PUJB &NBJM5SBDLJOH 3BJMTPS3FBDU ΤϯδχΞ ઈࢍืूதͰ͢ʂ

Slide 5

Slide 5 text

w େֶߦ͖ͳ͕Β*5ϕϯνϟʔاۀͰ໿೥ؒ༗ঈΠϯλʔϯ w 1)1 .Z42- $BLF1)1 Y 8PSEQSFTT $ "41 /&5 w ౦ࣳ৘ใγεςϜגࣜձࣾͰ೥ؒϔϧεέΞࣄۀʹैࣄ w 7#/&5 $ 0SBDMF%BUBCBTF w ̍ਓͰىۀ͠Α͏ͱࢼΈΔ͕ࣦഊ w 3VCZPO3BJMT 'VFM1)1 .Z42- "84 "OTJCMF w גࣜձࣾϚπϦΧʹΤϯδχΞೋਓ໨Ͱ+PJO w 4FOTFTͱ/PUJBΛ։ൃӡ༻ w 3VCZPO3BJMT "OHVMBS+4 .Z42- "84 ܦྺ

Slide 6

Slide 6 text

Έͳ͞Μ͸ϩʔΧϧͷ ։ൃ؀ڥ͸EPDLFSͰߏங͍ͯ͠·͔͢ʁ

Slide 7

Slide 7 text

ࢲ͸΋͏શͯEPDLFSͰߏங͠ ͍ͯ·͢

Slide 8

Slide 8 text

mysql: image: mysql:5.7 ports: - 3306:3306 volumes: - ./docker/mysql/conf.d:/etc/mysql/conf.d - mysql-data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: root .Z42-ͷىಈ

Slide 9

Slide 9 text

rails_api: tty: true stdin_open: true build: context: . dockerfile: Dockerfile entrypoint: sh /app/docker/bin/wait_for_mysql.sh sh /app/docker/bin/rails_start.sh ports: - 3000:3000 volumes: - .:/app environment: - DB_USERNAME=root - DB_PASSWORD=root - DB_HOST=mysql - DOCKER_HOST=0.0.0.0 depends_on: - mysql - redis - mongodb - dynamodb 3BJMTͷىಈ

Slide 10

Slide 10 text

$JSDMF$*7͔ΒEPDLFS͕

Slide 11

Slide 11 text

ศརʹͳΓ·ͨ͠ΑͶ

Slide 12

Slide 12 text

͋Εʁࠓ೔ͷ͓୊͸ d34QFDςετʹ͍ͭͯd Ͱ͸ʁ

Slide 13

Slide 13 text

҆৺͍ͯͩ͘͠͞ɻ ࠷ޙʹग़͖ͯ·͢ɻ

Slide 14

Slide 14 text

EPDLFSDPNQPTF $JSDMF$*ʜ ͦ͜Ͱࢥͬͨ

Slide 15

Slide 15 text

͜ͷϩʔΧϧ։ൃ؀ڥͷ EPDLFSDPNQPTFZNMΛ $JSDMF$*্Ͱ࢖͑ͨΒ

Slide 16

Slide 16 text

ςετ؀ڥΛҙࣝ͠ͳͯ͘ Α͘ͳΔͷͰ

Slide 17

Slide 17 text

%9ͷվળʹͳΔͷͰ͸ʁ

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

- run: name: Install Docker Compose command: | curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` > ~/docker-compose chmod +x ~/docker-compose sudo mv ~/docker-compose /usr/local/bin/docker-compose EPDLFSDPNQPTFΛΠϯετʔϧ

Slide 20

Slide 20 text

- run: name: docker-compose up command: | set -x docker-compose up --build -d EPDLFSDPNQPTFVQ

Slide 21

Slide 21 text

- run: name: docker-compose stop command: | set -x docker-compose stop EPDLFSDPNQPTFTUPQ

Slide 22

Slide 22 text

- run: name: docker-compose up command: | set -x docker-compose up --build -d EPDLFSDPNQPTFVQ

Slide 23

Slide 23 text

- run: name: test command: | mkdir /tmp/test-results TEST_FILES="$(circleci tests glob 'spec/**/*_spec.rb' | circleci tests split --split-by=timings)" docker-compose exec rails_api bin/rspec --format progress \ --format RspecJunitFormatter \ --out /tmp/test-results/rspec.xml \ $TEST_FILES ΍ͬͱͰ͖ͯͨ3TQFD

Slide 24

Slide 24 text

w IUUQTHJUIVCDPNXBMLFSTVNJEBSBJMTBQJGPSOVYUKTQVMM αϯϓϧ͸ͪ͜Β

Slide 25

Slide 25 text

Ҏ্ɺ34QFDςετʹ͍ͭͯɺͰͨ͠ʂ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ