You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: update_sitebuilder.md
+32-30Lines changed: 32 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ git status
17
17
18
18
### Update packages
19
19
20
-
* Define docker image tag, e.g., `1.5.6` typically a level up than [the current version](https://hub.docker.com/r/sbamin/sitebuilder/tags). You need to manually update several of commands below to reflect an updated tag.
20
+
* Define docker image tag, e.g., `1.5.8` typically a level up than [the current version](https://hub.docker.com/r/sbamin/sitebuilder/tags). You need to manually update several of commands below to reflect an updated tag.
21
21
22
-
* Update `Dockerfile` as per your custom changes. At minimum, update LABEL version and mode to reflect an updated tag. You can also update `hugo extended` to the [current release](https://github.com/gohugoio/hugo/releases) by updating *myhugo* ENV variable in `Dockerfile`. Optionally, [update related go version](https://go.dev/dl/) with *mygo* ENV variable.
22
+
* Update `Dockerfile` as per your custom changes. At minimum, update LABEL version and mode to reflect an updated tag. You can also update `hugo extended` to the [current release](https://github.com/gohugoio/hugo/releases) by updating *myhugo* ENV variable in `Dockerfile`. Optionally, [update related go version](https://go.dev/dl/) with *mygo* ENV variable and [dart-sass](https://github.com/sass/dart-sass/releases) with *mydartsass* variable. Change installation commands for prebuilt go and dart-sass binaries as and when required.
23
23
24
24
* If you need to update [jekyll](https://jekyllrb.com/) related gems, update `Gemfile` while ensuring gem [version requirements](https://pages.github.com/versions/) for [github-pages](https://github.com/github/pages-gem) gem.
25
25
@@ -39,20 +39,22 @@ Here, I am using `docker buildx build` from [Docker Desktop v4.22.0 on mac os 15
39
39
## replace --push with --load to load arch specific image locally
40
40
docker buildx build \
41
41
--platform linux/arm64/v8,linux/amd64 \
42
-
--tag sbamin/sitebuilder:1.5.7 \
42
+
--tag sbamin/sitebuilder:1.5.8 \
43
43
--tag sbamin/sitebuilder:latest \
44
44
--push \
45
45
--file Dockerfile .
46
46
```
47
47
48
+
Check [docker hub: sbamin/sitebuilder](https://hub.docker.com/r/sbamin/sitebuilder/tags) and should show an updated tag. If so, update local image using `docker images` and then `docker pull sbamin/sitebuilder` to get a latest tag.
49
+
48
50
### update Gemfile.lock
49
51
50
52
* Once image is successfully built, copy `Gemfile.lock` back to host, so that we can update it with the most recent versions of gems.
51
53
52
54
```sh
53
55
## start container in an interactive session and mount local (host) directory
54
56
## to an empty location in the docker container.
55
-
docker run --rm -it -v "$(pwd)":/hostspace sbamin/sitebuilder:1.5.7 /bin/bash
57
+
docker run --rm -it -v "$(pwd)":/hostspace sbamin/sitebuilder /bin/bash
56
58
57
59
## copy (overwrite) local Gemfile.lock with an updated version from
0 commit comments