This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
64 changed files
with
9,169 additions
and
6,365 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,19 @@ | ||
--- | ||
name: 'Issue ' | ||
about: Describe this issue purpose here. | ||
|
||
--- | ||
|
||
## Issue Name | ||
|
||
### Summary | ||
|
||
### Steps to Reproduce | ||
|
||
### Current Behaviour | ||
|
||
### Expected Behaviour | ||
|
||
### Extra Details | ||
|
||
Here you should include details about the system (if it is unique) and possible information about a fix (feel free to link to code where relevant). Screenshots/GIFs are also fine here. |
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
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
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,38 @@ | ||
# gives a docker image below 200 MB | ||
FROM node:9 | ||
|
||
ENV http_proxy "http://192.168.1.1:8123" | ||
ENV https_proxy $http_proxy | ||
ENV no_proxy "localhost, 127.0.0.1" | ||
RUN npm config set proxy $http_proxy | ||
RUN npm config set https-proxy $http_proxy | ||
RUN npm config set registry http://registry.npmjs.org/ | ||
RUN npm config set strict-ssl false | ||
|
||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends mongodb-clients vim ldap-utils | ||
|
||
ENV PORT 3000 | ||
EXPOSE 3000 | ||
|
||
WORKDIR /usr/src/app | ||
COPY package.json /usr/src/app/ | ||
# Install our packages | ||
RUN npm install | ||
|
||
|
||
# Copy the rest of our application, node_modules is ignored via .dockerignore | ||
COPY . /usr/src/app | ||
COPY CI/ESS/envfiles/config.ess.js /usr/src/app/server/config.local.js | ||
COPY CI/ESS/envfiles/middleware.json /usr/src/app/server/ | ||
RUN touch /usr/src/app/test/config/providers.json | ||
COPY CI/ESS/envfiles/providers.unittests.json /usr/src/app/server/providers.json | ||
COPY CI/ESS/envfiles/datasources.json /usr/src/app/server/ | ||
COPY CI/ESS/envfiles/component-config.json /usr/src/app/server/ | ||
RUN touch /usr/src/app/test/config/settings.json | ||
COPY CI/ESS/envfiles/settings.sample.json /usr/src/app/test/config/settings.json | ||
COPY CI/ESS/wait.sh /usr/src/app/ | ||
# no longer needed COPY CI/ESS/createIndex.js /usr/src/app/ | ||
|
||
# Start the app | ||
CMD ["./wait.sh"] |
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
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,34 @@ | ||
{ | ||
"local": { | ||
"provider": "local", | ||
"module": "passport-local", | ||
"usernameField": "username", | ||
"passwordField": "password", | ||
"authPath": "/auth/local", | ||
"successRedirect": "/auth/account", | ||
"failureRedirect": "/local", | ||
"failureFlash": true | ||
}, | ||
"ldap": { | ||
"provider": "ldap", | ||
"authScheme": "ldap", | ||
"module": "passport-ldapauth", | ||
"authPath": "/auth/msad", | ||
"successRedirect": "/auth/account", | ||
"failureRedirect": "/msad", | ||
"session": true, | ||
"json": true, | ||
"failureFlash": true, | ||
"profileAttributesFromLDAP": { | ||
"displayName": "displayName", | ||
"email": "mail" | ||
}, | ||
"server": { | ||
"url": "ldap://openldap:389", | ||
"bindDn": "cn=admin,dc=example,dc=org", | ||
"bindCredentials": "admin", | ||
"searchBase": "dc=example,dc=org", | ||
"searchFilter": "(cn={{username}})" | ||
} | ||
} | ||
} |
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,7 @@ | ||
#!/usr/bin/env bash | ||
echo "sleep for 5, waiting for ldap" | ||
sleep 5 | ||
ldapsearch -v -h openldap -x -D "cn=admin,dc=example,dc=org" -w admin -b "dc=example,dc=org" -s sub | ||
echo "adding to ldap" | ||
ldapadd -v -h openldap -c -D "cn=admin,dc=example,dc=org" -w admin -f /ldif_files/people.ldif | ||
echo "done adding to ldap" |
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,69 @@ | ||
# --- OUs ------------------------------------- | ||
|
||
dn: ou=Groups,dc=example,dc=org | ||
objectClass: organizationalunit | ||
objectClass: top | ||
ou: Groups | ||
|
||
dn: ou=People,dc=example,dc=org | ||
objectClass: organizationalunit | ||
objectClass: top | ||
ou: People | ||
|
||
|
||
# --- People ---------------------------------- | ||
|
||
dn: cn=marpontes,ou=People,dc=example,dc=org | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
objectClass: organizationalPerson | ||
objectClass: top | ||
cn: marpontes | ||
userpassword: pass | ||
givenname: Marcello | ||
sn: Pontes | ||
mail: [email protected] | ||
uid: 1001 | ||
|
||
dn: cn=zach,ou=People,dc=example,dc=org | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
objectClass: organizationalPerson | ||
objectClass: top | ||
cn: zach | ||
userpassword: pass | ||
givenname: Zachary | ||
sn: Zeus | ||
mail: [email protected] | ||
uid: 1002 | ||
|
||
dn: cn=leonardo,ou=People,dc=example,dc=org | ||
objectClass: person | ||
objectClass: inetOrgPerson | ||
objectClass: organizationalPerson | ||
objectClass: top | ||
cn: leonardo | ||
userpassword: pass | ||
givenname: Leonardo | ||
sn: Luiz | ||
mail: [email protected] | ||
uid: 1003 | ||
|
||
|
||
# --- Groups ---------------------------------- | ||
|
||
dn: cn=Administrator,ou=Groups,dc=example,dc=org | ||
objectClass: groupofuniquenames | ||
objectClass: top | ||
ou: Groups | ||
cn: Administrator | ||
uniquemember: cn=marpontes, ou=People, dc=example,dc=org | ||
|
||
dn: cn=Developers,ou=Groups,dc=example,dc=org | ||
objectClass: groupofuniquenames | ||
objectClass: top | ||
ou: Groups | ||
cn: Administrator | ||
uniquemember: cn=marpontes, ou=People, dc=example,dc=org | ||
uniquemember: cn=zach, ou=People, dc=example,dc=org | ||
uniquemember: cn=leonardo, ou=People, dc=example,dc=org |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
sleep 20 | ||
npm test | ||
# wait for mongo container to come up | ||
sleep 15 | ||
npm run test |
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,23 @@ | ||
## Description | ||
|
||
## Motivation | ||
|
||
Link to any open issues here | ||
|
||
## Fixes: | ||
|
||
* | ||
* | ||
|
||
## Changes: | ||
|
||
* | ||
* | ||
|
||
## Tests included/Docs Updated? | ||
|
||
- [ ] Included for each change/fix? | ||
- [ ] Passing? (Merge will not be approved unless this is checked) | ||
- [ ] Docs updated? | ||
|
||
## Extra Information/Screenshots |
Oops, something went wrong.