Skip to content

Commit d7820c9

Browse files
committed
turbobob-codespace: add more dependencies & first-run-notice
1 parent 4795d8f commit d7820c9

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

misc/turbobob-codespace/Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1623
COPY init-bob-devcontainer.sh /usr/bin/init-bob-devcontainer.sh
1724

1825
COPY vscode-resources/launch.json vscode-resources/tasks.json /
26+
27+
COPY first-run-notice.txt /usr/local/etc/vscode-dev-containers/
28+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+

misc/turbobob-codespace/justfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+

0 commit comments

Comments
 (0)