Skip to content

Commit

Permalink
change release to v1.2
Browse files Browse the repository at this point in the history
test release binaries in build-release.sh
overwrite existing example_inputs when extracting
  • Loading branch information
kartva committed Dec 13, 2023
1 parent 9dd2ae1 commit 70c5721
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN apt-get update && \
RUN Rscript -e 'install.packages(c("tidyverse", "umap", "ggrastr", "pins", "rmarkdown"))'

WORKDIR /app
COPY --from=build /app/librarian_v1.1 ./
COPY --from=build /app/librarian_v1.2 ./
RUN mkdir /app/out

LABEL org.opencontainers.image.source https://github.com/DesmondWillowbrook/Librarian
Expand Down
2 changes: 1 addition & 1 deletion build-dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sudo hwclock --hctosys # to sync time between host and WSL2
podman build -t ghcr.io/desmondwillowbrook/librarian .

cd frontend/example_inputs/
unzip example_inputs.zip
unzip -o example_inputs.zip
cd -

# try running the container
Expand Down
22 changes: 20 additions & 2 deletions build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,23 @@ mkdir -p $RELEASE_PATH
# z tells it to use gzip
# f tells it the archive to save to
# -C changes directory, affects subsequent directory changes as well
tar --transform 's,^,librarian_v1.1/,' -czf $RELEASE_PATH/librarian.tar.gz -C server scripts -C ../target/x86_64-unknown-linux-musl/release librarian
tar --transform 's,^,librarian_v1.1/,' -czf $RELEASE_PATH/server.tar.gz -C server scripts -C ../target/x86_64-unknown-linux-musl/release server
tar --transform 's,^,librarian_v1.2/,' -czf $RELEASE_PATH/librarian.tar.gz -C server scripts -C ../target/x86_64-unknown-linux-musl/release librarian
tar --transform 's,^,librarian_v1.2/,' -czf $RELEASE_PATH/server.tar.gz -C server scripts -C ../target/x86_64-unknown-linux-musl/release server

cd frontend/example_inputs/
unzip -o example_inputs.zip
cd -

cd $RELEASE_PATH
tar -xf librarian.tar
./librarian_v1.2/librarian ../frontend/example_inputs/example_inputs/ATAC.example.fastq --local --raw --output-dir=.

# check whether the files are non-empty
test -s librarian_heatmap.txt

# check whether the files are recent
test `find librarian_heatmap.txt -mmin -1`

rm librarian_heatmap.txt

cd -

0 comments on commit 70c5721

Please sign in to comment.