Adding additional resources for testing
Signed-off-by: Kris Nóva <kris@nivenly.com>main
parent
de26a3acd5
commit
41aa943c78
|
@ -9,6 +9,10 @@ func main() {
|
|||
logger.Level = 4
|
||||
app := sampleapp.New()
|
||||
var err error
|
||||
err = app.Create()
|
||||
if err != nil {
|
||||
logger.Critical(err.Error())
|
||||
}
|
||||
err = app.Start()
|
||||
if err != nil {
|
||||
logger.Critical(err.Error())
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
)
|
||||
|
||||
func main() {
|
||||
uuid := os.Getenv("PHOTOPRISM_ID")
|
||||
uuid := os.Getenv("PHOTOPRISM_UUID")
|
||||
if uuid == "" {
|
||||
halt(2, "Missing PHOTOPRISM_UUID")
|
||||
}
|
||||
|
@ -17,5 +17,6 @@ func main() {
|
|||
if err != nil {
|
||||
halt(3, "Error fetching photo: %v", err)
|
||||
}
|
||||
|
||||
fmt.Println(*photo)
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
#!/bin/bash
|
||||
####################################
|
||||
#####
|
||||
|
@ -8,4 +9,7 @@
|
|||
# Startup Script for the Application
|
||||
####################################
|
||||
echo "Creating [SampleApp]"
|
||||
docker run -d --name photoprism -p 8080:2342 -e PHOTOPRISM_UPLOAD_NSFW="true" -e PHOTOPRISM_ADMIN_PASSWORD="missy" -v "/home/nova/go/src/github.com/kris-nova/client-go/sample-app/photoprism":"/photoprism" photoprism/photoprism
|
||||
|
||||
docker run -d --name photoprism -p 8080:2342 -e PHOTOPRISM_UPLOAD_NSFW="true" -e PHOTOPRISM_ADMIN_PASSWORD="missy" -v photoprism:/photoprism photoprism/photoprism:latest
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue