Commit Graph

513 Commits

Author SHA1 Message Date
Kayla Ngan
b66c074033 Add build badge for Azure Pipelines (#947)
* Add build badge for Azure Pipelines

* Scope to master branch
2018-11-26 21:41:15 +01:00
Manu Gupta
5882e1ffe6 remove assets to finish treating buffalo as an api (#943) 2018-11-23 07:30:38 -05:00
Audrius Karabanovas
154c993c42 Readiness probe (#942)
* Adding readiness endpoint for readinessProbe in k8s

* liveness and readiness probes added to deployment template

* Changing endpoint to /readyz, onelining checks

* Removing DNS check as that will be covered by storage.List() call
2018-11-22 18:14:23 -05:00
Henry Jenkins
005b36d50b Improve docs for developing docs (#937)
* Improve docs for developing docs

+ Mention `make docs` definition
+ Fix docker run command
~ Change docker command to run it from project root

* Further improve the development docs

* Fix grammar in development docs
2018-11-22 17:58:48 -05:00
Yorman
b92a642f1a Add error checks in a few test files and fix misspelled words (#919)
* Remove inefficient assignment of variable cxt in pkg/storage/fs

* Remove inefficient assignment of variable cxt in pkg/storage/minio

* Remove inefficient assignment of variable cxt in pkg/storage/mongo

* Fix commonly misspelled English words successfully and accessible

* Remove inefficient assignment of variable cxt in pkg/download

* Remove inefficient assignment of variable cxt in pkg/module

* Add missing error checks in a few unit-test files

* Revert removal of inefficient assignment of variable cxt

The variable, although is not being used, it maintains the readability
in the functions where it’s being assigned. The removal of `cxt` in
these files may introduce errors when a new function taking these
values is called. Two other contributors agree that it’s easy to miss
this detail when passing the variable to other functions and the traces
are not being recorded.

* Modify unit-test error reporting for the config package

* Modify config test to exit when ioutil.TempFile or os.Chmod fail
2018-11-21 20:16:05 +01:00
Alessandro De Blasis
35231b7365 Fixed more typos (#940) 2018-11-21 10:10:48 -05:00
Alessandro De Blasis
3538767f8d Fix typo (#939) 2018-11-21 09:34:40 -05:00
Manu Gupta
ff99d30bc2 skip test for chmod on windows (#938)
* add logs

* apples and oranges

* apples and oranges

* Fix bug

* stringify mode

* fix stuff

* figure out why chmod does not work

* see what happens outside the temp folder

* Does it have a long path

* check if proper runtimes are called

* Skip tests for windows

* clean up
2018-11-21 06:23:23 -05:00
Henry Jenkins
3d4450513e Adds Github ribbon link to docs (#936)
Based off of https://blog.github.com/2008-12-19-github-ribbons/
2018-11-21 06:05:57 -05:00
Tomasz Tomalak
88725b7778 Add docs about storages in athens (#883)
* Add docs about storages in athens
Fix wrong description in config.dev.tom

* Storage docs tweaks

* Change Disk storage description

* Fix spelling/grammar issue in storage.md

* Remove chapter value from configuration/_index.md

* Rename Config to Configuration
2018-11-20 15:11:51 -05:00
Manu Gupta
c11212601b Checks for windows permissions (#902)
* Checks for windows permissions

* Fix bug

* fix test

* Update perms

* Fix perms
2018-11-20 20:56:35 +01:00
azure-pipelines[bot]
1984dbdaaf Set up CI with Azure Pipelines (#862)
* Set up CI with Azure Pipelines

* trial & error

* use robocopy

* fix slash

* handle robocopy exit code

* rm goroot

* build proxy

* build & test proxy

* Skip Test_checkFilePerms on Win until issue resolved

* start minio and mongo

* do not create a new network on win 2016

* use win docker img for mongo

* download and start minio since there is no win docker img

* fix minio download & exec

* add minio access key and secret

* use new mongodb img

* fix docker-compose mongo

* trying to fix mongo tests

* ipconfig

* lets try that

* use docker inspect to get the container ip

* echo mongo container ip

* debuging docker inspect ipaddress

* set mongo env var to internal addr

* debug

* quotation is difficult

* without docker

* pass db dir

* split steps

* add some echos to know what takes so long

* cleanup

* add downloadURL var for minio and mongo

* rm windows docker compose file
2018-11-18 09:04:42 -05:00
marpio
329c86b843 use minio docker img on travis (#930) 2018-11-18 09:19:59 +01:00
Manu Gupta
24b84addc9 Add httptest (#897)
* Add httptest

* Update tests

* remove willie
2018-11-16 16:14:48 -05:00
Manu Gupta
035e20be56 Cookies are now not being sent to the client (#898)
* remove cors
add sessions for null

* use proper session store
2018-11-16 16:07:52 -05:00
marpio
4785e9c2b3 Remove storage timeouts (#928)
* remove storage timeouts

* fix tests
2018-11-16 16:00:08 -05:00
marpio
3061da5ee2 pass custom timestamp format to the log formatter (#920)
* pass custom timestmp format to the formatter

* update calls params

* review feedback - introduce default format const

* add comment

* review feedback - cloud formatter should not be overwritable
2018-11-16 15:52:42 -05:00
marpio
d827536cb6 extend bug_report tmpl by storage inf (#918) 2018-11-16 15:44:01 -05:00
Brent Pendergraft
3b6aeb986e mongo: remove drop dups option and return error if module exists (#913) 2018-11-16 15:35:46 -05:00
Marwan Sulaiman
132a75579b cmd/proxy: add /version endpoint to probe the server version (#908) 2018-11-16 10:07:48 -05:00
Nuno do Carmo
2b6bf6ca9a Changed HUGO_VERSION variable to ARG instead of ENV (#901)
this is a small change, however it will allow the creation of images based on a specific GoHugo version if needed.
The build command should be something like:
`docker build --build-arg HUGO_VERSION=0.51 -t repo/image-name .`

I tested the build as written above and it worked fine, but please feel free to test it further.
2018-11-16 09:59:06 -05:00
Aaron Schlesinger
f8cd4ad1e8 moving the dev meeting banner up near the top (#894) 2018-11-16 09:43:12 -05:00
Chris Mills
3718749f47 Move PHILOSOPHY.md to our docs site (#877)
As per the ticket, we'll move the PHILOSOPHY document to the docs. I
also spotted a spelling mistake which got fixed when I replaced the
text in the first page of contributing.

Signed-off-by: Chris M <millscj01@gmail.com>
2018-11-16 09:30:34 -05:00
Carolyn Van Slyck
f39b013629 Document our docker tags (#911)
* Document our docker tags

* Fix links on install page
2018-11-12 14:22:34 -08:00
Carolyn Van Slyck
1295637a7e Fix remaining docker image names (#910)
I missed a few (very important steps) that were setting the image name
2018-11-12 14:09:10 -08:00
Carolyn Van Slyck
bee463053a Rename docker image (#909)
* Rename docker image to gomods/athens

* Bump chart version to match new release version

* Switch from stable tag to latest tag

Our docs used latest, and it's awkard when you don't have a latest tag anyway
2018-11-12 15:15:58 -06:00
Aaron Schlesinger
c6644f82f9 Checking the number of bytes written to Mongo GridFS (#889)
* Checking the number of bytes written to Mongo GridFS

* adding missing import

* formatting imports
v0.2.0
2018-11-12 14:09:16 -05:00
Rob j Loranger
b59bf896fc makefile target for pushing docker image should not call docker build target (#904) 2018-11-12 08:21:09 -06:00
Carolyn Van Slyck
f776bc6667 Fix CI build (#903)
* Do not use whitespace in default version during CI build

* Verify docker build during PR builds
2018-11-11 15:43:41 -06:00
Rob j Loranger
1a94129c80 Fix docker builds in Travis (#900) 2018-11-11 12:18:50 -06:00
Aaron Schlesinger
e25c0c1de8 using the proper env var name for the mongo URL (#884) 2018-11-09 16:13:52 -08:00
Chris Mills
a44291793d Add more prominent area to advertise our meetings (#881)
Taking some design tips from the Harbor project, lets use something
similar on Athens.

===

Alter text slightly to read better

I feel that this text reads slightly better than before

===

Don't use the participating section...

Due to a mistake, I used the participating page rather than the
developer meeting page

Signed-off-by: Chris M <millscj01@gmail.com>
2018-11-09 14:03:07 -08:00
Rob j Loranger
2f524d27c3 add build details to binary (#866)
* poc

* finish JSON, remove uneeded methods, update docker file, finish script details

* build.Details didn't need to be exported

* typo

* somehow missed this

* should default to false

* Fix some things

remove commit SHA as build script will now create a hybrid for version
as in the push-docker-images.sh script, code shamelessly stolen.

change JSON function to Data and return a struct, the caller can do what
they like with that data, i.e. marshall JSON for a response body.

* add struct tags

* use build script in docker image

* newline in build.sh

* use previously generated version for binary build

* Working docker args

removed script build.sh, was not really needed.

date is generated automatically during docker build process.

VERSION will be set to 'Not Specified', or the version set during
our CI docker build/push step. A user can set their own version during
build using ldflags.

* remove old comment re: script

* Yikes

Almost forgot to remove my testing junk

* GitHub on my phone is hard
2018-11-09 10:32:55 -08:00
Marwan Sulaiman
0415934fd1 doc: why does it matter (#873)
* doc: why does it matter

* remove from main

* fix pr

* pr fixes

* validation hook

* aaron's suggestions
2018-11-08 17:35:29 -05:00
Manu Gupta
bb0094ad34 Add docs for the filter file (#864)
* Add docs for the filter file

* Update docs

* Update examples

* Fix +, - and docs

* Fix docs

* update docs

* Remove refernces to vcs

* Update docs with exclude
2018-11-08 11:33:16 -08:00
Brent Pendergraft
bc35636749 extract log entry from context in pkg/download (#874)
* extract log entry from context in pkg/download

* update doc for LogEntryHandler
2018-11-07 08:48:02 +01:00
Marwan Sulaiman
9f8e7bc145 Update docs for those struggling to set up buffalo (#871)
* Update docs for those struggling to set up buffalo

* mention golint

* pr fix
2018-11-06 20:55:10 -05:00
Nuno do Carmo
4fc6e74423 Added mutli-stage build (#869)
Added the multi-stage build in order to avoid all the `rm` commands and just copying `hugo` binary to a fresh image.
Kept the packages as I'm not sure if they're needed "in the long run".

For debugging purpose, I kept the `ENV` values, however if needed, the `builder` part could be changed to the following for "always" up to date Hugo version:
```Dockerfile
FROM alpine:3.8 as builder
RUN apk add curl wget jq
WORKDIR /tmp
RUN curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r ".assets[] | select(.name | contains(\"Linux-64bit.tar.gz\")) | .browser_download_url" | grep -v extended | wget -qi -
RUN tar -xzf hugo*.tar.gz
```
2018-11-06 16:33:42 -05:00
Brent Pendergraft
3c223dcfca add new log context middleware to store log entries in the context (#844)
* add new log context middleware to store log entries in the context

* replace LogEntryMiddleware and add NoOpLogger

* fix failing test

* move middleware to top level

* actually move middleware to top level
2018-11-06 08:46:51 -05:00
Michal Pristas
f53ab92503 Filter: fixing after refactoring (#867)
* added some clarity

* no need to handle pseudo versions

* gofmt

* tests ok

* reshuffled again
2018-11-06 00:18:18 -05:00
Manu Gupta
0b3dc6e8ef Don't use the terms caching in our docs (#865)
* removes caching from docs

* Remove cache from the docs and replace it with storage

* separate out fetch part
2018-11-05 15:09:59 -08:00
Tomasz Tomalak
61ddb907c1 Add support for DigitalOcean Spaces storage (#847)
* Add Region value to Minio configuration, Allow to use minio for DigitalOcean Spaces

* Remove unnecessary Region value setter
2018-11-05 15:24:44 -05:00
marpio
54f92c55d6 Config cleanup (#860)
* add default env vars

* del setRuntimeDefaults

* replace cdn conf with azure config and remove baseURL
2018-11-05 09:04:38 +01:00
Manu Gupta
03c00d34b3 Fix link that leads to a page that does not exist (#863) 2018-11-05 08:58:01 +01:00
marpio
1a20f8b6a3 tag with stable on semver git tag (#858) 2018-11-04 14:26:35 -05:00
Brent Pendergraft
680a7c0424 Fix broken link (#861)
* fix broken link in docs

* put space back
2018-11-02 16:58:18 -04:00
Marwan Sulaiman
875c1d4374 docs: refer to custom hugo image in docs website (#859) 2018-11-02 15:29:55 -04:00
Chris Mills
50876fbf79 Add Dockerfile for docs (#857)
There's no official image for hugo, so lets make our own and have the
Makefile build the Dockerfile

Add some basic documentation

I've added some simple documentation and tidied up the Dockerfile. I
move the file to use best practice and reduced the size slightly.
Personally I don't think we'll need to alter the address and not watch
files as it's only going to be used for local development atm. It might
be useful in future to move to being able to alter these if we're using
this in production

Don't use docs use hugo

It would be confusing for people to docker pull the docs but not have
any docs included in them. hugo as the name would make way more sense.

Don't lock down to digest

We should trust official libs, especially the alpine build.

Signed-off-by: Chris M <millscj01@gmail.com>
2018-11-02 12:11:11 -04:00
Marwan Sulaiman
6a005988dc docs: add revision limitation (#854)
* docs: add revision limitation

* up pr
2018-11-02 11:10:30 -04:00
Marwan Sulaiman
21eba000b1 docs: add hacking on docs website (#855) 2018-11-02 11:00:57 -04:00