Skip to content

Commit

Permalink
Install Fuchsia core SDK in Docker image
Browse files Browse the repository at this point in the history
We will need the `fidlc` and `fidlgen` binaries from it.

ref project-oak#426
  • Loading branch information
tiziano88 committed Jan 8, 2020
1 parent 566f842 commit 3d8145c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,16 @@ RUN sha256sum --binary ${GOLANG_TEMP} && echo "${GOLANG_SHA256} *${GOLANG_TEMP}"
RUN tar --extract --gzip --file=${GOLANG_TEMP} --directory=${GOROOT} --strip-components=1
RUN rm ${GOLANG_TEMP}
RUN ${GOROOT}/bin/go get github.com/campoy/embedmd

# Install Fuchsia SDK (for FIDL).
# The weird URL was obtained by following through these links:
# - https://fuchsia.googlesource.com/fuchsia/+/master/docs/development/sdk/download.md
# - https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core/linux-amd64/+/latest
ARG FUCHSIA_SDK_SHA256=8c634d1f58e4e8f3defd03795f603fc63f924f217b0f00960ea8cffa8f1c7d97
ARG FUCHSIA_SDK_DIR=/usr/local/fuchsia-sdk
ARG FUCHSIA_SDK_TEMP=/tmp/fuchsia-sdk.zip
RUN curl --location 'https://storage.googleapis.com/chrome-infra-packages/store/SHA256/8c634d1f58e4e8f3defd03795f603fc63f924f217b0f00960ea8cffa8f1c7d97?Expires=1578526201&GoogleAccessId=chrome-infra-packages%40appspot.gserviceaccount.com&Signature=pMKZbcOfLvgetXGoxfZwX%2Fp%2F%2FVj2Ec%2F%2F%2BenohLEyZOZq56cdlSpebC2vThgYkgRlUYWqrOKRE3dDWmtQXMuDXh1uP8eB8gRkjge61wrfXqRVDBgFzFyNVs75Mz3rwnEwbQJ0cnye59PsV4vf28S%2FlSkg96KdX5MVi0lXWHbbujyE1nTGDrZoyDqg3Bu1FIHwsrpYwqPUZOtsB%2BRfqy8OZnzAUUjTDgn8Ot3LlLU0UzMsFzoMSo1lLjTadPOVQJgjeV6RCNIP4aOhueloDy3bX1TkLXHgCKQjxp3yT5op3pcFN1oSjoX2D75ZB%2BLxTpKCr2Zpk%2BHvudcpMpUgPaW5fQ%3D%3D&response-content-disposition=attachment%3B+filename%3D%22core-linux-amd64.zip%22' > ${FUCHSIA_SDK_TEMP}
RUN sha256sum --binary ${FUCHSIA_SDK_TEMP} && echo "${FUCHSIA_SDK_SHA256} *${FUCHSIA_SDK_TEMP}" | sha256sum --check
RUN unzip ${FUCHSIA_SDK_TEMP} -d ${FUCHSIA_SDK_DIR}
RUN chmod --recursive a+rwx ${FUCHSIA_SDK_DIR}/tools
ENV PATH "${FUCHSIA_SDK_DIR}/tools:${PATH}"

0 comments on commit 3d8145c

Please sign in to comment.