Coder Social home page Coder Social logo

gl-images's Introduction

GL-images

This repo holds docker images created for my GeneLab work. The Dockerfiles are stored here and the images on quay.io.

Notes on adding new images and putting on Quay

E.g., here's the process for adding the bismark image for the methylseq workflow

Created the subdirectory "methylseq-wf-bismark", added the Dockerfile.

Logged into my quay.io account and did the following:

  • made a new repository called gl-methylseq-wf-bismark
  • set to Public
  • selected link to a GitHub Repository Push
  • clicked Create Public Repository
  • may have to select apprpriate organization, then click Continue
  • selected this repository, GL-images, then Continue
  • set to "Trigger only on branches and tags matching a regular expression", and entered tags/methylseq-wf-bismark
    • if i want to trigger an auto-build, i can use that tag, otherwise can just manually trigger build on quay (which won't be that often)
  • clicked Continue
  • left checked "Tag manifest with the branch or tag name"
  • unchecked "Add latest tag if on default branch" (because i'm keeping all of these in the main branch)
  • entered this as tag template: ${commit_info.short_sha} (pasted in and clicked Add Tag Template, then click Continue)
  • selected this as location of Dockerfile: /methylseq-wf-bismark/Dockerfile, clicked Continue
  • selected this as context: /methylseq-wf-bismark, clicked Continue
  • ignore Optional Robot Account, clicked Continue, then Continue again
  • notification page about Trigger activate, clicked "Return to..."

image

Then triggered first build with "Start New Build", "Run Trigger Now", selected "main" branch, then "Start Build" from the builds page, which is here for this example: https://quay.io/repository/astrobiomike/gl-methylseq-wf-bismark?tab=builds


Docker reminder commands

Example building locally after having created Dockerfile, from in the directory:

docker build -t gl-align-qc .
    # where `-t` argument is wanted name of container

Example jumping into shell of a container:

docker run -it gl-align-qc bash
    # where `-i` is for interactive and `-t` is for tty

Docker install notes

Installing docker on my Apple Silicon M1 mac following this page (https://docs.docker.com/desktop/install/mac-install/) was problematic. I could install and run it, but then trying to setup conda environments inside those docker containers when running docker build did not work, as they were limited to looking for packages under noarch and linux-aarch64, rather than noarch and linux-64.

I imagine running containers built elsewhere would be fine (i think), but i don't think i can build them there. Couldn't get things working on my M1 mac, so instead installed on my work mac following the above. Example steps below are after doing that.

UPDATE I think i just need to specify the platform during the build command, e.g.:

docker build --platform linux/x86_64 -t gl-align-qc . 

Also, based on looking here, may be able to put that in the Dockerfile, e.g.:

FROM --platform linux/x86_64 condaforge/mambaforge:22.11.1-4

NOTE I'm seeing amd64 and x86_64 used interchangeably in a lot of places. I think they may be the same. I'm not sure which should be used in these (i've seen both for Dockerfiles), and i'm not sure if they would pull the same things anyway. But, try swapping them if you have a problem sometime.

gl-images's People

Contributors

astrobiomike avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.