Closed rhicks closed 7 years ago
Looks like you aren't using this from the root of a Meteor app. Both the package.json
and the .meteor/release
file are missing.
I don't think this is an issue with this project, so I'm going to close this for now. Let me know if you run into any more problems.
I am getting "Retrying download in 5 seconds" when using jshimko/meteor-launchpad:latest as a base image. I want to build wekan with .meteor/release
set to METEOR@1.3.5.1
@centigrade-thomas-becker This issue is closed, so it's generally a good idea to file a new one if you think there's a valid bug. However, if your error is the same as the original post, that's a usage error and not a problem with this project. Note the error messages in his two comments:
# missing package.json
[-] Running npm install in app directory...
npm WARN enoent ENOENT: no such file or directory, open '/opt/meteor/src/package.json'
...
[-] Building Meteor application...
build: You're not in a Meteor project directory.
and...
# missing .meteor/release
head: cannot open '/opt/meteor/src/.meteor/release' for reading: No such file or directory
That means meteor-launchpad isn't able to find those files (which is why the Meteor build/download is failing). That usually means you're not running the docker build command from the root of a Meteor project or you're not specifying the correct path at the end of the docker build
command.
Just to confirm, I just cloned, built, and ran Wekan using this base image with no issues, so I recommend taking a closer look at your setup. If you feel like you found an issue, certainly feel free to open a new issue.
git clone https://github.com/wekan/wekan.git
cd wekan
echo "FROM jshimko/meteor-launchpad:latest" > Dockerfile
docker build -t wekan-test .
In my case the problem was, that my Dockerfile was located in a subdirectory ./docker/application/Dockerfile, but it has to be in the root of the project
@Mklueh Your Dockerfile can be wherever you want. You just have to specify the path with the -f
flag if it's not in the directory you're currently in. And the final argument of the docker build
command is always the path of the app root - usually just specified by a dot (.
) if you're running the command from the app root.
# the standard format (assuming everything is in the app root)
docker built -t myImageName .
# if you're in the root of the app, but the Dockerfile isn't
docker built -f ./path/to/Dockerfile -t myImageName .
# if you're somewhere else entirely
docker built -f ./path/to/Dockerfile -t myImageName ./path/to/app/root
So in short, you can put your Dockerfile wherever you want and you can run the build command from wherever you want. But if you're not in the app root, you have to specify where everything is when running the docker build
command.
I was experiencing the same issue from the root of the directory, but didn't have .meteor/release (working in development in my laptop and trying right now to publish a test deployment in a server)
I would suggest to make it clear in README.md that .meteor/release
file is required.
note: I'm a newbie and really don't know how unusual it is to have that out of the git tree.
Cheers!!
Trying to use meteor-launchpad for the first time today.
Getting different errors with "devbuild" and "latest". Probably something I am doing incorrectly. Please point me in the right direction.
devbuild:
Dockerfile
FROM jshimko/meteor-launchpad:devbuild
Error:
latest:
Dockerfile
FROM jshimko/meteor-launchpad:latest
Error: