Skip to content

Commit

Permalink
ci: updated official docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Dec 30, 2021
1 parent e7c529e commit e40977d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ routes:

3) Copy [this](/docker-compose.yaml) docker-compose file locally and run `docker-compose up -d`
4) Choose a title, an author and an image for your article opengraph image. Pass them via querystrng to the route you defined in your configuration file.
5) Go to `http://localhost:5491/articles/opengraph?author=Bojack%20Horseman&title=A%20Post%20About%20my%20Garden&imgUrl=https%3A%2F%2Fimages.unsplash.com%2Fphoto-1525498128493-380d1990a112%3Fixlib%3Drb-1.2.1%26ixid%3DeyJhcHBfaWQiOjEyMDd9%26auto%3Dformat%26fit%3Dcrop%26w%3D300%26q%3D80&dev=true`
5) Go to `http://localhost:5491/articles/opengraph?author=Bojack%20Horseman&title=A%20Post%20About%20my%20Garden&imgUrl=https%3A%2F%2Fimages.unsplash.com%2Fphoto-1525498128493-380d1990a112%3Fixlib%3Drb-1.2.1%26ixid%3DeyJhcHBfaWQiOjEyMDd9%26auto%3Dformat%26fit%3Dcrop%26w%3D300%26q%3D80`
6) Admire the following image:

<img src="/assets/example.jpeg" alt="Gauguin opengraph image example" />
Expand Down
1 change: 1 addition & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func HandleRoutes(c *gin.Context) {
}

sizes := getImageSize(route.Size)

image := chromium.GenerateImage(tpl.String(), sizes.width, sizes.height)
img := bytes.NewReader(image)

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:

gin_gonic:
container_name: gauguin-gin-gonic
image: docker.pkg.github.com/micheleriva/gauguin:latest
image: micheleriva/gauguin:latest
links:
- alpine_chrome
depends_on:
Expand Down

0 comments on commit e40977d

Please sign in to comment.