Skip to content

1nfiniteloop/alpine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpine

This Alpine Docker-image serves as a base for other containers.

Versions

  • 1nfiniteloop/alpine:latest from here.

Volumes

  • /etc/patch.d - Optionally, used during development

Ports

None

Environment variables

None

Usage

Run

Start container with:

docker run \
  --rm \
  -it \
  --name alpine \
  1nfiniteloop/alpine:latest \
  /bin/bash -l

Customize

/etc/entrypoint.d contain scripts to run before the s6-service supervisor starts. Example to make configurations based on environment variables provided from docker run cmdline. Note that scripts will run on each startup, not only once.

/etc/patch.d contain patches to be applied on startup. I believe applying patches to configuration files become more transparent, compared to just copy an overlay file into the container.

Create patches

  1. Start container with a bind-mount:

     docker run \
       --rm \
       -it \
       --name alpine \
       --user $(id -u):$(id -g) \
       --volume $(pwd)/overlay/etc/patch.d:/etc/patch.d \
       1nfiniteloop/alpine:latest /bin/bash -l
    
  2. Create a copy of the original configuration file, to diff against. Example: cp /etc/inputrc /etc/inputrc~.

  3. Make changes and create the patch with make-patch /etc/inputrc.

About

Alpine Docker-image which serves as a base for other containers

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors