Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Policy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Security and Compliance
Policy
Commits
0a0a19c4
Commit
0a0a19c4
authored
2 years ago
by
Danylo Vanin (EPAM)
Committed by
Oleksandr Kosse (EPAM)
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[GONRG-6413] Remove dynamic dowload from bootstrap
parent
2d5abe7a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!299
Update Dev branch
,
!298
Securityfix
,
!286
[GONRG-6413] Remove dynamic dowload from bootstrap
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devops/gc/bootstrap-osdu-module/Dockerfile
+2
-1
2 additions, 1 deletion
devops/gc/bootstrap-osdu-module/Dockerfile
devops/gc/bootstrap-osdu-module/bootstrap_policy.sh
+1
-5
1 addition, 5 deletions
devops/gc/bootstrap-osdu-module/bootstrap_policy.sh
with
3 additions
and
6 deletions
devops/gc/bootstrap-osdu-module/Dockerfile
+
2
−
1
View file @
0a0a19c4
...
...
@@ -6,7 +6,8 @@ COPY ./deployment/ /opt/deployment
COPY
./devops/gc/bootstrap-osdu-module /opt/devops/gc/bootstrap-osdu-module
RUN
chmod
775 /opt/bootstrap_policy.sh
RUN
apk add py3-pip
RUN
apk add py3-pip
wget
RUN
pip3
install
-r
/opt/requirements_bootstrap.txt
-r
/opt/devops/gc/bootstrap-osdu-module/requirements.txt
RUN
wget
--quiet
https://dl.min.io/client/mc/release/linux-amd64/mc
&&
chmod
+x mc
&&
mv
mc /usr/bin/mc
CMD
["/bin/bash", "-c", "/opt/bootstrap_policy.sh && sleep 365d"]
This diff is collapsed.
Click to expand it.
devops/gc/bootstrap-osdu-module/bootstrap_policy.sh
+
1
−
5
View file @
0a0a19c4
...
...
@@ -32,11 +32,7 @@ bootstrap_gcs() {
}
bootstrap_minio
()
{
echo
"Installing Minio Client (mc) tool"
apk add wget
wget
--quiet
https://dl.min.io/client/mc/release/linux-amd64/mc
chmod
+x mc
&&
mv
mc /usr/bin/mc
echo
"mc tool installed successfully, configuring"
echo
"Configuring mc tool"
mc
alias set
minio
"
${
MINIO_HOST
}
"
:
"
${
MINIO_PORT
}
"
"
${
MINIO_ACCESS_KEY
}
"
"
${
MINIO_SECRET_KEY
}
"
echo
"Pushing archives to Minio bucket"
for
file
in
/opt/policies/
*
;
...
...
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