Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add post-build script that automatically configures umgap files #1566

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

pverscha
Copy link
Member

The UMGAP pipeline requires some files to be hosted on the Unipept website in order to work properly. This PR introduces a new "post-build.sh" shell script that is automatically called when running npm run build. The script is currently only being used to create the correct directories and links to the UMGAP-files at this point in time, but could be expanded in the future to include other tasks that should be performed after building the web app.

@pverscha pverscha requested a review from bmesuere April 11, 2024 09:17
@pverscha pverscha self-assigned this Apr 11, 2024
post-build.sh Outdated
Comment on lines 11 to 13
ln -s "/mnt/datapept/${UMGAP_VERSION}/2024-03-07/taxons.tsv" "dist/system/umgap/${UMGAP_VERSION}/taxons.tsv"
ln -s "/mnt/datapept/${UMGAP_VERSION}/2024-03-07/tryptic.fst" "dist/system/umgap/${UMGAP_VERSION}/tryptic.fst"
ln -s "/mnt/datapept/${UMGAP_VERSION}/2024-03-07/ninemer.fst" "dist/system/umgap/${UMGAP_VERSION}/ninemer.fst"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the date should be in the first paths?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No indeed, thanks for checking. I will update the script.

@pverscha pverscha requested a review from bmesuere April 15, 2024 07:38
@pverscha pverscha merged commit 7767ba6 into develop Apr 15, 2024
1 check passed
@pverscha pverscha deleted the feature/deploy-script branch April 15, 2024 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants