File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,20 @@ FROM alpine:latest
99
1010# git = used by GitHub codespaces
1111# docker-cli = needed by Bob to launch sibling build containers from this "main container"
12- RUN apk add --no-cache git docker-cli
12+ # docker-cli-buildx = Docker's buildx plugin
13+ # bash = a bit more familiar shell for the user
14+ # nano = rudimentary shell-based editor
15+ # shadow = required to call `$ chsh` (wich is used to change user's default shell)
16+ RUN apk add --no-cache git docker-cli docker-cli-buildx bash nano shadow \
17+ && chsh -s /bin/bash \
18+ && echo 'cat /usr/local/etc/vscode-dev-containers/first-run-notice.txt' > /root/.bashrc
1319
14- COPY --from=builder /usr/local/bin/bob /usr/local/bin/bob
20+ # COPY --from=builder /usr/local/bin/bob /usr/local/bin/bob
21+ COPY bob_linux-amd64 /usr/local/bin/bob
1522
1623COPY init-bob-devcontainer.sh /usr/bin/init-bob-devcontainer.sh
1724
1825COPY vscode-resources/launch.json vscode-resources/tasks.json /
26+
27+ COPY first-run-notice.txt /usr/local/etc/vscode-dev-containers/
28+
Original file line number Diff line number Diff line change 1+ 👋 Welcome to Turbo Bob -managed codespace!
2+
3+ To build this project, run:
4+ $ bob build --fast --uncommitted
5+
6+ To enter the container used by Turbo Bob for builds, but for development purpose, run:
7+ $ bob dev
8+
Original file line number Diff line number Diff line change 1+ # see https://github.com/casey/just
2+
3+ # first is default recipe
4+ default :
5+ @ just --choose --justfile {{ justfile ()}}
6+
7+ build :
8+ docker buildx build --tag=ghcr.io/ function61 / turbobob-codespace:latest .
9+
10+ build-and-push :
11+ docker buildx build --tag=ghcr.io/ function61 / turbobob-codespace:latest --push .
12+
You can’t perform that action at this time.
0 commit comments