Comments (7)
It seems as though it thinks these dependencies are already in the working directory, they probably should be pulled in using go get via run commands (bolt, proto, grpc)
RUN go get google.golang.org/grpc
from iotex-core.
@jerkyrs thanks for reporting the issue. Before building the docker image. try to do the following in your dev environment:
- Download and install
glide
- Rund
glide install
from iotex-core.
@zjshen14 ok this works but i don't like it.. You should not have to install something into your working directory before you run a Dockerfile, Dockerfile assumes you are running on a stateless server without anything more then Docker itself available.
I dont know if this is feasible because i never tested it but why not use glide inside container, i realize this comes with overhead have having to fetch each time but you can not rely on what is currently installed in the users working directory to facilitate a clean build.
RUN curl https://glide.sh/get | sh
from iotex-core.
It's possible to use glide inside container, we didn't do it to shorten the process of building an docker image. This is under the assumption that glide install has been executed so that dependencies will be copied into docker too. However, you have raise a fair point.
from iotex-core.
tested commit e380921 , the CMD syntax for starting iotex-server is incorrect
CMD ["iotex-server", "-stderrthreshold=WARNING", "-log_dir=/var/log/iotex/server.log", "-config=/etc/iotex/config.yaml"]
Available options
usage: server -config=[string]
-config string
specify configuration file path (default "./config.yaml")
-log-level string
Log level (default "info")
-log-path string
Log path
Does not start automatically as a result
from iotex-core.
Good catch! Will fix this
from iotex-core.
This is fixed in the latest master
from iotex-core.
Related Issues (20)
- Support partial downloading of Snapshot
- SIGINT won't stop the program when syncing blocks HOT 1
- Add metrics for db size
- Fix flaky test in nodeinfo_test.go
- Archive mode related RPC return wrong result
- Must have
- CI result conflicts HOT 2
- [evm] enable transient storage feature
- verify mainnet's genesis hash HOT 1
- add ioctl command for delegate endorsement
- Optimize indexer interface
- debug_traceTransaction reverted HOT 2
- Support for callTracer in debug_traceTransaction
- "Failed to get code hash. " message
- [ioctl] update ws project format
- Implement HeaderByHeight in filedao HOT 2
- Add transaction hash to the EVM logs
- Cannot restake to larger duration in native staking
- start a new PoS chain from zero with iotex-core
- Accounting whether the node height is behind in readiness on API node
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotex-core.