Skip to content

Commit 0786d73

Browse files
committed
Add Q CLI to v2 and v3 images
1 parent 18f81d0 commit 0786d73

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

template/v2/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ RUN apt-get update && apt-get upgrade -y && \
6262
sudo ./aws/install && \
6363
rm -rf aws awscliv2.zip && \
6464
: && \
65+
# Install Q CLI
66+
curl --proto '=https' --tlsv1.2 -sSf "https://desktop-release.q.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip" -o "q.zip" && \
67+
unzip q.zip && \
68+
Q_INSTALL_GLOBAL=true ./q/install.sh --no-confirm && \
69+
rm -rf q q.zip && \
70+
: && \
6571
echo "source /usr/local/bin/_activate_current_env.sh" | tee --append /etc/profile && \
6672
# CodeEditor - create server, user data dirs
6773
mkdir -p /opt/amazon/sagemaker/sagemaker-code-editor-server-data /opt/amazon/sagemaker/sagemaker-code-editor-user-data \

template/v3/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ RUN apt-get update && apt-get upgrade -y && \
6262
sudo ./aws/install && \
6363
rm -rf aws awscliv2.zip && \
6464
: && \
65+
# Install Q CLI
66+
curl --proto '=https' --tlsv1.2 -sSf "https://desktop-release.q.us-east-1.amazonaws.com/latest/q-x86_64-linux.zip" -o "q.zip" && \
67+
unzip q.zip && \
68+
Q_INSTALL_GLOBAL=true ./q/install.sh --no-confirm && \
69+
rm -rf q q.zip && \
70+
: && \
6571
echo "source /usr/local/bin/_activate_current_env.sh" | tee --append /etc/profile && \
6672
# CodeEditor - create server, user data dirs
6773
mkdir -p /opt/amazon/sagemaker/sagemaker-code-editor-server-data /opt/amazon/sagemaker/sagemaker-code-editor-user-data \

0 commit comments

Comments
 (0)