By using AWS re:Post, you agree to the AWS re:Post Terms of Use

aws-iot-securetunneling-localproxy on Orange Pi Zero

0

I have been trying to install aws-iot-securetunneling-localproxy on a orange pi zero with no success. I have tried to install the Source as per Github. but this fails with errors. I have installed Docker and tested with Hello World ok. I have downloaded the code from : Github. https://github.com/aws-samples/aws-iot-securetunneling-localproxyI. and tried ver3.0.2

I get the following error when I : ./docker-build.sh

Architecture: armv7l OpenSSL configurations: linux-generic64 [+] Building 1.2s (3/3) FINISHED => [internal] load .dockerignore 0.1s => => transferring context: 2B 0.0s => [internal] load build definition from Dockerfile 0.2s => => transferring dockerfile: 3.30kB 0.0s => ERROR [internal] load metadata for docker.io/library/amazonlinux:latest 1.0s

[internal] load metadata for docker.io/library/amazonlinux:latest:


Dockerfile:92

90 | ## Actual docker image 91 | 92 | >>> FROM amazonlinux:latest 93 | 94 | # Install openssl for libssl dependency.

ERROR: failed to solve: amazonlinux:latest: no match for platform in manifest sha256:1bed949a5cbe3aa92107828d42f08f33dd2c1f1c46178831b3face787853f628: not found

Any help on this would be much appreciated.

2 Answers
0
Accepted Answer

Following this link: https://github.com/aws-samples/aws-iot-securetunneling-localproxy?sc_channel=EL&sc_campaign=Demo_Getting_Started_2021_vid&sc_medium=YouTube&sc_content=Video9118&sc_detail=SECURITY_IDENTITY_COMPLIANCE&sc_country=US

In order to get all Source files to install properly I tried 1GB swapfile but would not complete until I created a 2GB swapfile for the Orange Pi Zero.

sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile

To get this part to work: Download and build the local proxy

I had to edit CMakeFiles.txt and change Boost configs so cmake could find boost :

set(BOOST_ROOT /srv/dependencies/boost_1_81_0) set(BOOST_INCLUDEDIR /srv/dependencies/boost_1_81_0/include) set(BOOST_LIBRARYDIR /srv/dependencies/boost_1_81_0/libs) set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_DEBUG_RUNTIME OFF) #set_property(GLOBAL PROPERTY Boost_USE_MULTITHREADED ON)

answered 2 years ago
0

Hi Seawinds.

ERROR: failed to solve: amazonlinux:latest: no match for platform in manifest

Your architecture is armv7l but amazonlinux:latest only has images for amd64 and arm64. It's a known issue: https://github.com/aws-samples/aws-iot-securetunneling-localproxy/issues/72. You could follow the advice there and change the base image to Ubuntu:18.04.

Alternatively, you could try building from source, not via Docker. It seems there are some bumps with that too, but people are succeeding on Raspberry Pi:

profile pictureAWS
EXPERT
answered 2 years ago
  • Thank you Greg I will follow-up on these links.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions