Skip to content

Commit 25e89ba

Browse files
authored
Merge pull request #6 from carapace-sh/devcontainer
repleced `shell` with `dev` container
2 parents 746a1f9 + 9e7f4d7 commit 25e89ba

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
run: docker compose build mdbook shell-*
3030

3131
- name: Build shell-* dependent image
32-
run: docker compose build shell
32+
run: docker compose build dev
3333

34-
- name: Build shell dependent image
34+
- name: Build dev dependent image
3535
run: docker compose build vhs
3636

3737
- name: Upload the images
@@ -49,7 +49,7 @@ jobs:
4949
docker image tag ghcr.io/carapace-sh/shell-tcsh ghcr.io/carapace-sh/shell-tcsh:${tag}
5050
docker image tag ghcr.io/carapace-sh/shell-xonsh ghcr.io/carapace-sh/shell-xonsh:${tag}
5151
docker image tag ghcr.io/carapace-sh/shell-zsh ghcr.io/carapace-sh/shell-zsh:${tag}
52-
docker image tag ghcr.io/carapace-sh/shell ghcr.io/carapace-sh/shell:${tag}
52+
docker image tag ghcr.io/carapace-sh/dev ghcr.io/carapace-sh/dev:${tag}
5353
docker image tag ghcr.io/carapace-sh/vhs ghcr.io/carapace-sh/vhs:${tag}
5454
5555
docker image push ghcr.io/carapace-sh/base:${tag}
@@ -63,5 +63,5 @@ jobs:
6363
docker image push ghcr.io/carapace-sh/shell-tcsh:${tag}
6464
docker image push ghcr.io/carapace-sh/shell-xonsh:${tag}
6565
docker image push ghcr.io/carapace-sh/shell-zsh:${tag}
66-
docker image push ghcr.io/carapace-sh/shell:${tag}
66+
docker image push ghcr.io/carapace-sh/dev:${tag}
6767
docker image push ghcr.io/carapace-sh/vhs:${tag}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Build/test containers.
1515
| [shell-tcsh](./shell-tcsh/Dockerfile) | base+[tcsh] |
1616
| [shell-xonsh](./shell-xonsh/Dockerfile) | base+[xonsh] |
1717
| [shell-zsh](./shell-zsh/Dockerfile) | base+[zsh] |
18-
| [shell](./shell/Dockerfile) | base+shell-* |
19-
| [vhs](./vhs/Dockerfile) | shell+[vhs] |
18+
| [dev](./dev/Dockerfile) | base+[go]+shell-* |
19+
| [vhs](./vhs/Dockerfile) | dev+[vhs] |
2020

2121
Additional init file instruction (e.g. `.bashrc`) can be set with:
2222

@@ -44,4 +44,5 @@ Additional init file instruction (e.g. `.bashrc`) can be set with:
4444
[tcsh]:https://www.tcsh.org/
4545
[xonsh]:https://github.com/xonsh/xonsh
4646
[zsh]:https://www.zsh.org/
47+
[go]:https://go.dev/
4748
[vhs]:https://github.com/charmbracelet/vhs

base/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
[ -z "$RC_BASH" ] || echo "$RC_BASH" >> ~/.bashrc
2+
[ -z "$RC_BASH" ] || echo "$RC_BASH" >> /root/.bashrc
33
[ -z "$RC_BASH_BLE" ] || echo "$RC_BASH_BLE" >> /root/.config/bash-ble/blerc
44
[ -z "$RC_ELVISH" ] || echo "$RC_ELVISH" >> /root/.config/elvish/rc.elv
55
[ -z "$RC_FISH" ] || echo "$RC_FISH" >> /root/.config/fish/config.fish

compose.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ services:
55

66
mdbook:
77
build: mdbook
8-
image: ghcr.io/carapace-sh/mdbook
9-
8+
image: ghcr.io/carapace-sh/mdbook
109

1110
shell-bash-ble:
1211
build: shell-bash-ble
@@ -44,9 +43,9 @@ services:
4443
build: shell-zsh
4544
image: ghcr.io/carapace-sh/shell-zsh
4645

47-
shell:
48-
build: shell
49-
image: ghcr.io/carapace-sh/shell
46+
dev:
47+
build: dev
48+
image: ghcr.io/carapace-sh/dev
5049

5150
vhs:
5251
build: vhs

shell/Dockerfile renamed to dev/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM ghcr.io/carapace-sh/base
22

3-
RUN apt-get update && apt-get install -y fish libicu72 xonsh zsh
3+
RUN apt-get update && apt-get install -y fish git libicu72 xonsh zsh
4+
5+
RUN curl -L https://go.dev/dl/go1.23.4.linux-amd64.tar.gz | tar -C /usr/local -xzf -
6+
ENV PATH=$PATH:/usr/local/go/bin
47

58
COPY --from=ghcr.io/carapace-sh/shell-bash-ble /usr/local/bin/bash-ble /usr/local/bin/bash-ble
69
COPY --from=ghcr.io/carapace-sh/shell-bash-ble /root/.config/bash-ble /root/.config/bash-ble

vhs/Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
FROM ghcr.io/carapace-sh/shell
1+
FROM ghcr.io/carapace-sh/dev
22

33
RUN apt-get update && apt-get install -y chromium ffmpeg fonts-jetbrains-mono
44

5-
65
RUN curl -L https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 > /usr/local/bin/ttyd \
76
&& chmod +x /usr/local/bin/ttyd
87

9-
RUN apt-get install -y git
10-
RUN curl -L https://go.dev/dl/go1.23.4.linux-amd64.tar.gz | tar -C /usr/local -xzf -
11-
ENV PATH=$PATH:/usr/local/go/bin
128
RUN git clone https://github.com/rsteube/vhs --depth 1 \
139
&& cd vhs \
1410
&& GOBIN=/usr/local/bin/ go install

0 commit comments

Comments
 (0)