0.0
No commit activity in last 3 years
No release in over 3 years
도커 명령어에서 자주 사용하는 옵션을 포함하고 환경변수등도 포함해서 붙여넣기 하면 사용할 수 있도록 한다. docker-api 사용하는것들보다는 직접 명령어를 통해서 도커를 실행해본다는 의도.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
>= 0

Runtime

>= 3.0
 Project Readme

DockerAlias

docker 명령어를 출력해서 쉽게 사용하게 하는 rake task 젬

Installation

Add this line to your application's Gemfile:

gem 'docker_alias'

And then execute:

$ bundle

Or install it yourself as:

$ gem install docker_alias

Usage

bin/rake dockera:build
bin/rake dockera:push

bin/rake dockera:con:start
bin/rake dockera:con:stop
bin/rake dockera:con:rm
bin/rake dockera:con:bash

bin/rake dockera:db:create
bin/rake dockera:db:setup
bin/rake dockera:db:migrate

Configuration

# config/initializers/docker_alias.rb
DockerAlias.configure do |config|
  config.repo = 'seapy/docker_alias'
  config.tag = 'latest'
  config.cache_buster_key = 'CACHE_BUSTER_'
  config.options = [
    '--link mysql:mysql',
    '--link redis:redis',
    '--rm'
  ]
  config.enviroments = {
    'SECRET_KEY_BASE' => ENV['RORLA_SECRET_KEY_BASE'],
    'TEST_KEY' => 'yo'
  }
  config.port_maps = [
    '80:80',
    '3306:3306',
  ]
end

cache_buster_key

if provided cache_buster_key, DockerAlias replace string from your Dockerfile.

if your Dockerfile like this

RUN echo "CACHE_BUSTER_0"

and cache_buster_key is set CACHE_BUSTER_ Dockerfile changed like this, when you docker build

RUN echo "CACHE_BUSTER_1404132922"

1404132922 is build timestamp.

you must append number after cache_buster_key

RUN echo "CACHE_BUSTER_23"  # it's ok
RUN echo "CACHE_BUSTER_jasd"  # not ok
RUN echo "CACHE_BUSTER_"  # not ok

Contributing

  1. Fork it ( https://github.com/seapy/docker_alias/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request