Tornote - Self-destructing notes (Docker)

Docker Tornote - Self-destructing notes (Docker)

Currently reading
Docker Tornote - Self-destructing notes (Docker)

2,148
908
NAS
DS220+ : DS1019+ : DS920+ : DS118 : APC Back UPS ES 700 — Mac/iOS user
I found Tornote, a private, self destructing note creator. This looks great if I can run it on my DiskStation.

It can run on Docker if I understood correctly. Can any brave sole, Docker warrior help please?

I couldn’t use Git so I dloaded the zip file and unzipped it under the docker directory. I hope this is ok.
I then used this command
Code:
docker build -t tornote .

It did a few things and it looks like a container was built.

Then I tried running the third line in the instructions
Code:
docker run -p 8000:8000 tornote

and I get
Code:
Unable to find image 'tornote:latest' locally
docker: Error response from daemon: pull access denied for tornote, repository does not exist or may require 'docker login'.
See 'docker run --help'.


If I start the container using Docker‘S GUI, it starts and stops. I have no idea of how this should work!
 

Rusty

Moderator
NAS Support
5,214
1,529
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
I have build it without any errors but when running it I get this (it doesn't event run completly).

Code:
panic: open templates/index.html: no such file or directory


goroutine 1 [running]:

github.com/osminogin/tornote.(*server).Init(0xc000211890)

    /go/src/app/server.go:151 +0x57a

main.main()

    /go/src/app/cmd/tornote/main.go:57 +0x35b

opened a ticket - Won't start in docker · Issue #7 · osminogin/tornote
 
2,148
908
NAS
DS220+ : DS1019+ : DS920+ : DS118 : APC Back UPS ES 700 — Mac/iOS user
Thanks for trying. I think I’ve managed to reach the same:

Step 11/11 : CMD ["tornote"]
---> Using cache
---> 65edabaf4fff
Successfully built 65edabaf4fff
Successfully tagged tornote:latest

Then when trying docker run -p 8000:8000 tornote

panic: open templates/index.html: no such file or directory

goroutine 1 [running]:
github.com/osminogin/tornote.(*server).Init(0xc000281890)
/go/src/app/server.go:151 +0x57a
main.main()
/go/src/app/cmd/tornote/main.go:57 +0x35b

Darn. I wanted this so badly. I told you I’m unlucky with Docker :(
 
2,148
908
NAS
DS220+ : DS1019+ : DS920+ : DS118 : APC Back UPS ES 700 — Mac/iOS user
I think that it‘s newly developed. So as you said, I hope it gets fixed.

However, how‘s it supposed to work on our DiskStations? Does it contain its own Apache server. I see on the Github page that there’s a reference to Apache.
 

Rusty

Moderator
NAS Support
5,214
1,529
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
He started fixing it but with the current version as of 10:22 today, there is a new error now:

2020/07/10 08:30:31 dial tcp 127.0.0.1:5432: connect: connection refused

This is a SQL problem again (as it was about 16days ago
 

Rusty

Moderator
NAS Support
5,214
1,529
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Ok looks like this is expected. The container needs a DATABASE_URL variable. Waiting for the syntax considering that it's not in the documentation atm. Also, this app uses PostgresDB so you will need to run a separate DB container to make this work.

UPDATE: DB problem is fixed now.

Syntax for DATABASE_URL is: postgres://pguser:[email protected]:5432/dbname?sslmode=disable
 

Rusty

Moderator
NAS Support
5,214
1,529
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Ok so now everything is fixed. Image in docker hub (latest) is also fixed so there is no need to build the image yourself.

Overall, for you guys that like to stick with Docker UI in Syno, you will have to map a single web port 8000 to a port of your choice and add one enviroment variable:

DATABASE_URL postgres://pguser:[email protected]:5432/dbname?sslmode=disable

So be sure that you have a working PostgresDB instance running with a DB name of your choice as well as username and pass. All 3 parameters are part of the URL variable.

Atm, everything loads up fine but clicking the Create note button is registering a 403 Forbidden error on http://youraddress/note destination. Waiting for dev to have a look.
 
2,148
908
NAS
DS220+ : DS1019+ : DS920+ : DS118 : APC Back UPS ES 700 — Mac/iOS user
Ok so now everything is fixed

Thanks. But you lost me. So this is for the 1tayH/secret, right?

Image in docker hub (latest) is also fixed so there is no need to build the image yourself.
Do you mean that I can find this when searching the registry now? I searched for “secret” but I can’t find it.


I should install postgresDB?
Installed it. Can’t find where to add a user/password. It starts and then stops “unexpectedly” like everything I tried in Docker ☹️

but clicking the Create note button is registering a 403 Forbidden error on http://youraddress/note destination. Waiting for dev to have a look.

That’s the essence of it 😐
I guess I’ll wait for the Tornote to be fixed since it almost ran.

The only thing I managed to run in Docker is DDSM and then Synology decided to kill it. I can’t even have that as a Docker “success story” 🤣
 
2,148
908
NAS
DS220+ : DS1019+ : DS920+ : DS118 : APC Back UPS ES 700 — Mac/iOS user
So it seems postgres runs and stays up after I added the following:

341FBB96-861E-46DB-9B35-84CF580DA31A.jpeg

61E70A93-E7B9-4A93-B242-A7102EE20BCD.jpeg
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

From looking in a terminal session on the running FreshRSS container... [email protected]:/# more /etc/hosts...
Replies
58
Views
5,591
I ran across a very complete how-to-install-nextcloud on Docker using the Synology UI (just the UI, not...
Replies
28
Views
5,590
Hello, i just tried to follow these steps above, but all I get is a psql: could not connect to server...
Replies
43
Views
7,433
I discovered if you use fireflyiii/core:latest everything works just fine
Replies
35
Views
12,396

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top