You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Vincent Batts fb9e59e925 Merge branch 'master' of git.thisco.de:vbatts/container-image-builds 1 year ago
buildah basic buildah image 1 year ago
centos-dev dev: initial environment 5 years ago
dups dups random-utils 2 years ago
envoy-fedora envoy-fedora: container for envoy using fedora 2 years ago
fedora-dev fedora-dev: add iputils 4 years ago
gccgo dev: initial environment 5 years ago
ipd Merge branch 'master' of git.thisco.de:vbatts/container-image-builds 1 year ago
manage-pictures manage-pictures from personal utilities 2 years ago
pandoc pandoc: adding math spec fonts 3 years ago
slack-irc slack-irc: example stuff 3 years ago
ubuntu-dev dev: initial environment 5 years ago
Makefile dev: initial environment 5 years ago
README.md README: add example bash function for shell wrapping 4 years ago

README.md

docker-images

various builds for docker images

building

make

bash functions

These *-dev images are primarily used as shell wrappers for testing on various linuxes.

function fedora() {
  if [ ${#SSH_AUTH_SOCK} -gt 0 ] ; then
    local vsock="-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK"
  fi
  if [ ${#XAUTHORITY} -gt 0 ] ; then
    local vxauth="-v $XAUTHORITY:$XAUTHORITY"
  fi
  docker run \
    --rm \
    -i -t \
    --hostname=$(hostname -s)-fedora \
    -v $HOME:$HOME \
    ${vxauth} \
    -v /tmp/.ICE-unix/:/tmp/.ICE-unix/ \
    ${vsock} \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /usr/bin/docker:/usr/bin/docker:ro \
    --env HOME \
    --env XAUTHORITY \
    --env SESSION_MANAGER \
    --env DISPLAY \
    --user $USER \
    --env SSH_AUTH_SOCK \
    --env PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin \
    --privileged \
    --workdir $(pwd) \
    ${1+"$@"} \
    docker.usersys/${USER}/fedora-dev
}

function ubuntu() {
  if [ ${#SSH_AUTH_SOCK} -gt 0 ] ; then
    local sock="-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK"
  fi
  docker run \
    --rm \
    -i -t \
    --hostname=$(hostname -s)-ubuntu \
    -v $HOME:$HOME \
    ${sock} \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /usr/bin/docker:/usr/bin/docker:ro \
    --env HOME \
    --user $USER \
    --env SSH_AUTH_SOCK \
    --env PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin \
    --privileged \
    -w $(pwd) \
    ${1+"$@"} \
    docker.usersys/${USER}/ubuntu-dev
}