diff options
114 files changed, 5 insertions, 20900 deletions
@@ -1,7 +1,8 @@ -FROM xena/go:1.11 AS build -COPY . /root/go/src/github.com/Xe/site -WORKDIR /root/go/src/github.com/Xe/site -RUN GO111MODULE=on CGO_ENABLED=0 GOBIN=/root go install -v -mod=vendor ./cmd/site +FROM xena/go:1.11.1 AS build +ENV GOPROXY https://cache.greedo.xeserv.us +COPY . /site +WORKDIR /site +RUN CGO_ENABLED=0 GOBIN=/root go install -v ./cmd/site FROM xena/alpine EXPOSE 5000 diff --git a/vendor/github.com/Xe/gopreload/.gitignore b/vendor/github.com/Xe/gopreload/.gitignore deleted file mode 100644 index 140f8cf..0000000 --- a/vendor/github.com/Xe/gopreload/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.so diff --git a/vendor/github.com/Xe/gopreload/LICENSE b/vendor/github.com/Xe/gopreload/LICENSE deleted file mode 100644 index 82248fe..0000000 --- a/vendor/github.com/Xe/gopreload/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2017 Christine Dodrill <me@christine.website> - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE.
\ No newline at end of file diff --git a/vendor/github.com/Xe/gopreload/README.md b/vendor/github.com/Xe/gopreload/README.md deleted file mode 100644 index 32a3e5d..0000000 --- a/vendor/github.com/Xe/gopreload/README.md +++ /dev/null @@ -1,51 +0,0 @@ -gopreload -========= - -An emulation of the linux libc `LD_PRELOAD` except for use with Go plugins for -the addition of instrumentation and debugging utilities. - -## Pluginizer - -`pluginizer` is a bit of glue that makes it easier to turn underscore imports -into plugins: - -```console -$ go get github.com/Xe/gopreload/cmd/pluginizer -$ pluginizer -help -Usage of pluginizer: - -dest string - destination package to generate - -pkg string - package to underscore import -$ pluginizer -pkg github.com/lib/pq -dest github.com/Xe/gopreload/database/postgres -To build this plugin: - $ go build -buildmode plugin -o /path/to/output.so github.com/Xe/gopreload/database/postgres -``` - -### Database drivers - -I have included plugin boilerplate autogenned versions of the sqlite, postgres -and mysql database drivers. - -## Manhole - -[`manhole`][manhole] is an example of debugging and introspection tooling that has -been useful when debugging past issues with long-running server processes. - -## Security Implications - -This package assumes that programs run using it are never started with environment -variables that are set by unauthenticated users. Any errors in loading the plugins -will be logged using the standard library logger `log` and ignored. - -This has about the same security implications as [`LD_PRELOAD`][ld-preload] does in most -Linux distributions, but the risk is minimal compared to the massive benefit for -being able to have arbitrary background services all be able to be dug into using -the same tooling or being able to have metric submission be completely separated -from the backend metric creation. Common logging setup processes can be _always_ -loaded, making the default logger settings into the correct settings. - ---- - -[manhole]: https://github.com/Xe/gopreload/tree/master/manhole -[ld-preload]: https://rafalcieslak.wordpress.com/2013/04/02/dynamic-linker-tricks-using-ld_preload-to-cheat-inject-features-and-investigate-programs/ diff --git a/vendor/github.com/Xe/gopreload/doc.go b/vendor/github.com/Xe/gopreload/doc.go deleted file mode 100644 index 720c5c1..0000000 --- a/vendor/github.com/Xe/gopreload/doc.go +++ /dev/null @@ -1,7 +0,0 @@ -/* -Package gopreload is a bit of a hack to emulate the behavior of LD_PRELOAD [ld-preload]. -This allows you to have automatically starting instrumentation, etc. |
