Skip to content

Commit

Permalink
Merge pull request #35 from lsst-sqre/tickets/DM-22649
Browse files Browse the repository at this point in the history
[DM-22649] Make async bucket configurable
  • Loading branch information
cbanek authored Dec 17, 2019
2 parents 31751ef + 5cce23e commit b5a8933
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ before_script:

script:
- ./build.sh
- cd docker && docker-compose up -d && ./waitForContainersReady.sh && ./checkAvailability.sh
- ./test.sh

after_success:
- docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD}
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/opencadc/tap/impl/ResultStoreImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,14 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.sql.ResultSet;
import java.util.Properties;

import static java.nio.charset.StandardCharsets.UTF_8;

public class ResultStoreImpl implements ResultStore {
private String filename;
private static final String bucket = "async-results.lsst.rocks";
private static final String bucketURL = "http://async-results.lsst.rocks";
private static final String bucket = System.getProperty("gcs_bucket");
private static final String bucketURL = System.getProperty("gcs_bucket_url");


@Override
Expand Down
5 changes: 5 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash -ex
cd docker
docker-compose up -d
./waitForContainersReady.sh
./checkAvailability.sh

0 comments on commit b5a8933

Please sign in to comment.