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
- Host: GitHub
- URL: https://github.com/keithduncan/kaniko-socat
- Owner: keithduncan
- License: other
- Created: 2020-03-12T00:09:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T05:59:54.000Z (over 6 years ago)
- Last Synced: 2025-01-22T06:26:28.485Z (over 1 year ago)
- Topics: docker-image, kaniko
- Language: Shell
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```