Skip to content

Commit 90e1d2d

Browse files
committed
added cmd
1 parent c8682b8 commit 90e1d2d

6 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
docker image tag ghcr.io/carapace-sh/base ghcr.io/carapace-sh/base:${tag}
4242
docker image tag ghcr.io/carapace-sh/mdbook ghcr.io/carapace-sh/mdbook:${tag}
4343
docker image tag ghcr.io/carapace-sh/shell-bash-ble ghcr.io/carapace-sh/shell-bash-ble:${tag}
44+
docker image tag ghcr.io/carapace-sh/shell-cmd ghcr.io/carapace-sh/shell-cmd:${tag}
4445
docker image tag ghcr.io/carapace-sh/shell-elvish ghcr.io/carapace-sh/shell-elvish:${tag}
4546
docker image tag ghcr.io/carapace-sh/shell-fish ghcr.io/carapace-sh/shell-fish:${tag}
4647
docker image tag ghcr.io/carapace-sh/shell-nushell ghcr.io/carapace-sh/shell-nushell:${tag}
@@ -55,6 +56,7 @@ jobs:
5556
docker image push ghcr.io/carapace-sh/base:${tag}
5657
docker image push ghcr.io/carapace-sh/mdbook:${tag}
5758
docker image push ghcr.io/carapace-sh/shell-bash-ble:${tag}
59+
docker image push ghcr.io/carapace-sh/shell-cmd:${tag}
5860
docker image push ghcr.io/carapace-sh/shell-elvish:${tag}
5961
docker image push ghcr.io/carapace-sh/shell-fish:${tag}
6062
docker image push ghcr.io/carapace-sh/shell-nushell:${tag}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Build/test containers.
77
| [base](./base/Dockerfile) | base image |
88
| [mdbook](./mdbook/Dockerfile) | base+[mdbook] |
99
| [shell-bash-ble](./shell-bash-ble/Dockerfile) | base+[bash-ble] |
10+
| [shell-cmd](./shell-cmd/Dockerfile) | base+[cmd] |
1011
| [shell-elvish](./shell-elvish/Dockerfile) | base+[elvish] |
1112
| [shell-fish](./shell-fish/Dockerfile) | base+[fish] |
1213
| [shell-nushell](./shell-nushell/Dockerfile) | base+[nushell] |
@@ -36,6 +37,7 @@ Additional init file instruction (e.g. `.bashrc`) can be set with:
3637

3738
[mdbook]:https://github.com/rust-lang/mdBook
3839
[bash-ble]:https://github.com/akinomyoga/ble.sh
40+
[cmd]:https://en.wikipedia.org/wiki/Cmd.exe
3941
[elvish]:https://github.com/elves/elvish
4042
[fish]:https://github.com/fish-shell/fish-shell
4143
[nushell]:https://github.com/nushell/nushell

compose.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ services:
1111
build: shell-bash-ble
1212
image: ghcr.io/carapace-sh/shell-bash-ble
1313

14+
shell-cmd:
15+
build: shell-cmd
16+
image: ghcr.io/carapace-sh/shell-cmd
17+
1418
shell-elvish:
1519
build: shell-elvish
1620
image: ghcr.io/carapace-sh/shell-elvish

dev/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ RUN git config --system safe.directory '*'
77
RUN curl -L https://go.dev/dl/go1.23.4.linux-amd64.tar.gz | tar -C /usr/local -xzf -
88
ENV PATH=$PATH:/usr/local/go/bin
99

10+
COPY --from=ghcr.io/carapace-sh/shell-cmd /usr/local/bin/cmd /usr/local/bin/cmd
11+
RUN apt-get update && apt-get install -y wine \
12+
&& cmd /c echo
13+
1014
COPY --from=ghcr.io/carapace-sh/shell-bash-ble /usr/local/bin/bash-ble /usr/local/bin/bash-ble
1115
COPY --from=ghcr.io/carapace-sh/shell-bash-ble /root/.config/bash-ble /root/.config/bash-ble
1216

shell-cmd/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ghcr.io/carapace-sh/base
2+
3+
RUN apt-get update && apt-get install -y wine
4+
5+
ADD cmd.sh /usr/local/bin/cmd
6+
RUN chmod +x /usr/local/bin/cmd \
7+
&& cmd /c echo
8+
9+
CMD ["cmd"]

shell-cmd/cmd.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
exec wine cmd "$@"

0 commit comments

Comments
 (0)