Commit Graph

119 Commits

Author SHA1 Message Date
Will Norris 5dd8671051 vendor: update cloud,grpc,protobuf libraries
update additional supporting libraries needed with
219f966a95

github.com/golang/protobuf @ 7cc19b78d562895b13596ddce7aafb59dd789318
google.golang.org/grpc @ b062a3c003c22bfef58fa99d689e6a892b408f9d
google.golang.org/cloud @ 36e3752134d445180a77cd40c922c48850b6fe9c
 - same as before, just added missing 'internal' package

Tests:
 - go run make.go succeeds
 - camweb builds and runs
 - go test ./pkg/... has a couple of failures, but nothing that wasn't
 already failing before this change

Fixes #743

Change-Id: I0a81f471f79255fcb4e0d615630eecce1c5cd966
2016-04-29 19:42:33 -07:00
Will Norris 7ec2b0ac2e website: update doc URLs
s/docs/doc/ and s/http/https/ for camlistore.org doc URLs in website and
code.

Change-Id: I875e2acece1f594a304f2bdb63f756fcb315abc8
2016-04-27 08:48:50 -07:00
Will Norris 3cc1efc75e website: serve non-HTML files as raw bytes
The website has several non-HTML files that mostly serve as examples
(eg: https://camlistore.org/doc/json-signing/example/signing-before.camli).
Today these files are parsed and rendered the same as HTML files, which
is particularly bad for these json-signing examples.  Instead, they
should be served raw, without any interpretation.

Change-Id: I09f7de130e55da7b2e585f1a110bbbf391f2279f
2016-04-26 16:25:45 -07:00
Will Norris 066db0952c website: use custom markdown options
This is all so that we can enable auto creating header IDs based on the
text of the header.  For example "# Foo" is converted to:

  <h1 id="foo">Foo</h1>

I'm not really sure why this isn't a default option, but whatever.  It's
also unfortunate that we have to copy all of the flags and extensions
from MarkdownCommon, but at least this will make it easier to add more
options in the future, I gues.

Change-Id: I65800c75560ad3b9a3fd0389b722c07ba11ee098
2016-04-26 12:47:40 -07:00
Brad Fitzpatrick f7e40292cb camweb: redirect /doc/dir to /doc/dir/ with trailing slash
Also fix up non-canonical links in docs after rename of /docs/ to /doc/

Updates #732

Change-Id: I7131f57cc7f8edf150cc785f42fe48917835c361
2016-04-26 09:46:07 -07:00
Will Norris fc619464df website: serve godocs for /app/ packages
Change-Id: If2836840aa5523e74a734051111e0ed614ea200e
2016-04-25 22:40:17 -07:00
Mathieu Lonjaret 7df8dbb2db Merge "website: always remove old demoblob3179 container" 2016-04-26 05:21:34 +00:00
Mathieu Lonjaret d422b6e942 Merge "website: serve /doc/ URLs from top-level doc dir" 2016-04-26 05:17:54 +00:00
Will Norris 7cb074bfde website: serve /doc/ URLs from top-level doc dir
- move existing content from website/content/docs to top-level doc
  directory
- redirect /docs/ URLs to /doc/

Fixes #720

Change-Id: I92e26bbc1fdbe994089080ae3a971d85c12921ab
2016-04-25 22:13:09 -07:00
Mathieu Lonjaret e0d422768d Merge "website: refactor mainHandler to allow diff roots" 2016-04-26 01:02:23 +00:00
Will Norris 6196e6ab98 website: refactor mainHandler to allow diff roots
This helps set up serving /docs/ requests out of different file root.
Additional, this allows the actual files on disk used to satisfy
requests to contain a .md or .html file extension (basically simulating
Apache multiviews).  Finally, requests that map to directories can be
satisfied by either a index.html or README.md file.

Ref #720

Change-Id: Id6076c242edd74b99a12699cd58c4567973d0d42
2016-04-25 18:01:27 -07:00
Brad Fitzpatrick 3c5b519c1e Merge "website: redirect to https" 2016-04-26 00:40:22 +00:00
mpl d9fa1ed87e website: do a full cloning of camlistore.org on startup
We used to have --depth=1 when cloning camlistore.org on startup, for
efficiency reasons.
But not having all the commits locally caused problems when pushing to
github, because it would see the remote had commits that we didn't.
So we're now doing a full cloning.

It looks like it's now taking ~4s (as opposed to ~2.5s before), and
consuming ~50MB diskspace (as opposed to 35MB before).

Plus a few bugfixes.

Change-Id: If7dbae1d3119d8b3336fb7d735f6bd0ba7606fc6
2016-04-25 17:30:17 -07:00
Brad Fitzpatrick 8a2f1f4a65 website: redirect to https
Fixes #721

Change-Id: Ib75e1023eb56afc6c15e826bc0d26ff6b3c7a859
2016-04-25 15:12:08 -07:00
Mathieu Lonjaret 36d9d8d7eb Merge "website: sync commits to github" 2016-04-25 16:25:56 +00:00
mpl 43f2e48dd0 website: sync commits to github
Fixes issue #708

Change-Id: I0e081724134ab08c736b00bd2ebe81eb9028ace7
2016-04-24 22:28:16 -07:00
Brad Fitzpatrick 75d60962f6 Move remaining stuff in third_party/* to vendor/*
Change-Id: Ifbcc02817083cba68d8c1acec3e6ec50e8f61149
2016-04-20 16:49:15 -07:00
Will Norris 77ed42edf8 add canonical import paths
The import path was added to the go file that included the package
documentation if one existed.  Otherwise, I used what seemed to be the
primary file for the package.

Fixes #689

Change-Id: If51be0e86529fd6f179e80af6781e639f8550fd2
2016-03-13 19:57:14 -07:00
mpl 255b51a5a0 website: always remove old demoblob3179 container
Because it can happen that we end up with with an already stopped/killed
demoblob3179, in which case we need to remove it even when killing it is
unsuccessful (because it was already dead).

Change-Id: I289e96284deebeaaa775c23ef6f3fe3bffc3777c
2016-02-08 22:05:37 +01:00
mpl 88b9dc826f website: print error for demo blobserver
Change-Id: Ic582b65d94dd17379feb2ac9e8f15d8e3bb4a05c
2016-02-08 14:52:18 +01:00
mpl f478c6cc67 website: chrome bug repro demo
For issue #660

Change-Id: I7b53da99b4ba50a6ec5818d291083aab72f994ab
2016-01-19 00:03:36 +01:00
Brad Fitzpatrick cf0c847fbf website: the 0.9 release is now named Astrakhan, and out.
And fix some text and redirects.

Change-Id: I8cf26a028fe79b6daa8817caff85279e314d12c6
2015-12-30 11:10:51 -08:00
Brad Fitzpatrick 33ce243eb9 website: redirect bare /dl to /download
Change-Id: Ie5f249d478fcb589824c056bf61c7af7c54155ab
2015-12-30 10:50:54 -08:00
Brad Fitzpatrick 833fbf0c85 website: use datastore to record which commits we've emailed about
Change-Id: I55d2b0e5f6de3377ef7240246e4ee44c8c2ebfa5
2015-12-28 21:08:17 -08:00
Brad Fitzpatrick b22a78deda Fix launcher. Work in localhost dev mode more easily. 2015-12-27 13:52:35 -08:00
Brad Fitzpatrick a728492a68 website: add -dev flag, always install something at /launcher/
Make it at least show the error reason if it can't install
the launcher.
2015-12-26 20:49:29 -08:00
Brad Fitzpatrick 1ef5252da3 website: flag doc cleanup, and log before listening 2015-12-24 14:51:15 -08:00
mpl 4b2b539e0c website: use cloud/storage Client instead of googlestorage
Context: issue #652

Change-Id: I7f36eeeb4be015ef117704742ec8ab4e4eeea7ba
2015-12-07 19:27:28 +01:00
mpl 1e2a306e8d vendor: add go4.org/cloud, update google.golang.org/api, and golang.org/x/net/context
Import go4.org/cloud/cloudlaunch and go4.org/cloud/gceutil, which were
previously in pkg/cloudlaunch, at rev
2c497a8c195996d6c48402c150da4919c1d99f33

Because the version on go4.org was updated to use the latest
google.golang.org/api/* , we also update our
vendor/google.golang.org/api/* to rev
030d584ade5f79aa2ed0ce067e8f7da50c9a10d5

This in turns requires to add vendor/golang.org/x/net/context/ctxhttp
(and update vendor/golang.org/x/net/context/) to rev
4f2fc6c1e69d41baf187332ee08fbd2b296f21ed

Also adding vendor/google.golang.org/api/gensupport for the same reason.

Change-Id: I9d6c3059626f7ecc0fbf2df0415043a464d27caa
2015-11-25 19:29:46 +01:00
mpl e1798e796e website: set builder redirect in production
Change-Id: I36c9be9786b14a564b4c67e3562cd06ae402ae25
2015-11-20 16:47:43 +01:00
mpl 621388f0bf camweb: send deploy handler logs to GCLogging as well
When logging to Google Cloud Logging, make sure the deploy handler logs
are written there too.

We tag them with the from:camli-gce-launcher label.

Change-Id: I4dab010009f98efd2aeba7c57dc4ab3ca6a566b3
2015-11-16 23:40:05 +01:00
mpl a2aee25cfb website: update (camlistored) deployer to run on GCE
Change-Id: I205c6df51e8d8c4bcf2710fc9da1db68419fc2df
2015-11-13 17:41:46 +01:00
Brad Fitzpatrick afd28ae279 website: name the demo blobserver container, kill on start-up 2015-11-11 14:45:50 +00:00
Brad Fitzpatrick 321272d65c website: make sure 'src/camlistore.org' is in our source path for godoc
It was making that assumption and crashing otherwise.
2015-11-11 14:32:00 +00:00
Brad Fitzpatrick 96dc004af7 website: run on GCE under CoreOS. Containerize demo blob server. 2015-11-11 12:58:01 +00:00
Brad Fitzpatrick b4ef019bc2 website: now runs on GCE/coreos with cloudlaunch 2015-11-10 12:10:16 +00:00
mpl 96bde7b1d4 website/camweb: setup TLS for when in production (on GCE)
Change-Id: I7d3ec69d0a4cdae4493cbe62ec14ea4e41f5d0ba
2015-11-10 10:14:07 +01:00
Brad Fitzpatrick 5b00bc2617 website: untar content to local disk when running in prod on GCE 2015-11-08 21:45:09 +00:00
Brad Fitzpatrick 1ce6518f68 website: more work on moving to GCE 2015-11-08 21:20:35 +00:00
Brad Fitzpatrick 3a473f32d3 cloudlaunch: upload binary, create instance 2015-11-08 20:29:04 +00:00
Brad Fitzpatrick 7578502c33 Start of a new cloudlaunch package, to be used by the website first. 2015-11-08 16:49:59 +01:00
mpl 07a2721f65 camweb: make it build
Because of cloud logging changes from
9106ce8296

Change-Id: I0620c72c2ada3cf916750586194c18077c8f942a
2015-10-12 19:36:46 +02:00
mpl 32228e451e website: prepare for 0.9 binaries and release
Addresses #538

Change-Id: I695f5b8d910cdea1d01f7efadaf2454c1a07ad0f
2015-09-09 19:39:24 +02:00
Brad Fitzpatrick 6f58fc2426 Fix build, move more stuff from third_party to vendor. 2015-08-18 10:19:49 +02:00
Brad Fitzpatrick 4486071e26 website: logging to Google Cloud Logging 2015-08-16 18:39:10 +02:00
Brad Fitzpatrick e5dd09807c website: refactor logging in prep for Google Cloud Logging support 2015-08-16 14:30:09 +02:00
Brad Fitzpatrick b0c9fcc71f Start of a Google Cloud Logging package.
Will implement here and then upstream.
2015-08-15 22:49:27 +02:00
Will Norris b7ca3ff09d website: use blackfriday to render markdown files
convert a simple file (/docs/todo) to markdown as initial proof of
concept.  All other existing files which contain HTML but no markdown
should be passed through blackfriday unmolested.

Change-Id: I6ec79f3bb0998fcb54712b748f94b5ae5bbed1c0
2015-07-23 16:23:11 -07:00
mpl f336dc8331 website: easier launcher dev workflow
Use the website/launcher-config.json JSON config file to provide
all the deploy handler parameters.

Change-Id: I6156eaa80269ad3e70e9d48d7b8253a9a507036e
2015-05-13 00:26:25 +02:00
mpl ebdb89fcfa camweb: default to camlistore.org:443 as the host for the Camlistore deployer
Because the deploy handler needs to know its own host to build the
RedirectURL for oauth.

Change-Id: I04801909dfe9d5fafc56417befdffcc747f5490a
2015-01-27 16:21:45 +01:00