Skip to content

Commit

Permalink
Merged PR 869747: Added base image for edge hub amd64
Browse files Browse the repository at this point in the history
- base image for edgeHub linux-amd64
- changed base image tag for edgeHub linux-amd64
  • Loading branch information
ancaantochi committed May 31, 2018
1 parent 0cae945 commit 0448a2e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion edge-agent/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_tag=2.1.0-rc1-runtime-alpine3.7
FROM azureiotedge/azureiotedge-agent-base:1.0.0-linux-amd64 as builder
FROM azureiotedge/azureiotedge-agent-base:1.0.0-preview001-linux-amd64 as builder

FROM microsoft/dotnet:${base_tag}

Expand Down
15 changes: 1 addition & 14 deletions edge-hub/docker/linux/amd64/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
ARG base_tag=2.1.0-rc1-runtime-alpine3.7
ARG num_procs=4

FROM alpine:3.7 as builder

# Build RocksDB for alpine
RUN apk update && \
apk add build-base bash perl linux-headers coreutils git snappy-dev

RUN git clone -b v5.4.6 --depth 1 https://github.com/facebook/rocksdb.git && \
cd rocksdb && \
CFLAGS="-static-libstdc++ -Wno-psabi -DSNAPPY" PORTABLE=1 make -j ${num_procs} shared_lib && \
strip librocksdb.so && \
mkdir -p ../publish && \
cp -vL librocksdb.so ../publish/
FROM azureiotedge/azureiotedge-hub-base:1.0.0-preview001-linux-amd64 as builder

FROM microsoft/dotnet:${base_tag}

Expand Down
14 changes: 14 additions & 0 deletions edge-hub/docker/linux/amd64/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG num_procs=4

FROM alpine:3.7

# Build RocksDB for alpine
RUN apk update && \
apk add build-base bash perl linux-headers coreutils git snappy-dev

RUN git clone -b v5.4.6 --depth 1 https://github.com/facebook/rocksdb.git && \
cd rocksdb && \
CFLAGS="-static-libstdc++ -Wno-psabi -DSNAPPY" PORTABLE=1 make -j ${num_procs} shared_lib && \
strip librocksdb.so && \
mkdir -p ../publish && \
cp -vL librocksdb.so ../publish/

0 comments on commit 0448a2e

Please sign in to comment.