An example of a streaming file upload to Amazon S3 using Netifi Proteus.
This example requires the following prerequisites:
-
AWS Account
-
AWS Access Key ID and AWS Secret Access Key configured on your machine
-
S3 bucket configured in your AWS account that can be accessed by your keys
-
A Running Netifi Proteus Broker
Run the following command to start a Netifi Proteus Broker:
docker run \ -p 8001:8001 \ -p 7001:7001 \ -p 9000:9000 \ -e BROKER_SERVER_OPTS="'-Dnetifi.authentication.0.accessKey=9007199254740991' \ '-Dnetifi.broker.console.enabled=true' \ '-Dnetifi.authentication.0.accessToken=kTBDVtfRBO4tHOnZzSyY5ym2kfY=' \ '-Dnetifi.broker.admin.accessKey=9007199254740991' \ '-Dnetifi.broker.admin.accessToken=kTBDVtfRBO4tHOnZzSyY5ym2kfY='" \ netifi/proteus:1.5.2
Follow the steps below to build the example.
-
Run the following Gradle command to build the application:
./gradlew clean build
Follow the steps below to run the example.
-
Ensure that you have a running Netifi Proteus Broker.
-
Run the following command to start the upload service:
./gradlew :service:run
-
Run the following command to upload the
cat.jpeg
image to Amazon S3:./gradlew :client:run --args="{full path to cat.jpeg}"
For bugs, questions, and discussions please use the Github Issues.
Support for Proteus and RSocket is also available on the Netifi Community Forums.
Copyright 2018 Netifi Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.