Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Lynn Langit
Lynn Langit

Posted on

     

GitHub Codespaces - custom container

Today's scenario was to build a learning GitHub Codespace which included some dependent files and also some associated VSCode Extensions. This is for mylearn-WDL (workflow definition language for bioinformatics) lesson repo.

One challenge was that the required(cromwell) JAR file was ~200 MB, well over the max file size for Github. So I couldn't just upload the JAR file to my GitHub repo. Also I didn't want to use Github Large File Storage (or LFS) because this JAR file would be used in every command run in the Repo. So I decided to use a custom Docker container image to build this custom Codespace.


To start, I located a pre-built container image(broadinstitute\cromwell) which contained the needed dependencies (JDK and a JAR file) on DockerHub.

I tested the custom container locally and then updated the example Java DOCKERFILE in the.devcontainer folder in my Codespace to use this docker image (shown below). Take note of the location of the $HOME variable as well. I got the example Java Codespace DOCKERFILE from theMicrosoft example Repo.

Alt Text

Second, I searched for VSCode extensions for this scenario (WDL Language) and found twoWDL extensions available. I updated thedevcontainer.json file to include these two extensions in the custom Codespace (shown below).

Alt Text

Third, I had to look around the container a bit to find the included required JAR file (cromwell.jar) - I finally found the file at the top of the container (cd /app).

I updated the.bashrc file to alias the JAR file and tested ahello.wdl file (shown below). I was able to run the test successfully!

Alt Text

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Cloud Architect who codes
  • Location
    North
  • Work
    Cloud Architect who Codes
  • Joined

More fromLynn Langit

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp