Sudivate/kale (#43)
This commit is contained in:
Родитель
272950482d
Коммит
0608788476
|
@ -0,0 +1,21 @@
|
|||
# Pipeline to build and push Jupyter server image.
|
||||
|
||||
|
||||
pool:
|
||||
vmImage: "ubuntu-latest"
|
||||
|
||||
variables:
|
||||
- group: kubeflow-azdo-sample
|
||||
|
||||
jobs:
|
||||
- job:
|
||||
steps:
|
||||
- task: Docker@2
|
||||
displayName: Build and Push Jupyter Server Image
|
||||
inputs:
|
||||
containerRegistry: 'kubeflow-azdo-sample-acr-sc'
|
||||
repository: 'experimentation/jupyterserver'
|
||||
command: 'buildAndPush'
|
||||
Dockerfile: 'setup/jupyter/Dockerfile'
|
||||
buildContext: 'setup/jupyter/'
|
||||
tags: 'latest'
|
|
@ -235,8 +235,7 @@ def tacosandburritos_train(
|
|||
op_1.add_volume(
|
||||
k8s_client.V1Volume(
|
||||
name='azure',
|
||||
persistent_volume_claim=k8s_client.V1PersistentVolumeClaimVolumeSource( # noqa: E501
|
||||
claim_name='azure-managed-file')
|
||||
persistent_volume_claim=k8s_client.V1PersistentVolumeClaimVolumeSource(claim_name='azure-managed-file') # noqa: E501
|
||||
)
|
||||
).add_volume_mount(k8s_client.V1VolumeMount(
|
||||
mount_path='/mnt/azure', name='azure'))
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
FROM gcr.io/kubeflow-images-public/tensorflow-2.1.0-notebook-cpu:1.0.0
|
||||
USER root
|
||||
RUN pip install pandas
|
||||
RUN pip install seaborn
|
||||
RUN pip install scikit-learn
|
||||
# Install Kale python package globally
|
||||
RUN pip install kubeflow-kale
|
||||
# Install Kale JupyterLab extension
|
||||
RUN jupyter labextension install kubeflow-kale-launcher
|
||||
|
||||
RUN echo "jovyan ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/jovyan
|
||||
WORKDIR /home/jovyan
|
||||
USER jovyan
|
||||
|
||||
ENV NB_PREFIX /
|
||||
CMD ["sh","-c", "jupyter lab --notebook-dir=/home/jovyan --ip=0.0.0.0 --no-browser --allow-root --port=8888 --NotebookApp.token='' --NotebookApp.password='' --NotebookApp.allow_origin='*' --NotebookApp.base_url=${NB_PREFIX}"]
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче