Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try building everythng only in Docker #1379

Open
wants to merge 1 commit into
base: master
from

Conversation

@SvenDowideit
Copy link

SvenDowideit commented Nov 15, 2019

This uses multi-stage builds to first build, and test, and then uses that build container to assemble the release docker image.

it works right up to calling nextflow info, where it fails with:

 > [stage-1 6/6] RUN mkdir /.nextflow  && touch /.nextflow/dockerized  && chmod 755 /usr/local/bin/nextflow  && chmod 755 /usr/local/bin/entry.sh  && nextflow info:
#19 0.816 Downloading nextflow dependencies. It may require a few seconds, please wait .. curl: (22) The requested URL returned error: 403 Forbidden
#19 2.394 ERROR: Cannot download nextflow required file -- make sure you can connect to the internet

#19 2.395 Alternatively you can try to download this file:
#19 2.395     https://www.nextflow.io/releases/v19.10.0-edge/nextflow-19.10.0-edge-one.jar
#19 2.395 
#19 2.395 and save it as:
#19 2.395     /.nextflow/framework/19.10.0-edge/nextflow-19.10.0-edge-one.jar
#19 2.395 

That URL fails for me too, so I wonder if its incorrect.

on the other hand, using

COPY --from=build /src/build/releases/nextflow-19.10.0-edge-all /usr/local/bin/nextflow

(ie, not the script)
I get something alot more like what I want

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
WORKDIR /src
COPY . /src

RUN make deps

This comment has been minimized.

Copy link
@SvenDowideit

SvenDowideit Nov 15, 2019

Author

if make deps only uses a subset of the files, it would be good to change the COPY line above to only bring in those, and then COPY the rest after make deps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.