Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Picasoft
Technique
Dockerfiles
Commits
fe2f1d34
Verified
Commit
fe2f1d34
authored
4 years ago
by
Quentin Duchemin
Browse files
Options
Downloads
Patches
Plain Diff
[GraphBot] Fix secrets injection
parent
6b3d7623
No related branches found
No related tags found
1 merge request
!50
Remove CI
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pica-graphbot/config.json
+3
-3
3 additions, 3 deletions
pica-graphbot/config.json
pica-graphbot/docker-compose.yml
+1
-1
1 addition, 1 deletion
pica-graphbot/docker-compose.yml
pica-graphbot/inject_env.sh
+1
-2
1 addition, 2 deletions
pica-graphbot/inject_env.sh
with
5 additions
and
6 deletions
pica-graphbot/config.json
+
3
−
3
View file @
fe2f1d34
...
...
@@ -62,9 +62,9 @@
"type"
:
"sftp"
,
"hostname"
:
"uploads.picasoft.net"
,
"port"
:
2222
,
"login"
:
"
pica
"
,
"password"
:
"SFTP_
USER
"
,
"remote_path"
:
"
SFTP_PASSWORD
"
"login"
:
"
SFTP_USER
"
,
"password"
:
"SFTP_
PASSWORD
"
,
"remote_path"
:
"
uploads/graph_output
"
}
]
}
This diff is collapsed.
Click to expand it.
pica-graphbot/docker-compose.yml
+
1
−
1
View file @
fe2f1d34
...
...
@@ -20,7 +20,7 @@ services:
-
/var/run/docker.sock:/var/run/docker.sock
-
output:/output
environment
:
CONFIG_FILE
:
"
/config.json"
CONFIG_FILE
:
"
/config
_creds
.json"
OUTPUT_DIRECTORY
:
"
/output"
CERTS_DIRECTORY
:
"
/certs"
LOG_LEVEL
:
"
warning"
...
...
This diff is collapsed.
Click to expand it.
pica-graphbot/inject_env.sh
+
1
−
2
View file @
fe2f1d34
...
...
@@ -11,8 +11,7 @@ if [ -z "${SFTP_PASSWORD}" ]; then
fi
echo
"Inject SFTP credentials..."
sed
-i
"s/SFTP_USER/
$SFTP_USER
/g"
/entrypoint.sh
sed
-i
"s/SFTP_PASSWORD/
$SFTP_PASSWORD
/g"
/entrypoint.sh
sed
"s/SFTP_USER/
$SFTP_USER
/g; s/SFTP_PASSWORD/
$SFTP_PASSWORD
/g"
/config.json
>
/config_creds.json
echo
"Launching original entrypoint..."
/entrypoint.sh
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