Skip to content

Dockerfile to add statically linked socat binary to the kaniko:debug image

License

Notifications You must be signed in to change notification settings

keithduncan/kaniko-socat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kaniko-socat

kaniko:debug image with socat binary

Allows binding a unix domain socket for a remote shell into the kaniko container:

# Create shared volume
docker volume create --label kanikoctl

# Start server
docker run \
	--rm \
	-it \
	-v $PWD:/workspace \
	-v kanikoctl:/kanikoctl \
	kaniko-socat \
		unix-listen:/kanikoctl/socket,fork,unlink-early \
		'exec:sh -vx,stderr'
    
# Connect client
docker run \
  --rm
  -it \
  -v kanikoctl:/kanikoctl
  alpine/socat
    STDIO,ignoreeof \
		unix-connect:/kanikoctl/socket
    
# Send build command to server shell
executor --no-push

About

Dockerfile to add statically linked socat binary to the kaniko:debug image

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published