-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
victor73
committed
Sep 27, 2022
1 parent
68ae195
commit 4428a0c
Showing
8 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[global] | ||
drs_domain=localhost | ||
|
||
drs_api_version=1.0.0 | ||
|
||
# The number of cluster processes to start by forking. Can also think of | ||
# this as how many CPUs to use. Use positive integers as values, or just | ||
# set to "auto" to use the number of CPUs detected. | ||
workers=1 | ||
|
||
# Enable encryption with SSL | ||
https_enabled=false | ||
|
||
# The IP address that OSDF should listen on. Use '0.0.0.0' to listen on | ||
# all interfaces that the host has configured. | ||
bind_address=0.0.0.0 | ||
|
||
# When https_enabled is 'true', these settings must be set to the | ||
# paths to the key, cert and CA files. | ||
key_file=conf/server.key | ||
cert_file=conf/server.crt | ||
ca_file=conf/ca_listing.txt | ||
|
||
# The TCP port number to listen on. | ||
port=9999 | ||
|
||
# The username to run the service as. This setting is only relevant when | ||
# we are invoked as root, for instance, to bind to a low numbered port. | ||
user=nobody | ||
|
||
# The MySQL database details, including the database name that we use | ||
# to store the DRS data | ||
mysql_server=drs-db | ||
# The TCP port for the MySQL Server (the port that the server is listening on). | ||
mysql_port=3306 | ||
# The username to connect to MySQL with. | ||
mysql_user=hmp_drs | ||
# The password for mysql_user to connect to MySQL with. | ||
mysql_pass=password | ||
# The name of the MySQL database to use. | ||
mysql_dbname=hmp_drs | ||
|
||
# The maximum depth level that the server will recurse to when retrieving bundle | ||
# data. | ||
max_recursion=32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
UPDATE mysql.user SET host = '%' WHERE user='root'; | ||
|
||
CREATE USER 'hmp_drs'@'%' IDENTIFIED BY 'password'; | ||
|
||
CREATE DATABASE IF NOT EXISTS `hmp_drs`; | ||
|
||
GRANT ALL PRIVILEGES ON hmp_drs.* TO hmp_drs@'%'; | ||
|
||
GRANT ALL PRIVILEGES ON `hmp_drs`.`*` TO `hmp_drs`@`%`; | ||
|
||
FLUSH PRIVILEGES; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
pushd /src >/dev/null | ||
|
||
# Check if the node_modules directory, that contains the libraries | ||
# and dependencies is present. If not, run `npm install`. | ||
if [ ! -d node_modules ]; then | ||
echo "----------------------------------------" | ||
echo "No node_modules directory installed. Installing dependencies now." | ||
echo "----------------------------------------" | ||
npm install | ||
fi | ||
|
||
node drs.js --config ./conf/config-docker.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters