Skip to content

Commit

Permalink
Add username to docker id.
Browse files Browse the repository at this point in the history
Add Docker username so that it can be pushed to Docker.
  • Loading branch information
524D committed Sep 5, 2023
1 parent 1db0855 commit 3e1df16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ mkdir -p $TARGET_DIR
# Obtain version number from git
VERSION=$(git describe --abbrev --dirty --always --tags)
VERSION=${VERSION#"v"}

# build flags are set to creat a binairy reproducable, fully statically linked executable that includes the Git version number
# -trimpath: don't inlude full source code path names in the executable. Needed to produce binairy reproducable output.
# -ldflags:
Expand All @@ -21,7 +20,7 @@ GOOS=linux GOARCH=amd64 go build -trimpath -a -ldflags "-extldflags \"-static\"

# Create Docker image
cp Dockerfile $TARGET_DIR
( DIR=$PWD; cd $TARGET_DIR ; docker build --tag mzrecal:${VERSION} . )
( DIR=$PWD; cd $TARGET_DIR ; docker build --tag robmarissen/mzrecal:${VERSION} . )

# Use as:
# docker run -v /home/robm/data:/data mzrecal /mzrecal -scorefilter="MS:1002257(0.0:1e0)" -mzid="/data/msrecal_ribosomes/human_ribosome_60S_bottomup_peak.mzid" -cal="/data/msrecal_ribosomes/human_ribosome_60S_bottomup_peak.recal.json" "/data/msrecal_ribosomes/human_ribosome_60S_bottomup_peak.mzML"

0 comments on commit 3e1df16

Please sign in to comment.