update based on new outcome of vespa.deploy
{
"cells": [
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# hide\n",
+ "%load_ext autoreload\n",
+ "%autoreload 2"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
]
},
{
- "cell_type": "raw",
+ "cell_type": "code",
+ "execution_count": null,
"metadata": {},
+ "outputs": [],
"source": [
"from vespa.package import VespaDocker\n",
"\n",
"vespa_docker = VespaDocker(application_package=app_package)\n",
- "vespa_docker.deploy(disk_folder=\"/Users/username/sample_application\")"
+ "deployment_msg, app = vespa_docker.deploy(disk_folder=\"/Users/tmartins/projects/vespa/vespa/python/vespa/notebooks/sample_application\")"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/plain": [
+ "[\"Uploading application '/app/application' using http://localhost:19071/application/v2/tenant/default/session\",\n",
+ " \"Session 7 for tenant 'default' created.\",\n",
+ " 'Preparing session 7 using http://localhost:19071/application/v2/tenant/default/session/7/prepared',\n",
+ " \"WARNING: Host named 'msmarco' may not receive any config since it is not a canonical hostname. Disregard this warning when testing in a Docker container.\",\n",
+ " \"Session 7 for tenant 'default' prepared.\",\n",
+ " 'Activating session 7 using http://localhost:19071/application/v2/tenant/default/session/7/active',\n",
+ " \"Session 7 for tenant 'default' activated.\",\n",
+ " 'Checksum: 09203c16fa5f582b712711bb98932812',\n",
+ " 'Timestamp: 1597839235945',\n",
+ " 'Generation: 7',\n",
+ " '']"
+ ]
+ },
+ "execution_count": null,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "deployment_msg"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Vespa(http://localhost:8080)\n"
+ ]
+ }
+ ],
+ "source": [
+ "print(app)"
]
},
{
