mirror of
https://github.com/clearml/clearml-agent
synced 2025-03-13 06:58:37 +00:00
Update k8s glue docker build resources
This commit is contained in:
parent
6e7d35a42a
commit
3838247716
@ -58,7 +58,7 @@ agent {
|
|||||||
type: pip,
|
type: pip,
|
||||||
|
|
||||||
# specify pip version to use (examples "<20.2", "==19.3.1", "", empty string will install the latest version)
|
# specify pip version to use (examples "<20.2", "==19.3.1", "", empty string will install the latest version)
|
||||||
pip_version: "<21",
|
pip_version: ["<20.2 ; python_version < '3.10'", "<22.3 ; python_version >= '3.10'"],
|
||||||
|
|
||||||
# virtual environment inheres packages from system
|
# virtual environment inheres packages from system
|
||||||
system_site_packages: false,
|
system_site_packages: false,
|
||||||
|
@ -33,4 +33,9 @@ echo "api.files_server: ${CLEARML_FILES_HOST}" >> ~/clearml.conf
|
|||||||
|
|
||||||
./provider_entrypoint.sh
|
./provider_entrypoint.sh
|
||||||
|
|
||||||
python3 k8s_glue_example.py --queue ${QUEUE} --max-pods ${MAX_PODS} ${EXTRA_ARGS}
|
if [[ -z "${K8S_GLUE_MAX_PODS}" ]]
|
||||||
|
then
|
||||||
|
python3 k8s_glue_example.py --queue ${QUEUE} ${EXTRA_ARGS}
|
||||||
|
else
|
||||||
|
python3 k8s_glue_example.py --queue ${QUEUE} --max-pods ${MAX_PODS} ${EXTRA_ARGS}
|
||||||
|
fi
|
||||||
|
@ -2,13 +2,17 @@
|
|||||||
|
|
||||||
chmod +x /root/entrypoint.sh
|
chmod +x /root/entrypoint.sh
|
||||||
|
|
||||||
apt-get update -y
|
apt-get update -qqy
|
||||||
apt-get dist-upgrade -y
|
apt-get dist-upgrade -qqy
|
||||||
apt-get install -y curl unzip less locales
|
apt-get install -qqy curl unzip less locales
|
||||||
|
|
||||||
locale-gen en_US.UTF-8
|
locale-gen en_US.UTF-8
|
||||||
|
|
||||||
apt-get install -y curl python3-pip git
|
apt-get update -qqy
|
||||||
|
apt-get install -qqy curl gcc python3-dev python3-pip apt-transport-https lsb-release openssh-client git gnupg
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
apt clean
|
||||||
|
|
||||||
python3 -m pip install -U pip
|
python3 -m pip install -U pip
|
||||||
python3 -m pip install clearml-agent
|
python3 -m pip install --no-cache-dir clearml-agent
|
||||||
python3 -m pip install -U "cryptography>=2.9"
|
python3 -m pip install -U --no-cache-dir "cryptography>=2.9"
|
||||||
|
Loading…
Reference in New Issue
Block a user