score-eg-image-service

command module
v0.0.0-...-2f634ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: MIT Imports: 23 Imported by: 0

README

score-eg-image-service

An example service that stores a gallery of images and uses an external service to generate thumbnails.

screenshot.png.

This service depends on the thumbnail service from https://github.com/astromechza/score-eg-thumbnail-service.

architecture

Testing with Score Compose

Without the thumbnail service and building the container image from source

NOTE: without the thumbnail service, the UI will render loading gifs in place of thumbnails.

$ score-compose init
$ score-compose generate score.yaml --build main=.
$ docker compose up -d --build
$ score-compose resources get-outputs 'dns.default#image-service.dns' --format "http://{{ .host }}:8080/images/ "

With the thumbnail service and image override

$ score-compose init
$ curl https://raw.githubusercontent.com/astromechza/score-eg-thumbnail-service/main/score.yaml > score-thumbnail-service.yaml
$ score-compose generate score-thumbnail-service.yaml
$ score-compose generate score.yaml --override-property 'containers.main.image="ghcr.io/astromechza/score-eg-image-service:sha-182467a"'
$ docker compose up -d
$ score-compose resources get-outputs 'dns.default#image-service.dns' --format "http://{{ .host }}:8080/images/ "

Deploying with Score Kubernetes

$ score-k8s init
$ score-k8s generate score-thumbnail-service.yaml score.yaml
$ kubectl apply -f manifests.yaml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL