Commit Graph

511 Commits

Author SHA1 Message Date
Brad Fitzpatrick bc9fbcd89e chip away at some staticcheck warnings
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-13 15:57:55 -08:00
Brad Fitzpatrick cf744db5bf website: move to Fly
Sadly I did this all once (and more completely) but then lost the
commit. So this is a re-do. The sharing demo stuff isn't yet complete.

Updates #1658 etc
2024-01-03 21:02:01 -08:00
Brad Fitzpatrick e1a04f92ed website/pk-web: remove GCE+mailgun support
I moved the website to run on Fly.io some 6 months ago but lost the
git commit that did so. So now I'm redoing it from memory (sigh).

But we don't need any of this GCE or Mailgun stuff now. People can
subscribe to git commits via other means.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-01-03 19:35:38 -08:00
Brad Fitzpatrick 98dff16008 clients/web/embed/closure: use modern go:embed instead of old bespoke make.go hack
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-31 12:15:42 -08:00
Brad Fitzpatrick b5823a65b9 pkg/deploy/gce: remove GCE deploy support
We used to have a web-based Perkeep launcher at perkeep.org/launch
that created a GCE-based Perkeep instance for users, where they pay
Google for compute time. (One of those "one click deploy" template things)

Unfortunately, Google broke their APIs for doing the third party VM
creations and we disabled it some years ago. But the code remains. And
now, updating it again, we find that they've broken it again:

   Error: pkg/deploy/gce/deploy.go:358:4: servicemanagement.NewServicesService(s).Enable undefined (type *servicemanagement.ServicesService has no field or method Enable)

It's not worth fighting Google's API breakages. Just remove the GCE
launcher support as it's been unused for years.

We can always resurrect this code from git if really needed. But a
Digital Ocean or Fly launcher would probably be much easier.

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2023-12-30 12:47:01 -08:00
Oleksandr Redko 44b1dbe0f6 all: refactor to net/http statuses instead of ints 2023-01-24 08:39:29 -08:00
Oleksandr Redko 001c417e73
all: replace deprecated io/ioutil with io and os (#1647) 2023-01-23 10:25:14 -08:00
Brad Fitzpatrick 921894783b all: gofmt for Go 1.19
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2022-12-31 22:45:40 -08:00
Brad Fitzpatrick f704514cb0 all: bump required Go version from Go 1.16 to Go 1.19
(Taking over #1632)

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2022-12-31 22:45:40 -08:00
luz paz d605f86c82 Fix various typos
Found via `codespell -q 3 -S ./clients/web/embed,./clients/chrome -L ba,everytime,impres,keypair,msdos,pres,ro,te,ue`
2022-05-02 14:31:09 -07:00
Tamás Gulácsi 8df8a3657d
staticcheck: Use time.Since, time.Until
checks S1012,S1024

Use global staticcheck.conf
2022-03-13 16:30:36 -04:00
jincheng9 93a6515db8
fix bug: typo (#1574) 2021-11-21 02:07:48 -05:00
Tamás Gulácsi 1c400bd5b3 Remove unused code
as `staticcheck -checks=U1000` suggested.
2021-08-09 17:34:14 +02:00
aviau 8204dc0dd3 misc: go 1.15 -> 1.16 (closes #1398) 2021-07-29 17:33:10 -04:00
Alexandre Viau fb961cf310
make codebase go-vet-clean (#1379)
Co-authored-by: Bob Glickstein <bobg@emphatic.com>
2021-07-26 21:19:53 -04:00
mpl b470765c15 website: make 0.11 visible
Fixes #1307
2020-11-20 17:00:01 +01:00
Brad Fitzpatrick c9f78d02ad Disable the Cloud Launcher. Too expensive for how underused (3 people?) it is. 2019-07-29 11:15:21 -07:00
Brad Fitzpatrick 41f5d4a190 Stop using Gerrit (googlesource.com), switch to just GitHub & PRs
Discussed at https://groups.google.com/d/msg/perkeep/terI3u9hfqg/-TWI0dOyCQAJ
2019-06-05 09:50:11 -07:00
mpl 9417938aa3 vendor: update a bunch of dependencies, and clean some things up
This change:

1) makes perkeep.org/server/perkeepd/ui/goui a module on its own, so that it
gets ignored by go mod with respect to perkeep.org. Because there's no reason it
should appear in perkeep.org/go.mod, as it is only used by gopherjs to rebuild
the web UI code.
2) updates a few of our dependencies to keep up with upstream changes (go get
-u, go mod tidy, go mod vendor).
3) readds manually (since go mod vendor removes them)
vendor/github.com/gopherjs/gopherjs (and its deps) as well as vendor/myitcv.io
because they are needed when one wants to rebuild the web UI.

As a result I think we can now drop dep, so it is done in this change as
well.

Change-Id: I155819163e15e214a6ba44bab2c19ae171d83d1b
2019-05-30 02:03:30 +02:00
mpl 52e4df095d website: record version with buildinfo
So now when we get the e-mail on a website restart, we'll actually
know what version of it is running.

Also,
make.go: skip gopherjs checks when we only build the website or
camnetdns.

Change-Id: I3f6985afc8931fe478cc4f7caba2b1fc31bc815b
2019-03-27 23:09:54 +01:00
Mathieu Lonjaret 78362dc1c0 Merge "pk-web: enable TLS-ALPN-01 for Lets Encrypt" 2019-02-24 16:47:59 +00:00
mpl b46cc46d5d pk-web: enable TLS-ALPN-01 for Lets Encrypt
I'm getting reminders from Let's Encrypt that perkeep.org is using a
cert obtained with TLS-SNI-01, which is now deprecated.

I think this change would be enough to switch to TLS-ALPN-01.

Change tested on the staging instance at https://staging.camlistore.net

Change-Id: I19dc51171228e6598846a778aadb8497d3406446
2019-02-23 20:00:10 +01:00
Brad Fitzpatrick 0683145d61 website: remove opencollective links
Per https://groups.google.com/forum/#!topic/perkeep/Kqvh2dJVmoo

Change-Id: I5ffbf4b323613f9fc83c2082ee6512df64300f4f
2019-02-12 09:11:48 -08:00
mpl ffc9707902 pk-web: do not panic on empty slice of hashes
Fixes #1247

Change-Id: Ia8dcce72c889a72be736ef8d50871516845d52e2
2019-02-01 19:10:39 +01:00
mpl 4906b8803e doc/synology: update latest tarballs
Also mention synology packages on download page.

Change-Id: I76118d6dc93d8ba44ce5af6eb422ee12971dfae5
2018-07-26 03:28:50 +02:00
Mathieu Lonjaret 9c7ceeb90a Merge "pk-web: push commit to perkeep repo instead of camlistore one" 2018-07-10 18:49:29 +00:00
Neil Pankey 97c4bd0ffa website: replace 'camtool env' with 'pk env'
Change-Id: I97c1ed8c7800ff7af13759d2c03238b9c46e2dde
2018-07-08 14:25:41 -07:00
mpl 28f7599a8f pk-web: push commit to perkeep repo instead of camlistore one
We were still pushing to the camlistore repository. That worked, thanks to the
redirect, but we might as well push directly to the correct one now.

Change-Id: Ide4668ee587568cba928cb360289000aa106e955
2018-07-03 17:58:28 +02:00
mpl b3381cc58d pk-web: add paging on timeout for docker runs
It happens somewhat regularly that pk-web stops syncing commits to
github, and sending e-mails about it, because any docker run process
seems to get stucked. Invariably, restarting the docker service
(systemctl restart docker), seems to fix the problem.

This change adds a timeout mechanism for functions running a docker run
exec, so that after the timeout, we get notified by e-mail about what
function is blocked.

Change-Id: I16bd4f5abc7864ceb176a0e69c5300165194b18f
2018-06-27 20:06:02 +02:00
mpl 1abff5383c website: fix sender for commit msg with mailgun
Change-Id: I58163e568914ef821d48399da62082275f1734b5
2018-06-14 20:11:16 +02:00
mpl a140b28f5d website: Gerrit instance update
Updates #1176

Change-Id: I9f5cf347f1a6b369cf490cc30cc05134d14d7b8a
2018-05-24 21:32:18 +02:00
mpl 4a53f0fddf website: fix clone URL to the perkeep on github one
Updates #981

Change-Id: I54138307b56ab683eac658b38b20a770f147b014
2018-05-18 17:38:21 +02:00
mpl 2f2280880b pk-web: remove extra trailing slash on file URL
Fixes #1160

Change-Id: I2f1f2e57ba888eb4a5eec1e222a76e7abbdec428
2018-05-16 02:28:11 +02:00
mpl 0917920684 pk-web: handle new perkeep-release download bucket
And keep handling downloads from legacy camlistore-release bucket.

Change-Id: Ia4b411bce5c3575df0167ecb1390f392b6597202
2018-05-14 18:48:14 +02:00
mpl b76a4f6727 internal/osutil: revert to using "test safe" func for identitySecretRing
And while we're at it, rename said func (CamliConfigDir) to
PerkeepConfigDir.

Fixes #1161

Change-Id: Ia8c9b5826046437b77c8e16ee91912e31ad319a3
2018-05-12 02:12:03 +02:00
Brad Fitzpatrick 789f861964 all: rename some references to .config/camlistore to .config/perkeep
Updates #981

Change-Id: Id76fe17d80380bdb973bc85ec8f54ba9500aff40
2018-05-02 21:36:29 -07:00
Brad Fitzpatrick f6ad3092bc doc: more 0.10 release note docs
Change-Id: I05bef0f001eb3652a830a085b00e008b23574e0d
2018-05-02 19:04:40 -07:00
Brad Fitzpatrick 12894d4630 all: Windows fixes (don't listen on file descriptors in test.World, etc)
test/integration: don't listen on file descriptors.
make.go: unrelated, but options to make it much faster.
internal/images: t.Skip on HEIC dependency failures

Fixes #1140
Updates golang/go#25210

Change-Id: I8092155411826d6ed1f8d85230b753d1369044af
2018-05-01 21:38:19 -07:00
mpl 326de1d794 website: revert bin name to camlistored for demo
We have not updated the camlistore/demoblobserver image that the website
runs, so the binary it should execute is camlistored, not perkeepd.
As it is, it keeps on trying to run it every 10s, which makes it busy
for nothing. And I don't think it's worth spending time on updating the
image for now, so it's easier to just revert to the old name.

Change-Id: I769aecaaecdb027d686a78adf9a37a14e9ef9b9d
2018-05-01 10:19:43 -07:00
mpl 76e61108c7 doc: add lfnw 2018 talk
Change-Id: I512a0620b13c0d070db28198271ad2ca0e80ad3b
2018-04-30 22:40:50 -07:00
Brad Fitzpatrick c806ab4bcd doc: update build instructions
Fixes #1135

Change-Id: I7e5897308594acc591c66dd6656605cdad1a7f3c
2018-04-30 16:38:29 -07:00
mpl 87a8e7ad54 website: fix test working dir
Change-Id: If92dc43b4ee3e5fd2ac9c6490d242d3dacff74b1
2018-04-25 23:18:16 -07:00
Mathieu Lonjaret 03b0ab4601 Merge "website: add links to android app" 2018-04-25 01:53:10 +00:00
mpl e02c044e67 website: add links to android app
Change-Id: I90ed3cbe168b95dfaeaa674b330c1b704145f6e6
2018-04-24 18:51:58 -07:00
mpl 2286b6442b website: move go code to pk-web package
Fixes #1109

Change-Id: Ibcba1addf25da414f4d9cb42f621d6b9184898da
2018-04-23 16:42:35 -07:00
Brad Fitzpatrick ca76a40bbc Rename camlistored to perkeepd.
Updates #981

Change-Id: I8fe43c240c149074c23128a89ab426af9cbf94b4
2018-04-21 11:06:09 -07:00
mpl 11d1e107b2 website: mention CoC on community page
Also fix related markdown typo in README.

Change-Id: I90d89e88d00ee2225bea4bd65ce213e729218616
2018-03-19 16:39:20 +01:00
Paul Lindner 72f2fa2586 Merge "website: add header anchor links on hover" 2018-02-28 19:24:04 +00:00
Peter Etelej 5e7f6dfb6e
website: add header anchor links on hover
Adds header link icons on hover. Check for headers (h1-h4) with
defined id's and adds link icon with relevant fragment link.

Fixes #1028

Change-Id: Ic9c8744efe12dda251f4a461adb0b09cf84604c3
2018-02-25 00:46:45 +03:00
mpl c7baf2027d website: change mailing-list to perkeep
Change-Id: I5249b9eee35786dfef24d1c1be767fe5af66cd13
2018-02-16 02:30:21 +01:00