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 868491: Fix module lifecycle and use agent base image
Fix module lifecycle and use agent base image
- Loading branch information
1 parent
cfeb7f0
commit 2d2d074
Showing
6 changed files
with
32 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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/ |
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
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