Sign inSign up

ewsdocker/alpine-nginx-pkgcache

By ewsdocker

Updated over 6 years ago

A package cache implementation using alpine-nginx

Image
0

348

ewsdocker/alpine-nginx-pkgcache repository overview

ewsdocker/alpine-nginx-pkgcache:3.8.2

A NGINX HHTP Web server image based on ewsdocker/alpine-nginx.

alpine-nginx-pkgcache provides a method, using only existing Docker containers and Docker resources, to add files to a permanent file-cache and retrieve selected files from the file-cache by a running Docker build process.

Learn about the pkgcache project on the Advanced Docker Concepts - pkgcache Wiki page.


Visit the ewsdocker/alpine-nginx-pkgcache Wiki for complete documentation.


Installing ewsdocker/alpine-nginx-pkgcache

The following script will download the selected ewsdocker/alpine-nginx-pkgcache image, create a container, setup and populate the directory structures, and create the execution script(s).

The default values will install all directories and contents in the docker host user's home directory.

ewsdocker/alpine-nginx-pkgcache:3.8.2

docker run --rm \
           -v ${HOME}/bin:/userbin \
           -v ${HOME}/.local:/usrlocal \
           -e LMS_BASE="${HOME}/.local" \
           -v ${HOME}/.config/docker:/conf \
           -v ${HOME}/.config/docker/alpine-nginx-pkgcache-3.8.2:/root \
           --name=alpine-nginx-pkgcache-3.8.2 \
       ewsdocker/alpine-nginx-pkgcache:3.8.2 lms-setup-alpine  

Running the installed scripts

After running the above command script, and using the settings indicated, the docker host directories, mapped as shown in the above tables, will be configured as follows:

  • the executable scripts have been copied to ~/bin;
  • the associated alpine-nginx-pkgcache-"version" execution script (shown below) will be found in ~/.local/bin, and should be customized with proper local volume names.

The installation documentation for ewsdocker/alpine-nginx shows 2 different examples to install the server. The connection of ewsdocker/alpine-nginx-pkgcache to the server depends upon the method of installation, as detailed in the 2 following sections.


The following docker run command will create and start alpine-nginx-pkgcache service container :

docker run -d \
       --restart unless-stopped \
       --mount source=pkgcache,target=/usr/share/nginx/html \
       --network=pkgnet \
       --name=alpine-nginx-pkgcache-3.8.2 \
   ewsdocker/alpine-nginx-pkgcache:3.8.2  

The ewsdocker/alpine-nginx-pkgcache docker image is based on the latest ewsdocker/alpine-nginx docker image.


Visit the ewsdocker/alpine-nginx-pkgcache Wiki for complete documentation of this docker image.


Copyright © 2018. EarthWalk Software.
Licensed under the GNU General Public License, GPL-3.0-or-later.

This file is part of ewsdocker/alpine-nginx-pkgcache.

ewsdocker/alpine-nginx-pkgcache is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ewsdocker/alpine-nginx-pkgcache is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with ewsdocker/alpine-nginx-pkgcache. If not, see http://www.gnu.org/licenses/.


NGINX
Copyright (C) 2011-2016 Nginx, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Tag summary

Content type

Image

Digest

Size

26.1 MB

Last updated

over 6 years ago

docker pull ewsdocker/alpine-nginx-pkgcache:3.10.0