Merge pull request #6898 from ipfs/enable-plugins-in-docker

feat: pass IPFS_PLUGINS to docker build
This commit is contained in:
Steven Allen 2020-02-13 08:10:34 -08:00 committed by GitHub
commit ced9183e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -16,11 +16,15 @@ RUN cd $SRC_DIR \
COPY . $SRC_DIR
# Preload an in-tree but disabled-by-default plugin by adding it to the IPFS_PLUGINS variable
# e.g. docker build --build-arg IPFS_PLUGINS="foo bar baz"
ARG IPFS_PLUGINS
# Build the thing.
# Also: fix getting HEAD commit hash via git rev-parse.
RUN cd $SRC_DIR \
&& mkdir .git/objects \
&& make build GOTAGS=openssl
&& make build GOTAGS=openssl IPFS_PLUGINS=$IPFS_PLUGINS
# Get su-exec, a very minimal tool for dropping privileges,
# and tini, a very minimal init daemon for containers

View File

@ -40,7 +40,6 @@ func (*peerLogPlugin) Version() string {
// Init initializes plugin
func (*peerLogPlugin) Init(*plugin.Environment) error {
fmt.Println("peerLogPlugin enabled - PeerIDs will be logged")
return nil
}