rabbah closed pull request #2583: Create Nginx image with localy built CLI, 
Blackbox SDK.
URL: https://github.com/apache/incubator-openwhisk/pull/2583
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ansible/edge.yml b/ansible/edge.yml
index cf80ebeb2d..9c4bf4928d 100644
--- a/ansible/edge.yml
+++ b/ansible/edge.yml
@@ -1,11 +1,8 @@
 ---
 # This playbook deploys Openwhisk Edge servers.
 # The edge is usually populated with NGINX serving as proxy.
-# The CLI also gets built and published for downloading from NGINX.  
-# SDKs for blackbox and iOS get published to NGINX also.
 
 - hosts: edge
   roles:
   - nginx
   - cli
-  - sdk
diff --git a/ansible/group_vars/all b/ansible/group_vars/all
index 1018bb17e5..5c7446eead 100644
--- a/ansible/group_vars/all
+++ b/ansible/group_vars/all
@@ -152,7 +152,6 @@ nginx:
   confdir: "{{ config_root_dir }}/nginx"
   dir:
     become: "{{ nginx_dir_become | default(false) }}"
-  version: 1.11
   port:
     http: 80
     api: 443
diff --git a/ansible/roles/cli/files/createContentJson.sh 
b/ansible/roles/cli/files/createContentJson.sh
deleted file mode 100755
index cc59622795..0000000000
--- a/ansible/roles/cli/files/createContentJson.sh
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/bash
-
-set +x
-set -e
-
-get_compressed_name() {
-  local os=$1
-  local arch=$2
-  local product_name=$3
-
-  if [ $arch = amd64 ]; then
-    comp_name="$product_name-$os";
-  elif [ $arch = 386 ]; then
-    comp_name="$product_name-$os-32bit";
-  else
-    comp_name="$product_name-$os-$arch";
-  fi
-
-  echo $comp_name;
-};
-
-get_binary_path() {
-    local comp_name=$1
-    local os=$2
-    local arch=$3
-
-    if [ $os = "linux" ]; then
-        comp_name="$comp_name.tgz"
-    else
-        comp_name="$comp_name.zip"
-    fi
-    echo $os/$arch/$comp_name;
-};
-
-create_cli_packages() {
-  local dirIndex="{\"cli\":{"
-
-  for platform in $platforms; do
-    dirIndex="$dirIndex\"$platform\":{"
-
-    for arch in $archs; do
-      comp_name=$(get_compressed_name $platform $arch $zip_name)
-      comp_path=$(get_binary_path $comp_name $platform $arch)
-
-      if [ $arch = $default_arch ]; then
-          dirIndex="$dirIndex\"default\":{\"path\":\"$comp_path\"},";
-      fi
-
-      dirIndex="$dirIndex\"$arch\":{\"path\":\"$comp_path\"},";
-    done
-
-    dirIndex="$(echo $dirIndex | rev | cut -c2- | rev)"
-    dirIndex="$dirIndex},";
-  done
-
-  dirIndex="$(echo $dirIndex | rev | cut -c2- | rev)"
-  dirIndex="$dirIndex}}"
-
-  echo $dirIndex > $PATH_CONTENT_JSON/content.json
-};
-
-archs="386 amd64";
-default_arch="amd64"
-
-PATH_CONTENT_JSON=$1
-BINARY_TAG=$2
-platforms=$3
-zip_name=$4
-create_cli_packages
diff --git a/ansible/roles/cli/tasks/clean.yml 
b/ansible/roles/cli/tasks/clean.yml
deleted file mode 100644
index 6c365ab0cb..0000000000
--- a/ansible/roles/cli/tasks/clean.yml
+++ /dev/null
@@ -1,7 +0,0 @@
----
-
-- name: remove cli nginx directory
-  file:
-    path: "{{ cli.nginxdir }}"
-    state: absent
-  become: "{{ cli.dir.become }}"
diff --git a/ansible/roles/cli/tasks/cli_remote_mode.yml 
b/ansible/roles/cli/tasks/cli_remote_mode.yml
deleted file mode 100644
index 3c3eb57419..0000000000
--- a/ansible/roles/cli/tasks/cli_remote_mode.yml
+++ /dev/null
@@ -1,18 +0,0 @@
----
-
-# Download the cli for the remote mode and generate the content.json file
-
-- name: "download the binaries from the release page of OpenWhisk CLI"
-  include: download_openwhisk_cli.yml
-  with_nested:
-    - "{{ cli_os }}"
-    - "{{ cli_arch }}"
-
-- name: "generate content.json locally for Nginx CLI directory"
-  local_action: shell "./createContentJson.sh" "{{ config_root_dir }}" "{{ 
openwhisk_cli_tag }}" "{{ cli_os | join(" ") }}" "{{ 
openwhisk_cli.remote.dest_name }}" chdir="{{ openwhisk_home 
}}/ansible/roles/cli/files"
-
-- name: "copy the local content.json to the remote node"
-  copy: src={{ config_root_dir }}/content.json dest={{ cli.nginxdir }}/
-
-- name: "delete the local content.json"
-  local_action: file path={{ config_root_dir }}/content.json state=absent
diff --git a/ansible/roles/cli/tasks/copy_local_openwhisk_cli.yml 
b/ansible/roles/cli/tasks/copy_local_openwhisk_cli.yml
deleted file mode 100644
index 3839ddf93a..0000000000
--- a/ansible/roles/cli/tasks/copy_local_openwhisk_cli.yml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-
-# Copy the cli binaries to Nginx directory
-
-- local_action: stat path={{ openwhisk_cli.local.location }}/{{ item }}
-  register: binary_path
-
-- name: "copy the local binaries from a local directory to Nginx directory"
-  copy: src={{ openwhisk_cli.local.location }}/{{ item }} dest={{ cli.nginxdir 
}}/
-  when: binary_path.stat.exists
diff --git a/ansible/roles/cli/tasks/deploy.yml 
b/ansible/roles/cli/tasks/deploy.yml
index 3961ab84c0..c5623d803c 100644
--- a/ansible/roles/cli/tasks/deploy.yml
+++ b/ansible/roles/cli/tasks/deploy.yml
@@ -1,28 +1,4 @@
 ---
-# Tasks for handling CLI customization and publishing
-
-- name: "ensure nginx directory for cli exists"
-  file:
-    path: "{{ cli.nginxdir  }}"
-    state: directory
-  become: "{{ cli.dir.become }}"
-
-- set_fact:
-    cli_installation_mode="{{ openwhisk_cli.installation_mode }}"
-
-- include: docker_login.yml
-
-- name: "download the binaries from the release page of OpenWhisk CLI"
-  include: cli_remote_mode.yml
-  when: cli_installation_mode == "remote"
-
-- name: "copy the binaries from a local directory to Nginx directory"
-  include: copy_local_openwhisk_cli.yml
-  when: cli_installation_mode == "local"
-  with_items: "{{ cli_os }}"
-
-- name: "copy the local content.json from a local directory to Nginx directory"
-  copy: src={{ openwhisk_cli.local.location }}/content.json dest={{ 
cli.nginxdir }}/
-  when: cli_installation_mode == "local"
+# Tasks for downloading cli
 
 - include: download_cli.yml
diff --git a/ansible/roles/cli/tasks/download_openwhisk_cli.yml 
b/ansible/roles/cli/tasks/download_openwhisk_cli.yml
deleted file mode 100644
index 7ff8852cc9..0000000000
--- a/ansible/roles/cli/tasks/download_openwhisk_cli.yml
+++ /dev/null
@@ -1,71 +0,0 @@
----
-
-# Download the cli to Nginx CLI directory and unzip them
-
-- name: "set the basic variables os, arc and suffix"
-  set_fact:
-    os="{{ item[0] }}"
-    arc="{{ item[1] }}"
-    suffix="zip"
-
-- name: "change the suffix to tgz if the operating system is Linux"
-  set_fact:
-    suffix="tgz"
-  when: os == "linux"
-
-- name: "set the file name to download"
-  set_fact:
-    source_name="{{ openwhisk_cli.remote.name }}-{{ openwhisk_cli_tag }}-{{ os 
}}-{{ arc }}.{{ suffix }}"
-
-- name: "set the destination file name locally after download for 32 bit"
-  set_fact:
-    dest_name="{{ openwhisk_cli.remote.dest_name }}-{{ os }}-32bit.{{ suffix 
}}"
-  when: arc == "386"
-
-- name: "set the destination file name locally after download for 64 bit"
-  set_fact:
-    dest_name="{{ openwhisk_cli.remote.dest_name }}-{{ os }}.{{ suffix }}"
-  when: arc == "amd64"
-
-- name: "set the http header used to download the binary packages"
-  set_fact:
-    headers="{{ openwhisk_cli.remote.headers }}"
-  when: openwhisk_cli.remote.headers is defined
-
-- name: "set the http header to empty"
-  set_fact:
-    headers=""
-  when: openwhisk_cli.remote.headers is not defined
-
-- name: "set the volume_dir"
-  vars:
-    instance: "{{instances | selectattr('name', 'equalto', 'db') | list | 
first}}"
-  set_fact:
-    volume_dir: "{{ instance.volume.fsmount | default( '/mnt/' + 
group_names|first, true ) }}:/usr/local/var/lib/couchdb"
-  when: (block_device is defined) and (block_device in disk_status.stdout)
-
-- name: "ensure Nginx cli directory for ({{ os }}) {{ arc }} exists"
-  file:
-    path: "{{ cli.nginxdir }}/{{ os }}/{{ arc }}"
-    state: directory
-
-- name: "download cli ({{ os }}) {{ arc }} to Nginx directory"
-  get_url:
-    url: "{{ openwhisk_cli.remote.location }}/{{ source_name }}"
-    dest: "{{ cli.nginxdir }}/{{ os }}/{{ arc }}/{{ dest_name }}"
-    headers: "{{ headers }}"
-    mode: 0755
-
-- name: "unarchive cli for Mac and Windows"
-  unarchive:
-    src: "{{ cli.nginxdir }}/{{ os }}/{{ arc }}/{{ dest_name }}"
-    dest: "{{ cli.nginxdir }}/{{ os }}/{{ arc }}/"
-    remote_src: True
-  when: os != "linux"
-
-- name: "unarchive cli for Linux"
-  command: tar -zxvf {{ dest_name }}
-  args:
-    chdir: "{{ cli.nginxdir }}/{{ os }}/{{ arc }}/"
-  when: os == "linux"
-
diff --git a/ansible/roles/cli/tasks/main.yml b/ansible/roles/cli/tasks/main.yml
index b03b406c3a..b4694cf374 100644
--- a/ansible/roles/cli/tasks/main.yml
+++ b/ansible/roles/cli/tasks/main.yml
@@ -5,6 +5,3 @@
 
 - include: deploy.yml
   when: mode == "deploy"
-
-- include: clean.yml
-  when: mode == "clean"
diff --git a/ansible/roles/nginx/tasks/deploy.yml 
b/ansible/roles/nginx/tasks/deploy.yml
index 0a6531f778..4de1fd3d2b 100644
--- a/ansible/roles/nginx/tasks/deploy.yml
+++ b/ansible/roles/nginx/tasks/deploy.yml
@@ -1,12 +1,19 @@
 ---
 # This role starts a nginx component
 
+- include: docker_login.yml
+
 - name: ensure nginx config directory exists
   file:
     path: "{{ nginx.confdir }}"
     state: directory
   become: "{{ nginx.dir.become }}"
 
+- name: ensure nginx certs directory exists
+  file:
+    path: "{{ nginx.confdir }}/certs"
+    state: directory
+
 - name: copy template from local to remote in nginx config directory
   template:
     src: nginx.conf.j2
@@ -15,7 +22,7 @@
 - name: copy cert files from local to remote in nginx config directory
   copy:
     src: "files/{{ item }}"
-    dest: "{{ nginx.confdir }}"
+    dest: "{{ nginx.confdir }}/certs"
   with_items:
         - "{{ nginx.ssl.cert }}"
         - "{{ nginx.ssl.key }}"
@@ -24,7 +31,7 @@
 - name: copy password files for cert from local to remote in nginx config 
directory
   copy:
     src: "files/{{ nginx.ssl.password_file }}"
-    dest: "{{ nginx.confdir }}"
+    dest: "{{ nginx.confdir }}/certs"
   when: nginx.ssl.password_enabled == true
 
 - name: ensure nginx log directory is created with permissions
@@ -34,22 +41,24 @@
     mode: 0777
   become: "{{ logs.dir.become }}"
 
-- name: "pull the nginx:{{ nginx.version }} image"
-  shell: "docker pull nginx:{{ nginx.version }}"
+- name: "pull edge image with tag {{docker.image.tag}}"
+  shell: "docker pull 
{{docker_registry}}{{docker.image.prefix}}/nginx:{{docker.image.tag}}"
+  when: docker_registry != ""
   retries: "{{ docker.pull.retries }}"
   delay: "{{ docker.pull.delay }}"
 
 - name: (re)start nginx
   docker_container:
     name: nginx
-    image: nginx:{{ nginx.version }}
+    image: "{{ docker_registry }}{{ docker.image.prefix }}/nginx:{{ 
docker.image.tag }}"
     state: started
     recreate: true
     restart_policy: "{{ docker.restart.policy }}"
     hostname: "nginx"
     volumes:
       - "{{ whisk_logs_dir }}/nginx:/logs"
-      - "{{ nginx.confdir }}:/etc/nginx"
+      - "{{ nginx.confdir }}/nginx.conf:/etc/nginx/nginx.conf"
+      - "{{ nginx.confdir }}/certs:/etc/nginx/certs/"
     expose:
       - 8443
     ports:
diff --git a/ansible/roles/nginx/templates/nginx.conf.j2 
b/ansible/roles/nginx/templates/nginx.conf.j2
index 31c1ccfe08..c0b4b20ce7 100644
--- a/ansible/roles/nginx/templates/nginx.conf.j2
+++ b/ansible/roles/nginx/templates/nginx.conf.j2
@@ -46,12 +46,12 @@ http {
 
         ssl_session_cache    shared:SSL:1m;
         ssl_session_timeout  10m;
-        ssl_certificate      /etc/nginx/{{ nginx.ssl.cert }};
-        ssl_certificate_key  /etc/nginx/{{ nginx.ssl.key }};
+        ssl_certificate      /etc/nginx/certs/{{ nginx.ssl.cert }};
+        ssl_certificate_key  /etc/nginx/certs/{{ nginx.ssl.key }};
         {% if nginx.ssl.password_enabled %}
-        ssl_password_file   "/etc/nginx/{{ nginx.ssl.password_file }}";
+        ssl_password_file   "/etc/nginx/certs/{{ nginx.ssl.password_file }}";
         {% endif %}
-        ssl_client_certificate /etc/nginx/{{ nginx.ssl.client_ca_cert }};
+        ssl_client_certificate /etc/nginx/certs/{{ nginx.ssl.client_ca_cert }};
         ssl_verify_client {{ nginx.ssl.verify_client }};
         ssl_protocols        TLSv1 TLSv1.1 TLSv1.2;
         ssl_ciphers RC4:HIGH:!aNULL:!MD5;
diff --git a/ansible/roles/sdk/tasks/clean.yml 
b/ansible/roles/sdk/tasks/clean.yml
deleted file mode 100644
index c9e83edeca..0000000000
--- a/ansible/roles/sdk/tasks/clean.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-# Remove SDK artifacts from nginx.
-
-- name: remove blackbox sdk
-  file:
-    path: "{{ nginx.confdir }}/blackbox-0.1.0.tar.gz"
-    state: absent
-  become: "{{ sdk.dir.become }}"
diff --git a/ansible/roles/sdk/tasks/deploy.yml 
b/ansible/roles/sdk/tasks/deploy.yml
deleted file mode 100644
index 4b6b2deeee..0000000000
--- a/ansible/roles/sdk/tasks/deploy.yml
+++ /dev/null
@@ -1,39 +0,0 @@
----
-# Tasks for handling SDK generation and publishing
-
-- name: ensure nginx config directory exists
-  file:
-    path: "{{ nginx.confdir }}"
-    state: directory
-  become: "{{ sdk.dir.become }}"
-
-# Blackbox
-
-- name: make temp dir
-  local_action: shell "mktemp" "-d" "{{ lookup('env', 'TMPDIR') | 
default('/tmp', true) }}/whisk.XXXXXXXX"
-  register: tmpdir
-
-- name: copy docker sdk to dockerSkeleton in scratch space
-  local_action: copy src="{{ openwhisk_home }}/sdk/docker/{{ item }}" dest="{{ 
tmpdir.stdout }}/dockerSkeleton/"
-  with_items:
-    - buildAndPush.sh
-    - Dockerfile
-    - example.c
-    - README.md
-
-- name: rename base image in Dockerfile
-  local_action: replace dest="{{ tmpdir.stdout }}/dockerSkeleton/Dockerfile" 
regexp='^FROM dockerskeleton*.*$' replace='FROM openwhisk/dockerskeleton'
-
-- name: fix file permissions
-  local_action: file path="{{ tmpdir.stdout }}/dockerSkeleton/buildAndPush.sh" 
mode=0755
-
-- name: build blackbox container artifact
-  local_action: shell "tar" "--exclude=build.gradle" "-czf" "{{ tmpdir.stdout 
}}/blackbox-0.1.0.tar.gz" "dockerSkeleton" chdir="{{ tmpdir.stdout }}"
-
-- name: copy blackbox container artifact to nginx
-  copy:
-    src: "{{ tmpdir.stdout }}/blackbox-0.1.0.tar.gz"
-    dest: "{{ nginx.confdir }}"
-
-- name: remove temp dir
-  local_action: file path="{{ tmpdir.stdout }}" state=absent
diff --git a/ansible/roles/sdk/tasks/main.yml b/ansible/roles/sdk/tasks/main.yml
deleted file mode 100644
index 32f892d54e..0000000000
--- a/ansible/roles/sdk/tasks/main.yml
+++ /dev/null
@@ -1,10 +0,0 @@
----
-# This role will build and publish Openwhisk SDKs. Currently covers blackbox 
starter kit.
-# In deploy mode it will generate downloadable artifacts and copy them to 
nginx.
-# In clean mode it will remove the artifacts from nginx.
-
-- include: deploy.yml
-  when: mode == "deploy"
-
-- include: clean.yml
-  when: mode == "clean"
diff --git a/core/nginx/Dockerfile b/core/nginx/Dockerfile
new file mode 100644
index 0000000000..f53ce80f6f
--- /dev/null
+++ b/core/nginx/Dockerfile
@@ -0,0 +1,12 @@
+FROM nginx:1.11
+
+# copy the content.json file
+COPY content.json /etc/nginx/cli/go/download/content.json
+
+# copy all cli binaries into image
+COPY build/linux /etc/nginx/cli/go/download/linux
+COPY build/mac /etc/nginx/cli/go/download/mac
+COPY build/windows /etc/nginx/cli/go/download/windows
+
+# copy the blackbox image
+COPY build/blackbox-0.1.0.tar.gz /etc/nginx/blackbox-0.1.0.tar.gz
diff --git a/core/nginx/blackbox.sh b/core/nginx/blackbox.sh
new file mode 100755
index 0000000000..2ed9d5e4d7
--- /dev/null
+++ b/core/nginx/blackbox.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+set -ex
+
+SCRIPTDIR=$(cd $(dirname "$0") && pwd)
+WHISK_DIR="$SCRIPTDIR/../.."
+
+TMP_DIR=$(mktemp -d)
+
+pushd $TMP_DIR
+  # create dockerSkeleton dir
+  mkdir dockerSkeleton
+
+  # copy blackbox SDK files into the dockerskeleton directory
+  cp ${WHISK_DIR}/sdk/docker/buildAndPush.sh dockerSkeleton
+  cp ${WHISK_DIR}/sdk/docker/Dockerfile dockerSkeleton
+  cp ${WHISK_DIR}/sdk/docker/example.c dockerSkeleton
+  cp ${WHISK_DIR}/sdk/docker/README.md dockerSkeleton
+
+  # rename base image in Dockerfile
+  if [ "$(uname)" == "Darwin" ]; then
+    sed -i "" "s|^FROM dockerskeleton.*$|FROM openwhisk/dockerskeleton|g" 
dockerSkeleton/Dockerfile
+  else
+    sed -i "s|^FROM dockerskeleton.*$|FROM openwhisk/dockerskeleton|g" 
dockerSkeleton/Dockerfile
+  fi
+
+  # fix file permissions
+  chmod 0755 dockerSkeleton/buildAndPush.sh
+
+  # build blackbox container artifact
+  tar -czf ${SCRIPTDIR}/build/blackbox-0.1.0.tar.gz dockerSkeleton
+popd
+
+# remove tmp dir
+rm -rf $TMP_DIR
diff --git a/core/nginx/build.gradle b/core/nginx/build.gradle
new file mode 100755
index 0000000000..5b5b691c05
--- /dev/null
+++ b/core/nginx/build.gradle
@@ -0,0 +1,28 @@
+// make sure that CLI builds each OS variation
+def cliProject = findProject(':tools:cli')
+configure(cliProject) {
+  ext.set("crossCompileCLI", "true")
+}
+
+// Because of how Dockerfiles only know about files in the current
+// direcotry or sub directories, we need to copy the previously built
+// CLI images to this directory.
+task copyCLI(dependsOn: ':tools:cli:copyCLIShortcut') {
+  doLast {
+    copy {
+      from "${projectDir}/../../bin/"
+      into "${projectDir}/build/"
+      include "linux/**"
+      include "mac/**"
+      include "windows/**"
+    }
+  }
+}
+
+task generateBlackbox(type: Exec, dependsOn: 'copyCLI') {
+  commandLine './blackbox.sh'
+}
+
+ext.dockerImageName = 'nginx'
+apply from: '../../gradle/docker.gradle'
+distDocker.dependsOn ':tools:cli:distDocker', 'copyCLI', 'generateBlackbox'
diff --git a/core/nginx/content.json b/core/nginx/content.json
new file mode 100644
index 0000000000..53c7f4a7a4
--- /dev/null
+++ b/core/nginx/content.json
@@ -0,0 +1,37 @@
+{
+  "cli": {
+    "mac": {
+      "386": {
+        "path":"mac/386/OpenWhisk_CLI-mac-32bit.zip"
+      },
+      "default": {
+        "path":"mac/amd64/OpenWhisk_CLI-mac.zip"
+      },
+      "amd64": {
+        "path":"mac/amd64/OpenWhisk_CLI-mac.zip"
+      }
+    },
+    "linux": {
+      "386": {
+        "path":"linux/386/OpenWhisk_CLI-linux-32bit.tgz"
+      },
+      "default": {
+        "path":"linux/amd64/OpenWhisk_CLI-linux.tgz"
+      },
+      "amd64": {
+        "path":"linux/amd64/OpenWhisk_CLI-linux.tgz"
+      }
+    },
+    "windows": {
+      "386": {
+        "path":"windows/386/OpenWhisk_CLI-windows-32bit.zip"
+      },
+      "default": {
+        "path":"windows/amd64/OpenWhisk_CLI-windows.zip"
+      },
+      "amd64": {
+        "path":"windows/amd64/OpenWhisk_CLI-windows.zip"
+      }
+    }
+  }
+}
diff --git a/settings.gradle b/settings.gradle
index 9a27b319b4..fe5dc9c538 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -13,6 +13,7 @@ include 'core:javaAction'
 include 'core:php7.1Action'
 
 include 'tools:cli'
+include 'core:nginx'
 
 include 'sdk:docker'
 
diff --git a/tools/build/redo b/tools/build/redo
index cfe2a21939..284dfa9a03 100755
--- a/tools/build/redo
+++ b/tools/build/redo
@@ -259,9 +259,15 @@ Components = [
                   modes = 'clean',
                   gradle = ':core:invoker'),
 
+    makeComponent('cli',
+                  'build cli',
+                  yaml = False,
+                  gradle = ':tools:cli'),
+
     makeComponent('edge',
                   'deploy edge',
-                  gradle = ':tools:cli'),
+                  modes = 'clean',
+                  gradle = ':core:nginx'),
 
     makeComponent('catalog',
                   'install catalog',


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to