Skip to content

Support thrift for ARM64  #13

Description

@khasim

Hi,

With very minor changes to Dockerfile, by to moving to latest Debian release "stretch", thrift works on ARM64 containers.

Can you please review the below changes and suggest if I can raise a PR ? Also, can we plan to officially release the binaries for ARM64 on hub.docker ?

`diff --git a/0.11/Dockerfile b/0.11/Dockerfile
index a98ed4f..85fda66 100644
--- a/0.11/Dockerfile
+++ b/0.11/Dockerfile
@@ -1,4 +1,4 @@
-FROM debian:wheezy
+FROM debian:stretch
LABEL authors="Adam Hawkins hi@ahawkins.me"

ENV THRIFT_VERSION 0.11.0
@@ -31,7 +31,11 @@ RUN buildDeps="
&& make install
&& cd /
&& rm -rf /usr/src/thrift \

remove

  && curl -k -sSL "https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz" -o go.tar.gz 

replace with

   && if [ $(uname -m) = "aarch64" ]; then \
      curl -k -sSL "https://storage.googleapis.com/golang/go1.10.1.linux-arm64.tar.gz" -o go.tar.gz ; \
      else \
      curl -k -sSL "https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz" -o go.tar.gz ; \
   fi \

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions