An open API service indexing awesome lists of open source software.

https://github.com/keithduncan/kaniko-socat

Dockerfile to add statically linked socat binary to the kaniko:debug image
https://github.com/keithduncan/kaniko-socat

docker-image kaniko

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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
```