Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gracedb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brandon Piotrzkowski
gracedb
Commits
2ab36e71
Commit
2ab36e71
authored
5 years ago
by
Philippe Grassia
Browse files
Options
Downloads
Patches
Plain Diff
fixed bash tests [ ] => [[ ]] and protected content of secret from bash interpolation
parent
81f86e35
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/entrypoint
+2
-2
2 additions, 2 deletions
docker/entrypoint
with
2 additions
and
2 deletions
docker/entrypoint
+
2
−
2
View file @
2ab36e71
...
...
@@ -4,7 +4,7 @@
## PGA: 2019-10-15: use certs from secrets for Shibboleth SP
SHIB_SP_CERT
=
/run/secrets/gracedb_ligo_org_saml_cert
SHIB_SP_KEY
=
/run/secrets/gracedb_ligo_org_saml_privkey
if
[
-f
$SHIB_SP_CERT
&&
-f
$SHIB_SP_KEY
]
if
[
[
-f
$SHIB_SP_CERT
&&
-f
$SHIB_SP_KEY
]
]
then
echo
"Using Shibboleth Cert from docker secrets over the image one"
cp
-f
$SHIB_SP_CERT
/etc/shibboleth/sp-cert.pem
...
...
@@ -25,7 +25,7 @@ LIST="aws_ses_access_key_id
for
SECRET
in
$LIST
do
VARNAME
=
$(
tr
[
:lower:]
[
:upper:]
<<<
$SECRET
)
[
-f
run/secrets/
$SECRET
]
&&
export
$VARNAME
=
\
$
(
< /run/secrets/
$SECRET
)
[
-f
/
run/secrets/
$SECRET
]
&&
export
$VARNAME
=
"'
$(
< /run/secrets/
$SECRET
)
'"
done
export
LVALERT_OVERSEER_RESOURCE
=
${
LVALERT_USER
}
_overseer_
$(
python
-c
'import uuid; print(uuid.uuid4().hex)'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment