Skip to content

Commit be8bcfa

Browse files
committed
feat: Add goose CLI v1.28.0 to universal developer image
Add goose CLI AI assistant tool to the UBI9 universal developer image. Includes bzip2 dependency for extraction and pre-configured directories with proper permissions for goose runtime. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
1 parent 1909a73 commit be8bcfa

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ docker run -ti --rm quay.io/devfile/universal-developer-image:ubi9-latest bash
180180
| `docker` |`<download.docker.com>` |
181181
| `docker-compose` |`<gh releases>` |
182182
| `kamel` |`<gh release>` |
183+
|-----AI TOOLING------|-------------------------------------|
184+
| `goose` |`<gh releases> v1.28.0` |
183185
| **TOTAL SIZE** | **8.75GB** (3.6GB compressed) |
184186

185187
**Libraries:**

universal/ubi9/Dockerfile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,32 @@ ENV KUBECONFIG=/home/user/.kube/config
107107
USER 0
108108

109109
# Required packages for AWT
110-
RUN dnf install -y libXext libXrender libXtst libXi
110+
RUN dnf install -y libXext libXrender libXtst libXi bzip2
111111

112112
# Lombok
113113
ENV LOMBOK_VERSION=1.18.18
114114
RUN wget -O /usr/local/lib/lombok.jar https://projectlombok.org/downloads/lombok-${LOMBOK_VERSION}.jar
115115

116+
# Goose CLI
117+
ENV GOOSE_VERSION=v1.28.0
118+
RUN mkdir -p /opt/goose-install && \
119+
curl -L -o /opt/goose-install/goose.tar.bz2 \
120+
https://github.com/block/goose/releases/download/${GOOSE_VERSION}/goose-x86_64-unknown-linux-gnu.tar.bz2 && \
121+
tar -xjf /opt/goose-install/goose.tar.bz2 -C /opt/goose-install && \
122+
mv /opt/goose-install/goose /usr/local/bin/goose && \
123+
chmod +x /usr/local/bin/goose && \
124+
rm -rf /opt/goose-install
125+
126+
# pre-create the nested folders Goose expects to avoid "Permission Denied" at runtime
127+
RUN mkdir -p \
128+
/home/user/.local/bin \
129+
/home/user/.local/share/goose \
130+
/home/user/.local/state/goose/logs \
131+
/home/user/.config/goose \
132+
/home/user/.cache/goose && \
133+
chown -R 10001:0 /home/user/.local && \
134+
chmod -R g=u /home/user
135+
116136
# Scala
117137
RUN curl -fLo cs https://git.io/coursier-cli && \
118138
chmod +x cs && \

0 commit comments

Comments
 (0)