Tornote - Self-destructing notes (Docker)

Docker Tornote - Self-destructing notes (Docker)

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

1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : 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
2,463
738
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
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
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : 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 :(
 

Rusty

Moderator
NAS Support
2,463
738
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
It's not you m8... Dev is active I'm sure we will get some feedback soon.
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : 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
2,463
738
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Correct. It is a small web app build on top of Alpine image
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Nice. How cool is that to be able to run your own self destruct notes. Very useful for passing sensitive information like credit card and financial info quickly.

I usually use privnote and the likes for this.
 

Rusty

Moderator
NAS Support
2,463
738
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
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
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Thanks for the update. I guess I’ll wait.
Tried 1tayH/secret and it has a problem too. A page not found on github.
 

Rusty

Moderator
NAS Support
2,463
738
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
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
2,463
738
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
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.
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : 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” 🤣
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Oh yes. I found tornote in the registry.
Ok. We’re one step closer.
 

Rusty

Moderator
NAS Support
2,463
738
www.blackvoid.club
NAS
DS412+, DS718+, DS918+, 2x RS3614RPxs+ with expansions
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Don't run it yet... its not fixed completely yet.
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Don't run it yet... its not fixed completely yet.
Yes thanks. I gathered that. Most likely will need another download when fixed.
I’m trying to figure out the postgresDB and make it run for now.
 
1,494
646
NAS
DS220+ : DS1019+ : DS216+II : DS118 : DS120j : 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.

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Top