forked from Azure/iotedge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 869747: Added base image for edge hub amd64
- base image for edgeHub linux-amd64 - changed base image tag for edgeHub linux-amd64
- Loading branch information
1 parent
0cae945
commit 0448a2e
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |