Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
notebook
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
notebook
Commits
05eb44fe
There was an error fetching the commit references. Please try again later.
Unverified
Commit
05eb44fe
authored
4 years ago
by
Recolic
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
cf7a21d1
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
README.md
+7
-11
7 additions, 11 deletions
README.md
with
7 additions
and
11 deletions
README.md
+
7
−
11
View file @
05eb44fe
...
...
@@ -14,21 +14,17 @@ Get login info (valid for 12h)
aws ecr get-login --no-include-email --region us-west-2
```
do
cker-push.sh (deprecated)
do
not use docker attach.
```
#!/bin/bash
[[
$1
==
''
]]
&&
echo
"Usage:
$0
<image_name>[:latest]"
&&
exit
1
docker tag
$1
600163736385.dkr.ecr.us-west-2.amazonaws.com/
$1
&&
docker push 600163736385.dkr.ecr.us-west-2.amazonaws.com/
$1
exit
$?
docker exec -ti rweb /bin/bash
```
do not use docker attach.
**acme.sh and nginx**
: Add nginx-reload to crontab to refresh certificate.
```
docker exec -ti rweb /bin/bash
2 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
# nginx reload certificate once a month, at 6 AM UTC+8, means 22:00 UTC.
0 22 1 * * systemctl restart nginx
```
# DO NOT FORGET WRITING DOCKER-START INTO rc.local
...
...
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