* 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
* 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
* 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
* 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
* 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
* 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
* 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
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.
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>
* 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
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>
* 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
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
```
* 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
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>