Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Inspiration
Website
Commits
a28fd033
Commit
a28fd033
authored
6 months ago
by
satwikShresth
Browse files
Options
Downloads
Patches
Plain Diff
making it truly a one step setup
parent
da6a47db
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.env
+4
-2
4 additions, 2 deletions
.env
S3/entrypoint.sh
+12
-5
12 additions, 5 deletions
S3/entrypoint.sh
with
16 additions
and
7 deletions
.env
+
4
−
2
View file @
a28fd033
...
@@ -15,8 +15,10 @@ S3_REGION=test
...
@@ -15,8 +15,10 @@ S3_REGION=test
S3_PORT=9000
S3_PORT=9000
S3_USE_SSL=false
S3_USE_SSL=false
S3_URL_EXPIRATION=900
S3_URL_EXPIRATION=900
S3_ACCESS_KEY={Add-your-own}
S3_ROOT_USER=minioadmin
S3_SECRET_KEY={Add-your-own}
S3_ROOT_PASSWORD=minioadmin
S3_ACCESS_KEY=ibWeTvBHO0NrPgnpugUp
S3_SECRET_KEY=qlpJLCNwuIDefb0rRPmSsc8h9VZZj6ngYNpKFPpi
REDIS_ENDPOINT=redis://redis:6379
REDIS_ENDPOINT=redis://redis:6379
This diff is collapsed.
Click to expand it.
S3/entrypoint.sh
+
12
−
5
View file @
a28fd033
...
@@ -16,11 +16,18 @@ echo "MinIO is ready"
...
@@ -16,11 +16,18 @@ echo "MinIO is ready"
# Create alias for local server
# Create alias for local server
mc
alias set
myminio http://localhost:9000
"
$MINIO_ROOT_USER
"
"
$MINIO_ROOT_PASSWORD
"
mc
alias set
myminio http://localhost:9000
"
$MINIO_ROOT_USER
"
"
$MINIO_ROOT_PASSWORD
"
# Check if the access key already exists by trying to get info about it
echo
"Checking if access key already exists..."
if
mc admin accesskey info myminio
"
$S3_ACCESS_KEY
"
>
/dev/null 2>&1
;
then
echo
"Access key
$S3_ACCESS_KEY
already exists, skipping creation"
else
# Run your command to create access key
# Run your command to create access key
echo
"Creating access key..."
echo
"Creating
new
access key..."
mc admin accesskey create myminio/
"
$MINIO_ROOT_USER
"
\
mc admin accesskey create myminio/
"
$MINIO_ROOT_USER
"
\
--access-key
"
$S3_ACCESS_KEY
"
\
--access-key
"
$S3_ACCESS_KEY
"
\
--secret-key
"
$S3_SECRET_KEY
"
\
--secret-key
"
$S3_SECRET_KEY
"
\
echo
"Access key created successfully"
fi
echo
"Access key created successfully"
echo
"Access key created successfully"
...
...
...
...
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
sign in
to comment