Comments (3)
I had to adapt a little the Dockerfile to generate my container but otherwise it worked like a charm. Thank you again for your help!
(what I had to change on the Dockerfile, in case someone need to do the same:
@ -38,7 +38,7 @@ RUN apt update -y && apt upgrade -y && apt install -y \
nodejs
RUN ln -s /usr/bin/python3.8 /usr/bin/python
-RUN ln -s /usr/bin/pip3 /usr/bin/pip
WORKDIR /usr/local/bin
@@ -56,7 +56,7 @@ RUN wget https://golang.org/dl/go1.15.3.linux-amd64.tar.gz && \
rm go1.15.3.linux-amd64.tar.gz
RUN export SINGULARITY_VERSION=3.3.0 && \
export PATH=/usr/local/bin/go/bin/:$PATH && \
- wget https://github.com/sylabs/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-${SINGULARITY_VERSION}.tar.gz && \
+ wget https://github.com/hpcng/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-${SINGULARITY_VERSION}.tar.gz && \
tar -xzf singularity-${SINGULARITY_VERSION}.tar.gz && \
rm singularity-${SINGULARITY_VERSION}.tar.gz && \
cd singularity && \
@@ -92,7 +92,9 @@ COPY run.sh .
COPY cron.sh .
RUN chmod +x run.sh cron.sh
ARG version
-RUN pip install tibanna==$version
+RUN git clone --single-branch --branch mybranch https://github.com/my/repo tibanna-git
+RUN pip install -e ./tibanna-git
)
Cheers,
−Nils
from tibanna.
Hi @nigiord, thank you for using Tibanna. The repo name and branch name are used to retrieve the awsf3/aws_run_workflow_generic.sh
code which delegates most of the tasks to the tibanna-awsf docker image. Before 1.0.0, they were used to retrieve the contents from the awsf/
directory. Now most of them are in the docker image. If you don't have to change awsf3/aws_run_workflow_generic.sh
, you can still use the original repo and branch name and just build your own docker image and specify it in the config (or you can change the default image name in your forked version). Alternatively, you can revert to <1.0.0 to use the awsf/
folder in your own repo and branch. I hope this helps.
Soo
from tibanna.
Hi @SooLee and thank you for your help,
If you don't have to change awsf3/aws_run_workflow_generic.sh, you can still use the original repo and branch name and just build your own docker image and specify it in the config (or you can change the default image name in your forked version).
I see, so the idea is to make my changes in any file of awsf3/
as needed, build a new docker image, upload it to dockerhub and tell Tibanna to use it instead of the default. Is that correct?
I looked at the documentation but I didn't see immediately where I can define the awsf image when deploying a unicorn or submitting a job. I looked a little at the current code though and found that the awsf_image
config argument exists but is not documented: https://github.com/4dn-dcic/tibanna/blob/master/tibanna/ec2_utils.py#L306-L307
So basically, if I use tibanna through snakemake, I guess I'll just have to use
snakemake --tibanna --tibanna-config awsf_image=myrepo/myimage:myversion
in order to use my modified code. I'll try to test that, let me know if you think I'm on the wrong path.
−Nils
from tibanna.
Related Issues (20)
- S3 Upload Encryption Argument HOT 11
- Minor bug when downloading files containing spaces to EC2 instance
- Tibanna1.0 errors out with Snakemake HOT 1
- MissingInputException with Snakemake and Tibanna HOT 2
- Log Differences between 0.18.3 and 1.0+ HOT 3
- Specifying ECR AWSF_IMAGE in snakemake HOT 1
- Step functions fail for snakemake rules HOT 1
- Tibanna/Snakemake compatibility issue? HOT 4
- Docker image for 1.9.2 doesn't exist HOT 1
- AWS ending python 3.6 support for lambda functions HOT 1
- plot_metrics isn't producing some plots HOT 9
- botocore client error Rate Exceeded HOT 1
- Tibanna instance type error with snakemake HOT 29
- runtask failure : InvalidFleetConfig HOT 6
- Transfer ownership of Snakemake tibanna plugin HOT 8
- Large amounts of NAT gateway costs HOT 4
- Turn off cloudwatch and costexplorer HOT 6
- KMS Authentication Error in Lambda When Running Tibanna HOT 1
- deploy_unicorn: Pip Install Conflict Error
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 tibanna.