Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
562745fc
Verified
Commit
562745fc
authored
1 year ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
fix environment passing (
team#41257
)
parent
f45eae76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/object-storage.md
+3
-3
3 additions, 3 deletions
service/object-storage.md
with
3 additions
and
3 deletions
service/object-storage.md
+
3
−
3
View file @
562745fc
...
...
@@ -96,7 +96,7 @@ This is the actual command we use to *create* (not start!) the
container:
PASSWORD=$(tr -dc '[:alnum:]' < /dev/urandom | head -c 32)
echo "PASSWORD=$PASSWORD" > /etc/default/minio
echo "
MINIO_ROOT_
PASSWORD=$PASSWORD" > /etc/default/minio
chmod 600 /etc/default/minio
mkdir -p /srv/data
...
...
@@ -106,7 +106,7 @@ container:
--publish 9090:9090 \
--volume /srv/data:/data \
--env "MINIO_ROOT_USER=root" \
--env "MINIO_ROOT_PASSWORD
=$PASSWORD
" \
--env "MINIO_ROOT_PASSWORD" \
quay.io/minio/minio server /data --console-address ":9090"
We store the password in a file because it will be used in a systemd
...
...
@@ -114,7 +114,7 @@ unit. That could be done in Puppet instead.
This is how the systemd unit was generated:
podman generate systemd --new --name minio | sed 's/MINIO_ROOT_PASSWORD=[^ ]*/MINIO_ROOT_PASSWORD=$PASSWORD/' > /etc/systemd/system/container-minio.service
podman generate systemd --new --name minio | sed 's/MINIO_ROOT_PASSWORD=[^ ]*/MINIO_ROOT_PASSWORD=$PASSWORD/
;s,Environment,EnvironmentFile=/etc/default/minio\nEnvironment,
' > /etc/systemd/system/container-minio.service
Then the unit was enabled and started with:
...
...
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