Skip to content

Commit

Permalink
fix: Fix 1.6.0 release artifacts (aws#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonparnell authored Mar 14, 2024
1 parent 529a183 commit 32ffb6e
Show file tree
Hide file tree
Showing 15 changed files with 161 additions and 33 deletions.
3 changes: 3 additions & 0 deletions build_artifacts/v1/v1.6/v1.6.0/CHANGELOG-cpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ ipython|8.21.0|8.22.2
jupyter-lsp|2.2.3|2.2.4
jupyterlab|4.1.2|4.1.4
jupyter-ai|2.9.1|2.11.0
jupyter-server-proxy|4.1.0|4.1.2
nodejs|18.18.2|18.19.0
python-lsp-server|1.10.0|1.10.1
sagemaker-python-sdk|2.198.1|2.212.0
uvicorn|0.27.1|0.28.0

Expand All @@ -19,3 +21,4 @@ Package | Version
---|---
amazon-sagemaker-sql-magic|0.1.0
amazon_sagemaker_sql_editor|0.1.3
sagemaker-code-editor|1.0.0
3 changes: 3 additions & 0 deletions build_artifacts/v1/v1.6/v1.6.0/CHANGELOG-gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ ipython|8.21.0|8.22.2
jupyter-lsp|2.2.3|2.2.4
jupyterlab|4.1.2|4.1.4
jupyter-ai|2.9.1|2.11.0
jupyter-server-proxy|4.1.0|4.1.2
nodejs|18.18.2|18.19.0
python-lsp-server|1.10.0|1.10.1
sagemaker-python-sdk|2.198.1|2.212.0
uvicorn|0.27.1|0.28.0

Expand All @@ -19,3 +21,4 @@ Package | Version
---|---
amazon-sagemaker-sql-magic|0.1.0
amazon_sagemaker_sql_editor|0.1.3
sagemaker-code-editor|1.0.0
37 changes: 31 additions & 6 deletions build_artifacts/v1/v1.6/v1.6.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,23 @@ RUN apt-get update && \
:
RUN echo "source /usr/local/bin/_activate_current_env.sh" | tee --append /etc/profile

# CodeEditor - create server, user data dirs
RUN mkdir -p /opt/amazon/sagemaker/sagemaker-code-editor-server-data /opt/amazon/sagemaker/sagemaker-code-editor-user-data \
&& chown $MAMBA_USER:$MAMBA_USER /opt/amazon/sagemaker/sagemaker-code-editor-server-data /opt/amazon/sagemaker/sagemaker-code-editor-user-data

# Merge in OS directory tree contents.
RUN mkdir -p ${DIRECTORY_TREE_STAGE_DIR}
COPY dirs/ ${DIRECTORY_TREE_STAGE_DIR}/
RUN rsync -a ${DIRECTORY_TREE_STAGE_DIR}/ / && \
rm -rf ${DIRECTORY_TREE_STAGE_DIR}

# CodeEditor - download the extensions
RUN mkdir -p /etc/code-editor/extensions && \
while IFS= read -r url; do \
echo "Downloading extension from ${url}..." && \
wget --no-check-certificate -P /etc/code-editor/extensions "${url}"; \
done < /etc/code-editor/extensions.txt

USER $MAMBA_USER
COPY --chown=$MAMBA_USER:$MAMBA_USER $ENV_IN_FILENAME *.in /tmp/

Expand All @@ -64,6 +81,17 @@ RUN micromamba install -y --name base --file /tmp/$ENV_IN_FILENAME && \
ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN sudo ln -s $(which python3) /usr/bin/python

# Configure CodeEditor - Install extensions and set preferences
RUN \
extensionloc=/opt/amazon/sagemaker/sagemaker-code-editor-server-data/extensions && mkdir -p "${extensionloc}" \
# Loop through all vsix files in /etc/code-editor/extensions and install them
&& for ext in /etc/code-editor/extensions/*.vsix; do \
echo "Installing extension ${ext}..."; \
sagemaker-code-editor --install-extension "${ext}" --extensions-dir "${extensionloc}" --server-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-server-data --user-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-user-data; \
done \
# Copy the settings
&& cp /etc/code-editor/code_editor_machine_settings.json /opt/amazon/sagemaker/sagemaker-code-editor-server-data/data/Machine/settings.json

# Install glue kernels, and move to shared directory
# Also patching base kernel so Studio background code doesn't start session silently
RUN install-glue-kernels && \
Expand Down Expand Up @@ -91,18 +119,15 @@ RUN HOME_DIR="/home/${NB_USER}/licenses" \
&& ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh ${HOME_DIR} python \
&& rm -rf ${HOME_DIR}/oss_compliance*

# Merge in OS directory tree contents.
RUN mkdir -p ${DIRECTORY_TREE_STAGE_DIR}
COPY dirs/ ${DIRECTORY_TREE_STAGE_DIR}/
RUN rsync -a ${DIRECTORY_TREE_STAGE_DIR}/ / && \
rm -rf ${DIRECTORY_TREE_STAGE_DIR}

# Create logging directories for supervisor
RUN mkdir -p $SAGEMAKER_LOGGING_DIR && \
chmod a+rw $SAGEMAKER_LOGGING_DIR && \
mkdir -p ${STUDIO_LOGGING_DIR} && \
chown ${NB_USER}:${MAMBA_USER} ${STUDIO_LOGGING_DIR}

# Clean up CodeEditor artifacts
RUN rm -rf /etc/code-editor

# Create supervisord runtime directory
RUN mkdir -p /var/run/supervisord && \
chmod a+rw /var/run/supervisord
Expand Down
5 changes: 3 additions & 2 deletions build_artifacts/v1/v1.6/v1.6.0/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fastapi|0.103.2|0.103.2
langchain|0.1.9|0.1.9
jupyter-ai|2.11.0|2.11.0
jupyter-dash|0.4.2|0.4.2
jupyter-server-proxy|4.1.0|4.1.0
jupyter-server-proxy|4.1.2|4.1.2
jupyterlab-git|0.50.0|0.50.0
keras|2.12.0|2.12.0
matplotlib|3.8.3|3.8.3
Expand All @@ -39,8 +39,9 @@ py-xgboost-gpu|1.7.6|
thrift_sasl|0.4.3|0.4.3
pyhive|0.7.0|0.7.0
python-gssapi|1.8.3|1.8.3
python-lsp-server|1.10.0|1.10.0
python-lsp-server|1.10.1|1.10.1
pytorch-gpu|2.0.0|
sagemaker-code-editor|1.0.0|1.0.0
sagemaker-headless-execution-driver|0.0.12|0.0.12
sagemaker-jupyterlab-emr-extension|0.1.9|0.1.9
sagemaker-jupyterlab-extension|0.2.0|0.2.0
Expand Down
1 change: 1 addition & 0 deletions build_artifacts/v1/v1.6/v1.6.0/cpu.env.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is auto-generated.
conda-forge::sagemaker-code-editor
conda-forge::amazon_sagemaker_sql_editor
conda-forge::amazon-sagemaker-sql-magic
conda-forge::langchain[version='>=0.1.9,<1.0.0']
Expand Down
27 changes: 15 additions & 12 deletions build_artifacts/v1/v1.6/v1.6.0/cpu.env.out
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ https://conda.anaconda.org/conda-forge/noarch/aiosqlite-0.19.0-pyhd8ed1ab_0.cond
https://conda.anaconda.org/conda-forge/linux-64/alsa-lib-1.2.11-hd590300_1.conda#0bb492cca54017ea314b809b1ee3a176
https://conda.anaconda.org/conda-forge/noarch/zipp-3.17.0-pyhd8ed1ab_0.conda#2e4d6bc0b14e10f895fc6791a7d9b26a
https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-6.10.0-pyha770c72_0.conda#ae2ad334f34040e147cc5824b450463b
https://conda.anaconda.org/conda-forge/noarch/importlib_resources-6.1.3-pyhd8ed1ab_0.conda#b865eadcceebf641fa833ee086756e8b
https://conda.anaconda.org/conda-forge/noarch/importlib_resources-6.3.0-pyhd8ed1ab_0.conda#18850e65ca439066484607b26ed09ecd
https://conda.anaconda.org/conda-forge/noarch/pkgutil-resolve-name-1.3.10-pyhd8ed1ab_1.conda#405678b942f2481cecdb3e010f4925d9
https://conda.anaconda.org/conda-forge/linux-64/pyrsistent-0.20.0-py310h2372a71_0.conda#e7f8dc8c62e136573c84116a5e743aed
https://conda.anaconda.org/conda-forge/noarch/jsonschema-4.17.3-pyhd8ed1ab_0.conda#723268a468177cd44568eb8f794e0d80
Expand All @@ -108,7 +108,7 @@ https://conda.anaconda.org/conda-forge/noarch/httpcore-1.0.4-pyhd8ed1ab_0.conda#
https://conda.anaconda.org/conda-forge/noarch/httpx-0.27.0-pyhd8ed1ab_0.conda#9f359af5a886fd6ca6b2b6ea02e58332
https://conda.anaconda.org/conda-forge/noarch/importlib_metadata-6.10.0-hd8ed1ab_0.conda#c063ddbb9908499fd4f20b31dc67065a
https://conda.anaconda.org/conda-forge/noarch/traitlets-5.14.2-pyhd8ed1ab_0.conda#af5fa2d2186003472e766a23c46cae04
https://conda.anaconda.org/conda-forge/noarch/comm-0.2.1-pyhd8ed1ab_0.conda#f4385072f4909bc974f6675a36e76796
https://conda.anaconda.org/conda-forge/noarch/comm-0.2.2-pyhd8ed1ab_0.conda#948d84721b578d426294e17a02e24cbb
https://conda.anaconda.org/conda-forge/linux-64/debugpy-1.8.1-py310hc6cd4ac_0.conda#1ea80564b80390fa25da16e4211eb801
https://conda.anaconda.org/conda-forge/noarch/decorator-5.1.1-pyhd8ed1ab_0.tar.bz2#43afe5ab04e35e17ba28649471dd7364
https://conda.anaconda.org/conda-forge/noarch/parso-0.8.3-pyhd8ed1ab_0.tar.bz2#17a565a0c3899244e938cdf417e7b094
Expand Down Expand Up @@ -156,7 +156,7 @@ https://conda.anaconda.org/conda-forge/noarch/terminado-0.18.1-pyh0d859eb_0.cond
https://conda.anaconda.org/conda-forge/noarch/jupyter_server_terminals-0.5.3-pyhd8ed1ab_0.conda#219b3833aa8ed91d47d1be6ca03f30be
https://conda.anaconda.org/conda-forge/noarch/soupsieve-2.5-pyhd8ed1ab_1.conda#3f144b2c34f8cb5a9abd9ed23a39c561
https://conda.anaconda.org/conda-forge/noarch/beautifulsoup4-4.12.3-pyha770c72_0.conda#332493000404d8411859539a5a630865
https://conda.anaconda.org/conda-forge/noarch/setuptools-69.1.1-pyhd8ed1ab_0.conda#576de899521b7d43674ba3ef6eae9142
https://conda.anaconda.org/conda-forge/noarch/setuptools-69.2.0-pyhd8ed1ab_0.conda#da214ecd521a720a9d521c68047682dc
https://conda.anaconda.org/conda-forge/noarch/webencodings-0.5.1-pyhd8ed1ab_2.conda#daf5160ff9cde3a468556965329085b9
https://conda.anaconda.org/conda-forge/noarch/bleach-6.1.0-pyhd8ed1ab_0.conda#0ed9d7c0e9afa7c025807a9a8136ea3e
https://conda.anaconda.org/conda-forge/noarch/defusedxml-0.7.1-pyhd8ed1ab_0.tar.bz2#961b3a227b437d82ad7054484cfa71b2
Expand All @@ -165,7 +165,7 @@ https://conda.anaconda.org/conda-forge/noarch/jupyterlab_pygments-0.3.0-pyhd8ed1
https://conda.anaconda.org/conda-forge/noarch/mistune-3.0.2-pyhd8ed1ab_0.conda#5cbee699846772cc939bef23a0d524ed
https://conda.anaconda.org/conda-forge/noarch/python-fastjsonschema-2.19.1-pyhd8ed1ab_0.conda#4d3ceee3af4b0f9a1f48f57176bf8625
https://conda.anaconda.org/conda-forge/noarch/nbformat-5.10.2-pyhd8ed1ab_0.conda#b019696a453a799ba5301a6fdbb23589
https://conda.anaconda.org/conda-forge/noarch/nbclient-0.8.0-pyhd8ed1ab_0.conda#e78da91cf428faaf05701ce8cc8f2f9b
https://conda.anaconda.org/conda-forge/noarch/nbclient-0.10.0-pyhd8ed1ab_0.conda#15b51397e0fe8ea7d7da60d83eb76ebc
https://conda.anaconda.org/conda-forge/noarch/pandocfilters-1.5.0-pyhd8ed1ab_0.tar.bz2#457c2c8c08e54905d6954e79cb5b5db9
https://conda.anaconda.org/conda-forge/noarch/tinycss2-1.2.1-pyhd8ed1ab_0.tar.bz2#7234c9eefff659501cd2fe0d2ede4d48
https://conda.anaconda.org/conda-forge/noarch/nbconvert-core-7.16.2-pyhd8ed1ab_0.conda#5ab3248dd05c543dc631276455ef6a54
Expand Down Expand Up @@ -390,8 +390,8 @@ https://conda.anaconda.org/conda-forge/linux-64/torchvision-0.15.2-cpu_py310hb9e
https://conda.anaconda.org/conda-forge/noarch/timm-0.9.16-pyhd8ed1ab_0.conda#bc15401d946adb3fbce34c4ba351dd20
https://conda.anaconda.org/conda-forge/noarch/autogluon.multimodal-0.8.2-pyha770c72_5.conda#a8ca42e2b4ee0fd6dce729bc226dd0cc
https://conda.anaconda.org/conda-forge/noarch/plotly-5.19.0-pyhd8ed1ab_0.conda#669cd7065794633b9e64e6a9612ec700
https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.1-h59595ed_0.conda#476fb82aba5358a08d52ec44e286ce33
https://conda.anaconda.org/conda-forge/linux-64/expat-2.6.1-h59595ed_0.conda#ee90e7ac57321f8782f8438bf647b75b
https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.2-h59595ed_0.conda#e7ba12deb7020dd080c6c70e7b6f6a3d
https://conda.anaconda.org/conda-forge/linux-64/expat-2.6.2-h59595ed_0.conda#53fb86322bdb89496d7579fe3f02fd61
https://conda.anaconda.org/conda-forge/linux-64/fontconfig-2.14.2-h14ed4e7_0.conda#0f69b688f52ff6da70bccb7ff7001d1d
https://conda.anaconda.org/conda-forge/noarch/font-ttf-dejavu-sans-mono-2.37-hab24e00_0.tar.bz2#0c96522c6bdaed4b1566d11387caaf45
https://conda.anaconda.org/conda-forge/noarch/font-ttf-inconsolata-3.000-h77eed37_0.tar.bz2#34893075a5c9e55cdafac56607368fc6
Expand Down Expand Up @@ -565,17 +565,17 @@ https://conda.anaconda.org/conda-forge/noarch/jax-0.4.20-pyhd8ed1ab_0.conda#5abb
https://conda.anaconda.org/conda-forge/noarch/ply-3.11-py_1.tar.bz2#7205635cd71531943440fbfe3b6b5727
https://conda.anaconda.org/conda-forge/noarch/jsonpath-ng-1.6.1-pyhd8ed1ab_0.conda#a698a41f5b52fe96049fd8c926ac3086
https://conda.anaconda.org/conda-forge/linux-64/orjson-3.9.15-py310hcb5633a_0.conda#da1b180ccf1dce5d87d145ad2fc14e5a
https://conda.anaconda.org/conda-forge/noarch/langsmith-0.1.23-pyhd8ed1ab_0.conda#47f6000bc923694707d26830ffce16c5
https://conda.anaconda.org/conda-forge/noarch/langchain-core-0.1.30-pyhd8ed1ab_0.conda#0b8700c1a97ac5eb1fb7041673693ba1
https://conda.anaconda.org/conda-forge/noarch/langchain-community-0.0.27-pyhd8ed1ab_0.conda#ea8d0112e538642eecfaa938d1b5628d
https://conda.anaconda.org/conda-forge/noarch/langsmith-0.1.24-pyhd8ed1ab_0.conda#f3926a68f089b1a38c1f540944f9ee0a
https://conda.anaconda.org/conda-forge/noarch/langchain-core-0.1.31-pyhd8ed1ab_0.conda#3bfc5b4af9975e867d8e272fe5836d2f
https://conda.anaconda.org/conda-forge/noarch/langchain-community-0.0.28-pyhd8ed1ab_0.conda#d7e8f72c5e422b78b3d5f7a7aecbfae9
https://conda.anaconda.org/conda-forge/noarch/langchain-0.1.9-pyhd8ed1ab_0.conda#2ad37682610ac2643b46e4cc0215f410
https://conda.anaconda.org/conda-forge/noarch/jupyter-ai-magics-2.11.0-pyhd8ed1ab_0.conda#aee09f3966655f81d05fcfb5bae3612d
https://conda.anaconda.org/conda-forge/linux-64/tiktoken-0.5.2-py310h47bb294_0.conda#a83ae186d0a4b78c98b32781d7c15d48
https://conda.anaconda.org/conda-forge/noarch/jupyter-ai-2.11.0-pyhd8ed1ab_0.conda#e8ab7975630aff4624d3ed1fa32ac552
https://conda.anaconda.org/conda-forge/noarch/jupyter-dash-0.4.2-pyhd8ed1ab_1.tar.bz2#9c77330b235666f244a7b8dcc7c0955a
https://conda.anaconda.org/conda-forge/noarch/jupyter-server-mathjax-0.2.6-pyh5bfe37b_1.conda#11ca195fc8a16770661a387bcce27c36
https://conda.anaconda.org/conda-forge/noarch/simpervisor-1.0.0-pyhd8ed1ab_0.conda#1f6df17b16d6295a484d59e844fef6ee
https://conda.anaconda.org/conda-forge/noarch/jupyter-server-proxy-4.1.0-pyhd8ed1ab_0.conda#b404b1dc6ca2bbb66663507150cb6927
https://conda.anaconda.org/conda-forge/noarch/jupyter-server-proxy-4.1.2-pyhd8ed1ab_0.conda#3671520b52215a5a084de08003e6d8cd
https://conda.anaconda.org/conda-forge/noarch/nbdime-4.0.1-pyhd8ed1ab_0.conda#dd76d44a144499f8ff3254fd20cdb7a2
https://conda.anaconda.org/conda-forge/noarch/jupyterlab-git-0.50.0-pyhd8ed1ab_1.conda#5020cacc18e3d5f62a81513f26ac2cac
https://conda.anaconda.org/conda-forge/noarch/keras-2.12.0-pyhd8ed1ab_0.conda#e6e18b33e8d62200099f2eed98a263b6
Expand All @@ -590,6 +590,7 @@ https://conda.anaconda.org/conda-forge/linux-64/libflac-1.4.3-h59595ed_0.conda#e
https://conda.anaconda.org/conda-forge/linux-64/libgpg-error-1.48-h71f35ed_0.conda#4d18d86916705d352d5f4adfb7f0edd3
https://conda.anaconda.org/conda-forge/linux-64/libgcrypt-1.10.3-hd590300_0.conda#32d16ad533c59bb0a3c5ffaf16110829
https://conda.anaconda.org/conda-forge/linux-64/libpq-15.6-h088ca5b_0.conda#99dca02fb74a8dfa3653c6673674f90c
https://conda.anaconda.org/conda-forge/linux-64/libsecret-0.18.8-h329b89f_2.tar.bz2#9d6698e3c9585a75156d86f7ef229093
https://conda.anaconda.org/conda-forge/linux-64/mpg123-1.32.4-h59595ed_0.conda#3f1017b4141e943d9bc8739237f749e8
https://conda.anaconda.org/conda-forge/linux-64/libsndfile-1.2.2-hc60ed4a_1.conda#ef1910918dd895516a769ed36b5b3a4e
https://conda.anaconda.org/conda-forge/linux-64/libsystemd0-255-h3516f8a_1.conda#3366af27f0b593544a6cd453c7932ac5
Expand Down Expand Up @@ -631,13 +632,15 @@ https://conda.anaconda.org/conda-forge/linux-64/pyspnego-0.9.1-py310h2372a71_2.c
https://conda.anaconda.org/conda-forge/noarch/python-flatbuffers-24.3.7-pyh59ac667_0.conda#24c1a37849fcd4c74923a38b029b208f
https://conda.anaconda.org/conda-forge/linux-64/python-gssapi-1.8.3-py310h98feede_0.conda#a5ea028f63386c53a2b8ff4d09065259
https://conda.anaconda.org/conda-forge/noarch/python-lsp-jsonrpc-1.1.2-pyhd8ed1ab_0.conda#ff30dbdb341a54947c4fa183900380b7
https://conda.anaconda.org/conda-forge/noarch/python-lsp-server-base-1.10.0-pyhd8ed1ab_0.conda#5db77c6a130648e78913e3a2c39895a0
https://conda.anaconda.org/conda-forge/noarch/python-lsp-server-base-1.10.1-pyhd8ed1ab_0.conda#1371f9394b20fd1fe7419a2aa9b38888
https://conda.anaconda.org/conda-forge/noarch/pytoolconfig-1.2.5-pyhd8ed1ab_0.conda#2d6bdf5a69cfcd1fcc7f2b900cb4082f
https://conda.anaconda.org/conda-forge/noarch/rope-1.12.0-pyhd8ed1ab_0.conda#5b17bee6351fbe4ae28da178866b2c73
https://conda.anaconda.org/conda-forge/noarch/whatthepatch-1.0.5-pyhd8ed1ab_0.conda#e62ea65e1979c18c4c9034567e7105c5
https://conda.anaconda.org/conda-forge/noarch/yapf-0.40.1-pyhd8ed1ab_0.conda#f269942e802d5e148632143d4c37acc9
https://conda.anaconda.org/conda-forge/noarch/python-lsp-server-1.10.0-pyhd8ed1ab_0.conda#51da987dc568ec0484bc22e1e2025830
https://conda.anaconda.org/conda-forge/noarch/python-lsp-server-1.10.1-pyhd8ed1ab_0.conda#15b849d7f03b7580a88a3f887db5ad40
https://conda.anaconda.org/conda-forge/noarch/requests-kerberos-0.14.0-pyh707e725_1.conda#411293bff0dc86f9f9bc0c0e1f227623
https://conda.anaconda.org/conda-forge/linux-64/ripgrep-14.1.0-he8a937b_0.conda#5a476f7033a8a1b9175626b5ebf86d1d
https://conda.anaconda.org/conda-forge/linux-64/sagemaker-code-editor-1.0.0-hcb28a07_0.conda#f53005657267d6b1233c2852fcb84707
https://conda.anaconda.org/conda-forge/noarch/sagemaker-headless-execution-driver-0.0.12-pyhd8ed1ab_0.conda#fe8919032eb413e76a7802f013a536ee
https://conda.anaconda.org/conda-forge/linux-64/y-py-0.6.2-py310hcb5633a_0.conda#892e912e08ba834aa77ff25f983a4e9e
https://conda.anaconda.org/conda-forge/noarch/ypy-websocket-0.8.4-pyhd8ed1ab_0.conda#464806d1a3b2c6a88102844c12934038
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"python.terminal.activateEnvironment": false,
"python.defaultInterpreterPath": "/opt/conda/bin/python"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://open-vsx.org/api/ms-toolsai/jupyter/2023.9.100/file/ms-toolsai.jupyter-2023.9.100.vsix
https://open-vsx.org/api/ms-python/python/2023.20.0/file/ms-python.python-2023.20.0.vsix
https://open-vsx.org/api/amazonwebservices/aws-toolkit-vscode/1.99.0/file/amazonwebservices.aws-toolkit-vscode-1.99.0.vsix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[include]
files = supervisord-common.conf

[program:codeeditorserver]
directory=%(ENV_HOME)s
command=start-code-editor
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1 ; Redirect web server logs to stdout
stdout_logfile_maxbytes = 0 ; Fix: https://github.com/Supervisor/supervisor/issues/935
stderr_logfile_maxbytes = 0 ; Fix: https://github.com/Supervisor/supervisor/issues/935
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[supervisord]
nodaemon=true

pidfile=/var/run/supervisord/supervisord.pid
logfile=%(ENV_STUDIO_LOGGING_DIR)s/%(ENV_SAGEMAKER_APP_TYPE_LOWERCASE)s/supervisord/supervisord.log
logfile_maxbytes=5MB
logfile_backups=10
redirect_stderr=true

[unix_http_server]
file=/var/run/supervisord/supervisor.sock
chmod=0700

[supervisorctl]
serverurl=unix:///var/run/supervisord/supervisor.sock

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[include]
files = supervisord-common.conf

[program:jupyterlabserver]
directory=%(ENV_HOME)s
command=start-jupyter-server
stopasgroup=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -e

# Generate and execute the shell code to modifies shell variables to include
# micromamba commands (e.g. using `micromamba activate` to activate environments)
eval "$(micromamba shell hook --shell=bash)"

# Activate conda environment 'base', where supervisord is installed
micromamba activate base

# Set up SAGEMAKER_APP_TYPE_LOWERCASE based on SAGEMAKER_APP_TYPE
export SAGEMAKER_APP_TYPE_LOWERCASE=$(echo $SAGEMAKER_APP_TYPE | tr '[:upper:]' '[:lower:]')

mkdir -p $STUDIO_LOGGING_DIR/$SAGEMAKER_APP_TYPE_LOWERCASE/supervisord
exec supervisord -c /etc/supervisor/conf.d/supervisord-code-editor.conf -n
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -e

eval "$(micromamba shell hook --shell=bash)"

# Activate conda environment 'base', which is the default environment for sagemaker-distribution
micromamba activate base

# Start code-editor server
if [ -n "$SAGEMAKER_APP_TYPE_LOWERCASE" ]; then
# SAGEMAKER_APP_TYPE is set, indicating the server is running within a SageMaker
# app. Configure the base url to be `/<app-type-in-lower-case>/default`.
sagemaker-code-editor --host 0.0.0.0 --port 8888 \
--without-connection-token \
--base-path "/$SAGEMAKER_APP_TYPE_LOWERCASE/default" \
--server-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-server-data \
--extensions-dir /opt/amazon/sagemaker/sagemaker-code-editor-server-data/extensions \
--user-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-user-data
else
sagemaker-code-editor --host 0.0.0.0 --port 8888 \
--without-connection-token \
--server-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-server-data \
--extension-dir /opt/amazon/sagemaker/sagemaker-code-editor-server-data/extensions \
--user-data-dir /opt/amazon/sagemaker/sagemaker-code-editor-user-data
fi
1 change: 1 addition & 0 deletions build_artifacts/v1/v1.6/v1.6.0/gpu.env.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This file is auto-generated.
conda-forge::sagemaker-code-editor
conda-forge::amazon_sagemaker_sql_editor
conda-forge::amazon-sagemaker-sql-magic
conda-forge::langchain[version='>=0.1.9,<1.0.0']
Expand Down
Loading

0 comments on commit 32ffb6e

Please sign in to comment.