Skip to content

Commit 06503ef

Browse files
committed
Merge branch 'hotfix/1.13.1'
2 parents 338070f + fe16292 commit 06503ef

File tree

6 files changed

+12
-25
lines changed

6 files changed

+12
-25
lines changed

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ services:
55
migration:
66
image: quay.io/dockstore/dockstore-webservice@${DOCKSTORE_IMAGE_DIGEST}
77
volumes:
8-
- log_volume:/dockstore_logs
98
- ./config/web.yml:/home/web.yml
109
- ./config/init_migration.sh:/home/init_migration.sh
1110
command: ["bash", "/home/init_migration.sh"]
@@ -21,11 +20,9 @@ services:
2120
depends_on:
2221
- migration
2322
volumes:
24-
- log_volume:/dockstore_logs
2523
- ./config/web.yml:/home/web.yml
2624
- ./config/init_webservice.sh:/home/init_webservice.sh
2725
- ${GITHUB_APP_PRIVATE_KEY_FILE}:/dockstore/github-key/dockstore-github-private-key.pem
28-
- ../language-plugins/:/root/.dockstore/language-plugins
2926
command: ["bash", "/home/init_webservice.sh"]
3027
ports:
3128
- "8081:8081"
@@ -75,6 +72,5 @@ services:
7572
# awslogs-stream: "metricbeat"
7673

7774
volumes:
78-
log_volume:
7975
esdata1:
8076
driver: local

install_bootstrap

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,27 +66,13 @@ function template()
6666
for f in $(ls templates/rules/); do mustache dockstore_launcher_config/compose.config templates/rules/$f > config/rules/$f; done
6767
}
6868

69-
# Delete any galaxy plugin versions already in folder and download if a version has been specified.
70-
function download_galaxy()
71-
{
72-
if [ ! -d "../language-plugins" ] ; then
73-
mkdir ../language-plugins
74-
fi
75-
76-
find ../language-plugins -regextype posix-extended -regex '.*dockstore-galaxy-interface.*' -delete
77-
wget -nc -P ../language-plugins/ https://artifacts.oicr.on.ca/artifactory/collab-release/com/github/galaxyproject/dockstore-galaxy-interface/dockstore-galaxy-interface/${GALAXY_PLUGIN_VERSION}/dockstore-galaxy-interface-${GALAXY_PLUGIN_VERSION}.jar
78-
79-
}
80-
8169
#Read the config file if it exists
8270
if [ -f dockstore_launcher_config/compose.config ] ; then
8371
source <(jq -r 'to_entries|map("\(.key)=\"\(.value|tostring)\"")|.[]' dockstore_launcher_config/compose.config)
8472
fi
8573

8674
template
8775

88-
download_galaxy "$*"
89-
9076
if [ $IS_FARGATE_DEPLOY == "false" ]; then
9177
# We need to set the environment variable for the image digest
9278
source .env

scripts/webservice-image-digest.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ def get_commit_from_github(tag_or_branch):
5858
def get_digest_from_s3(directory):
5959
# downloads the image-digest.txt from a directory in S3
6060
base_url = "https://gui.dockstore.org"
61-
response = requests.get("{}/{}/image-digest.txt".format(base_url, directory))
61+
digest_url = "{}/{}/image-digest.txt".format(base_url, directory.replace("/", "_"))
62+
response = requests.get(digest_url)
6263
if (response.status_code != 200):
63-
print("Expected a file at {}".format("{}/{}/image-digest.txt".format(base_url, directory)))
64+
print("Expected a file at {}".format(digest_url))
6465
print("The image-digest.txt was not found in S3, did the build succeed?")
6566
exit(1)
6667
# There is a newline at the end of the file we rstrip
@@ -70,7 +71,7 @@ def get_digest_from_s3(directory):
7071
# slashes are replaced with _ in docker image tags
7172
# check to see if input includes a dash followed by 7 chars
7273
parsed = args.tag.split('-')
73-
if len(parsed) == 2 and len(parsed[1]) == 7 and all(c in string.hexdigits for c in parsed[1]):
74+
if len(parsed) >= 2 and len(parsed[-1]) == 7 and all(c in string.hexdigits for c in parsed[-1]):
7475
directory = args.tag
7576
else:
7677
commit = get_commit_from_github(args.tag)

templates/default.nginx_http.security.conf.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ proxy_hide_header Server;
2727
add_header X-Content-Type-Options "nosniff" always;
2828

2929
add_header Strict-Transport-Security $hsts_header always;
30+
31+
{{^PRODUCTION}}
32+
add_header X-Robots-Tag "noindex, nofollow" always;
33+
{{/PRODUCTION}}

templates/init_migration.sh.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
cd "$(dirname "$0")"
55

66
{{#DATABASE_GENERATED}}
7-
java -Ddw.database.user=postgres -Ddw.database.password="{{{ POSTGRES_DBPASSWORD }}}" -jar /home/dockstore-webservice-*.jar db migrate web.yml --include 1.3.0.generated,1.3.1.consistency,1.4.0,1.5.0,1.6.0,1.7.0 | tee --append /dockstore_logs/webservice.out
7+
java -Ddw.database.user=postgres -Ddw.database.password="{{{ POSTGRES_DBPASSWORD }}}" -jar /home/dockstore-webservice-*.jar db migrate web.yml --include 1.3.0.generated,1.3.1.consistency,1.4.0,1.5.0,1.6.0,1.7.0
88
{{/DATABASE_GENERATED}}
99
{{^DATABASE_GENERATED}}
10-
java -Ddw.database.user=postgres -Ddw.database.password="{{{ POSTGRES_DBPASSWORD }}}" -jar /home/dockstore-webservice-*.jar db migrate web.yml --include 1.3.1.consistency,1.4.0,1.5.0,1.6.0,1.7.0 | tee --append /dockstore_logs/webservice.out
10+
java -Ddw.database.user=postgres -Ddw.database.password="{{{ POSTGRES_DBPASSWORD }}}" -jar /home/dockstore-webservice-*.jar db migrate web.yml --include 1.3.1.consistency,1.4.0,1.5.0,1.6.0,1.7.0
1111
{{/DATABASE_GENERATED}}
1212
# this particular migration needs to run as postgres because only postgres can surrender ownership
1313
java -Ddw.database.user=postgres -Ddw.database.password="{{{ POSTGRES_DBPASSWORD }}}" -jar /home/dockstore-webservice-*.jar db migrate web.yml --include 1.7.0.relinquish
1414
# future migrations will start here and should be run as dockstore
15-
java -Ddw.database.user=dockstore -Ddw.database.password="{{{ DOCKSTORE_DBPASSWORD }}}" -jar /home/dockstore-webservice-*.jar db migrate web.yml --include 1.8.0,1.9.0,1.10.0,1.11.0,1.12.0,1.13.0 | tee --append /dockstore_logs/webservice.out
15+
java -Ddw.database.user=dockstore -Ddw.database.password="{{{ DOCKSTORE_DBPASSWORD }}}" -jar /home/dockstore-webservice-*.jar db migrate web.yml --include 1.8.0,1.9.0,1.10.0,1.11.0,1.12.0,1.13.0

templates/init_webservice.sh.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
cd "$(dirname "$0")"
44

5-
java -XX:MaxRAMPercentage=50.0 -XX:+ExitOnOutOfMemoryError -jar /home/dockstore-webservice-*.jar server web.yml | tee --append /dockstore_logs/webservice.out
5+
java -XX:MaxRAMPercentage=50.0 -XX:+ExitOnOutOfMemoryError -jar /home/dockstore-webservice-*.jar server web.yml
66

77

0 commit comments

Comments
 (0)