Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: metacpan/metacpan-api
base: aab991b794d9
Choose a base ref
...
head repository: metacpan/metacpan-api
compare: 6d73d3ef70ef
Choose a head ref
  • 9 commits
  • 5 files changed
  • 2 contributors

Commits on Jul 5, 2017

  1. Dockerize MetaCPAN API

    This adds a `Dockerfile` so that the app can be built as a Docker image.
    
        docker build -t metacpan-api .
    
    One can start a development server on Docker via
    
        docker run -p 5000:5000 -it metacpan-api
    
    This is part of an effort to Dockerize MetaCPAN (including the web
    frontend and ElasticSearch services.)
    zakame committed Jul 5, 2017
    Copy the full SHA
    7bb6326 View commit details
    Browse the repository at this point in the history
  2. Prevent output buffering in Docker containers

    Docker encourages logging to STDOUT/STDERR (e.g in docker-compose) so
    autoflush those when running in containers.
    zakame committed Jul 5, 2017
    Copy the full SHA
    3bba4a5 View commit details
    Browse the repository at this point in the history
  3. Cleanup cpanm/cpm and caches after Docker build

    Reduce image disk usage by removing cpan/cpm caches as well as apt
    package lists and whatever else in /tmp.
    zakame committed Jul 5, 2017
    Copy the full SHA
    05b3942 View commit details
    Browse the repository at this point in the history
  4. Ignore local/ directory properly

    Since .dockerignore is symlinked to .gitignore, this also prevents
    including the host Carton local installation into the Docker image.
    zakame committed Jul 5, 2017
    Copy the full SHA
    b4c90e2 View commit details
    Browse the repository at this point in the history
  5. Allow $ES to be set via $ES_TEST when testing

    We can have a separate ElasticSearch container for testing, so let it be
    configurable via another variable so we can use both ES containers from
    the same API container.
    zakame committed Jul 5, 2017
    Copy the full SHA
    921fe36 View commit details
    Browse the repository at this point in the history
  6. Don't copy the rest of the repo into the Docker image

    Copying in the repo is somewhat unneeded now since we'll use the image
    primarily to provide a development container, and we can always mount in
    the repo from the Docker host via `docker run -v` and Docker Compose
    `volume`.
    zakame committed Jul 5, 2017
    Copy the full SHA
    5e0fafe View commit details
    Browse the repository at this point in the history
  7. 💄 put && at the start of RUN subcommands

    Slightly emphasize its a continuation of previous RUN subcommand.
    zakame committed Jul 5, 2017
    Copy the full SHA
    44efb94 View commit details
    Browse the repository at this point in the history
  8. Improve check for needing output buffering in Docker

    It seems that Catalyst::Log is supposed to be able to autoflush by
    default, but not in the case of Docker accepting logs via
    STDOUT/STDERR.  Other Log objects like from Log::Dispatch or
    Log::Log4Perl don't seem to have the same issue.
    zakame committed Jul 5, 2017
    Copy the full SHA
    d454161 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2017

  1. Merge pull request #704 from zakame/dockerize

    Dockerize the MetaCPAN
    oalders committed Jul 13, 2017
    Copy the full SHA
    6d73d3e View commit details
    Browse the repository at this point in the history