【发布时间】:2019-03-15 21:10:59
【问题描述】:
我无法让make 在高山工作
make update_tools 在我的 OSX 上运行它时有效,但是当我在 alpine 映像中运行它时,我收到以下错误:
make: *** 没有规则来制作目标“update_tools”。停止。
这是我的 Dockerfile 现在的样子:
#Download base image Alpine-3.9 Golang 1.12
FROM golang:1.12-alpine3.9
# Set Working Directory is /usr/app
WORKDIR /usr/app
# Install Alpine Dependencies
RUN apk update && apk upgrade && apk add --update alpine-sdk && \
apk add --no-cache bash git openssh make cmake
COPY cosmos-sdk .
WORKDIR /usr/app/cosmos-sdk
RUN git checkout v0.33.0 && \
make update_tools && \
make vendor-deps && \
make install && \
gaiad init $(whoami) && \
rm .gaiad/config/genesis.json && \
curl https://raw.githubusercontent.com/cosmos/launch/master/genesis.json > $HOME/.gaiad/config/genesis.json
#Add persistent peer to config.toml file
RUN sed -i '' 's/persistent_peers = ""/persistent_peers = "89e4b72625c0a13d6f62e3cd9d40bfc444cbfa77@34.65.6.52:26656"/' $HOME/.gaiad/config/config.toml
#Start gaid daemon and set logging to info
CMD ["gaiad start --log_level="*:info""]
# Expose the ports
EXPOSE 26656 26657
生成文件:https://github.com/cosmos/cosmos-sdk/blob/develop/Makefile
我将不胜感激任何指针
【问题讨论】:
-
你能发布你的 Makefile 吗?
-
共享@michalhosna