Commit Graph

27 Commits

Author SHA1 Message Date
Chris Mills
05438234ed Fix issue with build arg in drone deployment (#1602)
The ARG before the FROM call in multistage builds is dropped with the
previous container. We need to define it globally

Signed-off-by: Chris M <millscj01@gmail.com>
2020-04-13 15:29:29 -07:00
Aaron Schlesinger
a8467661c2 Adding build arg for the alpine version the docker image is based on (#1585)
* Adding build arg for the alpine version the docker image is based on

* Actually using the arg

* Using Alpine 3.11.5

Co-authored-by: Ted Wexler <ted@stuckinacan.com>
2020-04-07 15:50:02 -04:00
Ted Wexler
53232f726d Update builds for Go 1.14 (#1558)
* Update .drone.yml for Go 1.14

* Update appveyor.yml for Go 1.14

* Update Dockerfile.test for Go 1.14

* Update Dockerfile for Go 1.14

* Update scripts/build-image/Dockerfile
2020-02-26 15:53:12 -08:00
Marwan Sulaiman
86da1590bc Dockerfile: ensure right perms for production setting (#1530) 2020-01-19 19:14:49 -05:00
Arne Bahlo
6ee9e0932c Install git-lfs on proxy container (#1455)
For repositories that store some files in git-lfs, the checksum will
differ for clients with and without git-lfs. Clients without git-lfs
will use the git-lfs pointer [0] for calculation, clients with will use
the real files.
This adds git-lfs to the container to match expected behaviour and
resolve checksum mismatches in these cases.

[0] https://github.com/git-lfs/git-lfs/blob/master/docs/spec.md
2019-11-11 13:17:50 -08:00
David Farrell
ab8caa2fc4 Remove G_ENV=production from proxy Dockerfile (#1443) 2019-11-06 19:38:55 -05:00
David Farrell
000d2b92a1 Add GOLANG_VERSION arg support to proxy-docker make target + Dockerfile (#1430)
* Add GOLANG_VERSION arg to proxy-docker

* Set default GOLANG_VERSION to 1.13 in Makefile

* Add note in proxy Dockerfile re: GOLANG_VERSION

* Add GOLANG_VERSION to docker-compose dev target
2019-11-06 11:32:59 -08:00
Marwan Sulaiman
8db652e04c Upgrade to Go 1.13 (#1377) 2019-09-13 13:48:28 -04:00
Penthaa Patel
f0f046ae09 Removed -mod=vendor from Makefile and docs (#1250)
* removed -mod=vendor from Makefile

* removed -mod=vendor from docs

* Set GOPROXY=https://proxy.golang.org in docs and Makefile

* remove -mod=vendor from Dockerfile; add GOPROXY=https://proxy.golang.org
2019-06-07 15:14:32 -07:00
marpio
d0472f666e Use alpine tini (#1260)
* use alpine tini

* do not COPY tini from the builder
2019-05-31 08:26:27 -04:00
Marwan Sulaiman
85bcef5b57 Dockerfile: wrap athens with tini (#1190) 2019-04-22 20:53:13 +02:00
Marwan Sulaiman
5c25be9feb build: switch to go1.12 (#1092)
* build: switch to go1.12

* switch travis to 1.12
2019-02-27 23:06:04 +01:00
fsouza
94cbd9a263 Dockerfile: remove redundant call to apk update (#1069)
- ``apk update`` fetches the index and saves it locally
- ``apk add --update`` fetches the index and installs the requested
packages
2019-02-18 11:30:17 -05:00
Marwan Sulaiman
8356831a43 Use Go 1.12rc for Docker Image (#1063)
* Use Go 1.12rc for Docker Image

* generalize rc
2019-02-17 20:38:55 -08: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
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
83281a80fb Proxy remove assets and config scripts (#693)
* Proxy remove assets and config scripts

* update olympus dockerfile - tho its outdated anyway
2018-09-21 16:31:47 -04:00
marpio
bcc896f226 rename example to dev and rm test config (#691) 2018-09-20 16:38:08 -04:00
Marwan Sulaiman
7e881bfaec Dockerfile updates: better naming and prefer CMD (#688) 2018-09-20 11:32:50 -04:00
Marwan Sulaiman
b6ca4149e5 Default to example config (#678) 2018-09-19 02:20:37 -04:00
Gil
5fe85f7cf5 changed base to use 1.11-alpine and addded GO111MODULE=on to environment (#635)
* changed base to use 1.11-alpine and addded GO111MODULE=on to environment

* change go build to be one line with modules on

* add vcs systems that were in original stretch image

* created multistage build with copy from and path environment update

* added env GO111MODULE=on

* add and run create default, prereq bash installed, moved go binary, created GOROOT path

* update to preferred docker entry point and shorter config path

* added fossil and info to links for compare of VCS
2018-09-19 00:48:05 -04:00
Rohan Chakravarthy
0e470d0294 Plumb config - Latest (#627)
* switch proxy to config file

pull in single flight changes

* changes for single-flight

* intermediate stage. All tests passing. pkg still has env refs

* remove all env references

* delete config/env entirely

* fix failing tests

* create the config.toml file as part of dev setup

* create config file only if it doesn't exist

* update Dockerfiles to use config file

* move composing elements to the top

* verbose parameter naming

* newline

* add flag for config file path

* update docs with config file flag

* remove unnecessary nil check

* use filepath.join

* rename redis port to address

* fix path.join

* fix issues after merge

* add vendor dir
2018-09-11 15:04:20 -07:00
Komu Wairagu
748ed7dda9 Remove dep files (#378)
* remove vendor directory
athens will be using Go modules for dependency management

* remove Gopkg.* files. athens will be using Go modules for dependency management

* add note about Go version required for developing on Athens
To use Go modules for dep management, you require atleast Go version 1.11

* update documentation regarding supported version of Go

* dont install dep

* re-add vendor directory
go mod vendor

* use vendored directory to carry out Go commands

* remove the use of -mod=vendor
this is necessary because;
1. we are running ci in a travis with a matrix of GO111MODULE=on & GO111MODULE=auto
and -mod=vendor is not available as an option in GO111MODULE=auto(inside GOPATH)

* rm vendor

* run go mod tidy
this is beacuse the master branch had changes to Gopkg.lock

* match gopkg.in/go-playground/validator.v9 version
with master branhc

* go mod tidy

* go mod vendor
so as to vendor the new changes that were added in master

* set GO111MODULE=on globally in ci

* build with -mod=vendor when building docker image

* use -mod=vendor to avoid getting deps from vcs in ci

* use -mod=vendor in .drone.yml

* use go1.11 in drone.yml
2018-09-02 11:54:42 -04:00
Komu Wairagu
69a5340c91 update to go1.11 (#563)
* update travis to Go 1.11

* update check_deps ci script
ci for checking dependencies should now check Go module files and use go mod verify

* remove uneeded comment

* set GO111MODULE

* debug GO111MODULE propagation

* rm dep installation

* debug GO111MODULE propagation

* rm debug statements

* use Go point releases in ci

* remove references to Go1.11 RCs

* run ci with GO111MODULE auto and also on

* use matrix
2018-08-28 08:46:12 +02:00
Marwan Sulaiman
8554f91286 Proxy: MVP Dockerfile (#536)
* Proxy: MVP Dockerfile

* remove comments

* add new line
2018-08-21 10:37:17 -04:00
Michal Pristas
9c14b1fd12 Proposal: move buffalo app to cmd (#91)
* buffalo app moved to cmd

* ooops:

* added copy of proxy as olympus

* removed buffalo test

* added blank endpoint for feed

* forgot db config file and storage setup

* resolved comments

* newlines

* resolved conficts
2018-03-28 10:30:56 -04:00