Quickstart: The simplest start

In order to help you get started as quickly as possible we’ve put together this example where we use an example Docker Image on our platform. All you need to do is follow the steps, and it will teach you how to use our platform.

About The WgetWorker

The wgetworker is really just a packaged version of ‘wget’, the unix command line utility that downloads something from the internet. Wget takes an address of a website as input like so: wget www.example.com. For details of this container look at the source on github.com/nerdalize/wgetworker and hub.docker.com/r/nerdalize/wgetworker/.

If you have docker installed on your machine you can also run it as:

$ docker run nerdalize/wgetworker www.nerdalize.com

Run it on Nerdalize

  1. Make sure you have downloaded and installed the command line interface.

  2. Login if you have not already done so.

    $ nerd login
  3. Set the project you want to use.

    $ nerd project list
    ID   Slug
    3    nerdalize-base
    $ nerd project set <your project slug>
  4. Start your workload

    $ nerd workload start nerdalize/wgetworker
    Workload created with ID: caa9ffb86d65b70f8903

    Great! Now you’ve started the ‘nerdalize/wgetworker’ on the Nerdalize cloud. It is waiting for a task, or input.

  5. Create a task

    Our wgetworker container expects as input argument the url of a website. So we will pass such URL as the task.

    $ nerd task start <workload_id> -- www.nerdalize.com
    Started task with ID: 1496926723804988010

    Note that we used -- to separate the arguments that we give to the nerdalize CLI and the arguments that we give to the container.

    If we had run the docker image locally it would have looked like this:

    $ docker run nerdalize/wgetworker www.nerdalize.com
  6. Download the data this job has produced.

    $ nerd dataset list 
    DatasetID              Created
    c0e6718e82b6099d4535   5 minutes ago

    This lists all the datasets that belong to the current project, both those that were uploaded by you, as those that were automatically created to store the output data.

    $ nerd dataset download <DatasetID> </tmp/yourpath>

You have succesfully run your first workload on the Nerdalize cloud — That deserves a tweet!