Skip to content

Commit 22919f7

Browse files
committed
Fix docs on how to update containers
1 parent 610c2e1 commit 22919f7

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/Updating-the-Project.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
# Updating the project
2-
**If you ran the git checkout -- 'git ls-files -m' as suggested in the old wiki entry then please check your duck.sh because it removed your domain and token**
3-
42

53
Periodically updates are made to project which include new or modified container template, changes to backups or additional features. As these are released your local copy of this project will become out of date. This section deals with how to bring your project to the latest published state.
64

5+
Quick instructions:
6+
7+
1. backup your current settings: `cp docker-compose.yml docker-compose.yml.bak`
8+
2. check `git status` for any local changes you may have made to project files. Save and preserve your changes by doing a commit: `git commit -a -m "local customization"`. Or revert them using: `git checkout -- path/to/changed_file`.
9+
3. update project files from github: `git pull origin master -r`
10+
4. get latest images from the web: `docker-compose pull`
11+
5. rebuild localy created images from new Dockerfiles: `docker-compose build --pull`
12+
6. update containers to latest: `docker-compose up --build -d`
13+
7. **optional**, needed if something won't start after the rest of the steps - to update docker-compose.yml with new definitions for a container: open `./menu.sh`, select Build Stack, unselect and then reselect the container causing the issue, and then build by presing enter. Check if this fixed your issue: `docker-compose up -d`
14+
15+
## Details, partly outdated
16+
17+
**If you ran the git checkout -- 'git ls-files -m' as suggested in the old wiki entry then please check your duck.sh because it removed your domain and token**
18+
719
Git offers build in functionality to fetch the latest changes.
820

921
`git pull origin master` will fetch the latest changes from GitHub without overwriting files that you have modified yourself. If you have done a local commit then your project may to handle a merge conflict.
@@ -18,4 +30,4 @@ With the new latest version of the project you can now use the menu to build you
1830

1931
![image](https://user-images.githubusercontent.com/46672225/68646024-8fee2f80-0522-11ea-8b6e-f1d439a5be7f.png)
2032

21-
After your stack had been rebuild you can run `docker-compose up -d` to pull in the latest changes. If you have not update your images in a while consider running the `./scripts/update.sh` to get the latest version of the image from Docker hub as well
33+
After your stack had been rebuild you can run `docker-compose up -d` to pull in the latest changes. If you have not update your images in a while consider running the `./scripts/update.sh` to get the latest version of the image from Docker hub as well

0 commit comments

Comments
 (0)