def METHOD_NAME(BROKER_URL, BROKER_USE_SSL=False):
    """Initializes compute worker by installing docker and the compute worker image
    Meant to be used with `hosts` like so, for an SSL'd server:
        fab hosts:prod compute_worker_init:pyamqp://blahblah/,True
    """
    # Get proper SSL flag value
    BROKER_USE_SSL = bool(BROKER_USE_SSL)
    # Make .env file settings for worker
    env_file = 'BROKER_URL={}'.format(BROKER_URL)
    if BROKER_USE_SSL:
        env_file += "\nBROKER_USE_SSL=True"
    # Custom hostname?
    host_group_name = env['tasks'][0].split(':')[1]
    config = yaml.load(open('server_config.yaml').read())
    # if the configuration has an entry for custom hostnames, add them to the server
    if 'hostnames' in config[host_group_name]:
        host_name_index = env['hosts'].index(env['host_string'])
        hostname = config[host_group_name]['hostnames'][host_name_index]
    else:
        hostname = env['host_string']
    env_file += "\nCODALAB_HOSTNAME={}".format(hostname)
    run('echo "{}" > .env'.format(env_file))
    # Install docker
    run('curl https://get.docker.com | sudo sh')
    # Add user to group and reset user group settings so we can run docker without sudo
    user = str(run("echo $USER"))  # we have to get the user name this way...
    sudo('usermod -aG docker {}'.format(user))