forked from nextflow-io/nextflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve fusion docs (nextflow-io#5166) [ci skip]
Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Jordi Deu-Pons <[email protected]> Co-authored-by: Adam Talbot <[email protected]> Signed-off-by: Niklas Schandry <[email protected]>
- Loading branch information
Showing
4 changed files
with
205 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM amazoncorretto:17-al2023 | ||
COPY .nextflow /.nextflow | ||
COPY nextflow /usr/bin/nextflow | ||
ENV NXF_HOME=/.nextflow | ||
RUN nextflow info | ||
RUN NXF_PLUGINS_DEFAULT=false nextflow plugin install nf-tower,nf-wave,nf-cloudcache,nf-azure,nf-google,nf-amazon,xpack-amzn,xpack-google,nf-cloudcache | ||
|
||
#FROM scratch | ||
#COPY --from=0 /.nextflow /.nextflow | ||
#COPY --from=0 /usr/bin/nextflow /usr/bin/nextflow | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# | ||
# Copyright 2013-2024, Seqera Labs | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# | ||
|
||
# cleanup | ||
rm -rf .nextflow && mkdir .nextflow | ||
# copy nextflow dependencies | ||
(cd .. | ||
./gradlew compile assemble | ||
BUILD_PACK=1 ./gradlew installScratch publishToMavenLocal -Dmaven.repo.local=${PWD}/docker-scratch/.nextflow/capsule/deps/ | ||
) | ||
|
||
# copy nextflow launcher script | ||
cp ../nextflow . && chmod +x nextflow | ||
cp ../modules/nextflow/src/main/resources/META-INF/build-info.properties . | ||
source build-info.properties | ||
|
||
if [ -z "$version" ]; then | ||
echo "Error: version is empty or missing"; exit 1 | ||
fi | ||
if [ -z "$build" ]; then | ||
echo "Error: build is empty or missing"; exit 1 | ||
fi | ||
if [ -z "$commitId" ]; then | ||
echo "Error: commitId is empty or missing"; exit 1 | ||
fi | ||
|
||
|
||
TAG=${version}-${commitId} | ||
repository=${repository:-'docker.io/pditommaso/nf-launcher-dev'} | ||
image=${repository}:${TAG} | ||
base=${base:-'docker.io/pditommaso/nf-lancher:j17-base'} | ||
|
||
docker buildx build \ | ||
--no-cache \ | ||
--platform linux/amd64 \ | ||
--output=type=docker \ | ||
--progress=plain \ | ||
--tag ${image} \ | ||
--build-arg TARGETPLATFORM=linux/amd64 \ | ||
. | ||
|
||
#launcher=$(wave -i ${base} --include ${image} --config-env NXF_HOME=/.nextflow) | ||
# | ||
#echo $launcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters