eth-educators / eth-docker

Docker automation for Ethereum nodes
Apache License 2.0
480 stars 227 forks source link

ERROR: Cannot locate specified Dockerfile: Dockerfile #122

Closed vladiuz1 closed 4 years ago

vladiuz1 commented 4 years ago
docker-compose build
Building validator-import
ERROR: Cannot locate specified Dockerfile: Dockerfile

Ubuntu 18.04

$ docker-compose --version docker-compose version 1.24.0, build 0aa59064

$ docker --version Docker version 19.03.6, build 369ce74a3c

.env:

# Please adjust the below variable to your local user ID if you are on Linux.
# This is vital for key import to work. You can find your UID with "echo $UID".
LOCAL_UID=1000
# Client choice: See SETUP.md for available options
COMPOSE_FILE=lh-base.yml:oe.yml:lh-grafana.yml
# ETH1 endpoint / chain source. This default uses the eth1 node container
ETH1_NODE=http://eth1:8545
# Graffiti to use for validator, in order to receive POAP
GRAFFITI=eth2-docker
# Number of validators to create with deposit-cli
NUMVAL=1
# Advanced: Start index for recovery of validators or adding validators
VAL_START_INDEX=0
# Restart policy: Set to no if you do not want services to automatically restart
RESTART=unless-stopped
# If you want debug logs, set this to debug instead of info
LOG_LEVEL=info
# Uncomment this if you need to restrict teku to use 6 GiB of heap
#TEKU_LOW_MEM=-Xmx6G
# Leave this as-is to compile nimbus with support for metrics via grafana. 
# Change to empty (nothing after first =) to disable that functionality
NIM_METRICS=NIMFLAGS="-d:insecure"
# Network to use for eth2. If using main net, set to mainnet.
NETWORK=mainnet
# Network to use for eth1. If using OpenEthereum and main net, set to ethereum. For Nethermind and main net, set to mainnet. Not in use for Geth.
ETH1_NETWORK=ethereum
# If using Geth as the eth1 node and main net, comment out.
# GETH1_NETWORK=--goerli
danbryan commented 4 years ago

can you make sure you use the latest version of default.env ? There were a lot of Docker changes that require new variables. I just did a fresh build tonight and it worked for me. You should see stuff like

LH_SRC_BUILD_TARGET=$(git describe --tags $(git rev-list --tags --max-count=1))
LH_DOCKER_TAG=v0.3.4 # eventually stable or stable-latest when sigp introduce that
# Change to Dockerfile.source to build from source
LH_DOCKERFILE=Dockerfile.binary
LH_USER=lighthouse

also the pipeline test was able to successfully launch the default container too.

yorickdowne commented 4 years ago

In addition, I broke the Lighthouse build for a few hours. You might have grabbed it "in between". As danbryan said, please git pull again, and make sure to use a new copy of default.env to bring your specific changes into.

Side note: I've had OpenEthereum corrupt my mainnet database, once again. The fix they have in dev didn't do the trick. Your mileage will vary.

yorickdowne commented 4 years ago

There was another mistake in default.env. This should be fixed now. Closing for now, please holler if you still have issues, and thank you for your patience.