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-web
base: 7a1029853876
Choose a base ref
...
head repository: metacpan/metacpan-web
compare: c9c904aadf76
Choose a head ref
  • 13 commits
  • 4 files changed
  • 2 contributors

Commits on Jun 29, 2017

  1. Dockerize MetaCPAN web frontend

    This adds a `Dockerfile` so that the app can be built as a Docker image.
    
        docker build -t metacpan-web .
    
    One can start a development server on Docker via
    
        docker run -p 5001:5001 -it metacpan-web
    
    This is part of an effort to Dockerize MetaCPAN (including the API
    backend and ElasticSearch services.)
    zakame committed Jun 29, 2017
    Copy the full SHA
    e6f9a3d 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 Jun 29, 2017
    Copy the full SHA
    f5ba95e View commit details
    Browse the repository at this point in the history
  3. Configure Net::Async::HTTP connection pooling from %ENV

    It seems that Net::Async::HTTP clients with `max_connections_per_host >
    1` are not friendly with single-threaded API backend (`plackup -s
    Standalone`), so enable setting connection pooling from the environment
    if possible.  Net::Async::HTTP already [documents][0] a
    `NET_ASYNC_HTTP_MAXCONNS` variable, so use that when it is available.
    
    [0]: https://metacpan.org/pod/Net::Async::HTTP#max_connections_per_host-=%3E-INT
    zakame committed Jun 29, 2017
    Copy the full SHA
    c662097 View commit details
    Browse the repository at this point in the history
  4. Cleanup cpanm/cpm and caches after Docker build

    Reduce image disk usage by removing cpan/cpm caches as well as whatever
    else in /tmp.
    zakame committed Jun 29, 2017
    Copy the full SHA
    9166ad8 View commit details
    Browse the repository at this point in the history
  5. 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 Jun 29, 2017
    Copy the full SHA
    2c655ff View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    07c3ac1 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2017

  1. 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 Jun 30, 2017
    Copy the full SHA
    c227425 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1713e34 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2017

  1. 💄 put && at the start of RUN subcommands

    Slightly emphasize its a continuation of previous RUN subcommand.
    zakame committed Jul 2, 2017
    Copy the full SHA
    82cdb6e View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2017

  1. Revert "Prevent output buffering in Docker containers"

    This reverts commit f5ba95e.
    
    Unneeded since we're not using Catalyst::Log here (which doesn't seem to
    truly autoflush STDERR by default.)
    zakame committed Jul 5, 2017
    Copy the full SHA
    9720aa0 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3c42f2f View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2017

  1. Copy the full SHA
    409c313 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1935 from zakame/dockerize

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