File tree 3 files changed +37
-2
lines changed
3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,37 @@ scoop install sq
59
59
go install github.com/neilotoole/sq
60
60
```
61
61
62
+ ### Docker
63
+
64
+ The [ ` ghcr.io/neilotoole/sq ` ] ( https://github.com/neilotoole/sq/pkgs/container/sq )
65
+ image is preloaded with ` sq ` and a handful of related tools like ` jq ` .
66
+
67
+ #### Local
68
+
69
+ ``` shell
70
+ # Shell into a one-time container.
71
+ $ docker run -it ghcr.io/neilotoole/sq zsh
72
+
73
+ # Start detached (background) container named "sq-shell".
74
+ $ docker run -d --name sq-shell ghcr.io/neilotoole/sq
75
+ # Shell into that container.
76
+ $ docker exec -it sq-shell zsh
77
+ ```
78
+
79
+ #### Kubernetes
80
+
81
+ Running ` sq ` in a Kubernetes environment is useful for DB migrations,
82
+ as well as general data wrangling.
83
+
84
+ ``` shell
85
+ # Start pod named "sq-shell".
86
+ $ kubectl run sq-shell --image ghcr.io/neilotoole/sq
87
+ # Shell into the pod.
88
+ $ kubectl exec -it sq-shell -- zsh
89
+ ```
90
+
91
+
92
+
62
93
See other [ install options] ( https://sq.io/docs/install/ ) .
63
94
64
95
## Overview
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ includes a bunch of additional tools.
11
11
# Shell into a one-time container.
12
12
$ docker run -it ghcr.io/neilotoole/sq zsh
13
13
14
- # Start container named "sq-shell" as a daemon .
14
+ # Start container named "sq-shell" detached (in the background) .
15
15
$ docker run -d --name sq-shell ghcr.io/neilotoole/sq
16
16
# Shell into that container.
17
17
$ docker exec -it sq-shell zsh
@@ -23,5 +23,5 @@ $ docker exec -it sq-shell zsh
23
23
# Start pod named "sq-shell".
24
24
$ kubectl run sq-shell --image ghcr.io/neilotoole/sq
25
25
# Shell into the pod.
26
- $ k exec -it sq-shell -- zsh
26
+ $ kubectl exec -it sq-shell -- zsh
27
27
```
Original file line number Diff line number Diff line change 1
1
FROM alpine:3.19
2
2
3
+ LABEL org.opencontainers.image.source='https://github.com/neilotoole/sq'
4
+ LABEL org.opencontainers.image.description='sq data wrangler, on Alpine Linux'
5
+ LABEL org.opencontainers.image.licenses=MIT
6
+
3
7
WORKDIR /root
4
8
5
9
RUN apk add --update --no-cache curl gnupg wget bash bash-completion zsh \
You can’t perform that action at this time.
0 commit comments