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

Fix: make_credentials.sh uses passwords set in the .env file #58

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

nanjiangshu
Copy link
Contributor

This PR closes #52

How to test

  • Copy the file .env.example to .env
  • Modify some or all of the ENVs for *_BROKER_PASSWORD and *_DB_PASSWORD
  • Start the docker setup by
docker compose -f docker-compose-demo.yml up -d 
  • Check if the docker setup runs properly and if the following commands returns meaningful results and the file htsnexus_test_NA12878.bam is downloaded
token=$(curl -s -k https://localhost:8080/tokens | jq -r '.[0]')
curl -s -H "Authorization: Bearer $token" http://localhost:8443/metadata/datasets | jq .
datasetID=DATASET0001
filename="htsnexus_test_NA12878.bam"
curl -s -H "Authorization: Bearer $token" http://localhost:8443/metadata/datasets/$datasetID/files  
curl -s -H "Authorization: Bearer $token" http://localhost:8443/s3/$datasetID/$filename -o "$filename"

scripts/make_credentials.sh Outdated Show resolved Hide resolved
@nanjiangshu nanjiangshu merged commit fa378ee into main Dec 5, 2024
1 check passed
@nanjiangshu nanjiangshu deleted the fix/unused-passwords-in-env branch December 5, 2024 08:19
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.

Unused passwords in docker setup
3 participants