53 Commits

Author SHA1 Message Date
xytan0056
af0e699d3a update go version in configs (#1594)
Co-authored-by: Marwan Sulaiman <marwan.sameer@gmail.com>
Co-authored-by: Aaron Schlesinger <70865+arschles@users.noreply.github.com>
2020-04-01 16:02:25 -07:00
Federico Paolinelli
27f3683416 Replace the current e2e script with a test suite running e2e tests. (#1514)
* Replace the current e2e script with a test suite running e2e tests.

* Add a build tag to skip e2e while running unit tests.
We want e2e tests to be skipped while running normal unit tests.
2020-02-19 15:38:08 -08:00
Aaron Schlesinger
c695a41fef Making 'make build' not cd into the cmd/proxy directory (#1497)
Fixes https://github.com/gomods/athens/issues/1495
2019-12-19 13:00:52 -08:00
Rick Beton
f8bdeb52f6 SystemD installation (#1445)
* First implementation; older systemd is not yet supported; SysV is not supported at all

* small correction

* more documentation; manual testing confirms that Athens is working as a SystemD service

* documentation updates

* removed differences from author/master branch
2019-12-05 16:53:40 -08:00
Banner Schafer
053280a941 adding documentation for installing on GAE (#1400)
* adding documentation for installing on GAE for issue 1379

* turning draft status off for GAE install docs

* adding documentation for installing on google cloud run

* install documentation/scripts for gae

* updating docs on gae cloud run for clarity

* Changing install docs to include $ before shell commands
2019-11-11 13:05:04 -08: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
Mark Dodgson
5444309405 added environment argument for golang version (#1361)
* added environment argument for golang version

* Revert: added environment argument for golang version (84298506)

* reverted to specifying go version 1.12 as the default

* fix spacing
2019-09-04 14:21:10 -07: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
Pascal Dierich
4c2bd65d69 Makefile: Add help cmd to display documented cmds. (#1205)
The help cmd is copied from Jess Frazelle's (jessfraz)
dotfile repo, see https://github.com/jessfraz/dotfiles/blob/master/Makefile#L68
2019-05-03 16:43:03 +02:00
Aaron Schlesinger
f969033075 Adding a way to run an Athens in docker (#1082)
* Adding a way to run an Athens in docker

* adding phonies 😄

* fixing docs

to point to the right Makefile target

* s/post/port

* Making docs a little more clear

And better formatted
2019-05-02 21:28:54 +02:00
Scott Lee
3f2c99f6a2 #1149 Remove references to Buffalo (#1203)
* #1149 Remove references to Buffalo

* #1149 Add Makefile
2019-04-30 09:59:52 -04:00
Carolyn Van Slyck
d379c20f44 Publish charts to azure storage (#1097)
* Add chart-push target and script

* Rename chart dir to match helm standards
2019-03-01 15:08:30 -08:00
Aaron Schlesinger
c2647da423 Adding ability to run all tests inside docker containers (#973)
* Adding ability to run all tests inside docker containers

* Adding test dockerfile

* Small changes to the testing sections
2019-02-15 19:16:02 +01:00
marpio
c3d1d14d23 Use default conf values if file not found (#1022)
* default conf if no file provided

* move to the config pkg

* rm default config path

* rm log
2019-02-14 11:32:53 -08:00
Marwan Sulaiman
5b1cd25d22 CI/CD: replace buffalo build with go build (#1016) 2018-12-26 19:52:59 -05:00
marpio
aee30a4209 make target and docs (#1002)
* make target and docs

* fix grammar
2018-12-18 05:56:31 -08:00
marpio
329c86b843 use minio docker img on travis (#930) 2018-11-18 09:19:59 +01: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
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
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
Henry Jenkins
d26b99d41c Upgrade Buffalo (#789)
* Upgrade buffalo

* Switch to go modules everywhere

* Fixes from buffalo fix

* Add missing modules from module list

* Update vendored modules in /vendor

* Stop using vendor directory for tests

* Check go.mod and go.sum files on verify

* Upgrade Buffalo from v0.13.0 to v0.13.1

* Fix test for new Buffalo

Allow for new Buffalo code

* Add test for endpoint with trailing slash
2018-10-23 16:49:32 -07:00
Henry Jenkins
532e93e119 Remove Olympus code (#779)
* Remove nolonger used moniker package

Usage was removed in 97d8013

* Remove reference to Zeus

Use name Proxy for now.

* Remove Olympus code

See github issue #777

* Remove Olympus related vendor modules

* Mention Olympus removal in docs

* Add note about no registries existing

* Remove eventlog

* Update docs for Olympus removal
2018-10-22 11:52:02 -07:00
Manu Gupta
87a53dbee6 Remove redis from make as we can use in-memory queue for development (#785) 2018-10-18 12:47:19 -07: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
Marwan Sulaiman
d03eb7ba03 Travis: do not fetch modules during CI (#677) 2018-09-19 10:29:17 +02:00
Marwan Sulaiman
28839219a8 Remove olympus references in scripts (#679)
* Remove olympus references in scripts

* remove some more
2018-09-19 02:42:49 -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
Rob j Loranger
37f0687761 No conflicts (#569)
* add script and step to verify stage of makefile

* this commit should fail the build

* build should now pass

* fix typo in excludes for grep

* better output on failure

also removes tilde from initial regex, git does not use tilde in diffs
adds output of filenames with detected regex on failure
2018-08-27 10:48:24 -06:00
Carolyn Van Slyck
26e8197b82 Publish docker images during CI builds (#544)
master builds publish using the git describe output  as the immutable tag and
canary for the mutable tag. Examples:

  gomods/proxy:abc1234
  gomods/proxy:canary

tagged builds publish using the tag as the immutable tag, which is
usually going to be a semver value and with latest for the mutable tag.
Examples:

  gomods/proxy:v1.0.0
  gomods/proxy:latest

branch builds publish using the git describe output as the immutable tag and the
branch name for the mutable tag. Examples:

  gomods/proxy:def4567
  gomods/proxy:beta-1
2018-08-24 10:36:42 -05:00
Manu Gupta
3a8c6429e9 Removal of cdn rdbms driver and pop support from olympus (#551)
* Inital removal of cdn rdbms driver and pop support from olympus

* Update travis and other unit test scripts

* Remove postgres from Makefile

* Update comments and remove function that is not required

* Update .env file

* clean commented code

* Update docs to remove references to rdbms

* Remove pop and run dep ensure to make sure that the tests pass without pop

* Keeping GO_ENV=test for parametter logging
2018-08-22 20:10:19 +02:00
Manu Gupta
c0635b748c Remove pop from Proxy & RDBMS storage getter (#511)
* Remove pop from models for now

* Remove rdbms storage from pkg/storage

* Completely remove pop

* Some improvements to tests

- Not sourcing from cmd/proxy/.env, because that doesn't export any variables
- Removing mysql support (I feel like 1 database is enough)
- Pruning networks on teardown

I'm happy to split these changes up into separate PRs - it's the end of the day for me so I wanted to get everything in 😄

* update to point to test instance

* Update databasy.yml for travis??

* Remove database.yml

* Do not use db migrations and creation

* Remove pop dependency from cdn

* add schema for olympus assuming cdn driver is part of olympus

* Move CI/CD and test scripts to point pop to olympus

* Update database.yml and keep it only for olympus

* Add migrations to travis

* Add debug logs to see what travis is doing

* Update travis to use olympus database.yml

* Moarrrr logs to see where travis is pointint the db towards

* Change env to test

* Use test as the default environment if not specified otherwise

* Check if test new rdbms storage succeeds

* Try to see which connection string rdbms test suite is using on travis

* Update db tags for cdn driver

* create db by using travis go_env

* Remove sql from database config as it is removed from docker-compose

* Remove extra logs that I missed

* Add newline

* remove models.go and test file from proxy

* removing extraneous network prune from Makefile
2018-08-21 19:21:40 -04:00
Emrecan BATI
67a07d9da2 Remove separate docker volume remove command (#538) 2018-08-21 17:17:18 +02:00
Martin Strobel
106d8c3631 Cleanup Dockerfiles (#437)
* Cleanup Dockerfiles

* Responding to review feedback

* Preventing host copy of local  and  directories from being copied into builder containers.
2018-08-13 15:59:41 -07:00
Rob j Loranger
8382266479 Fix: Revert "adding a docker build target for the proxy (#454)" (#455)
* Revert "adding a docker build target for the proxy (#454)"

This reverts commit 69a73a1d0f.

* fix my mistake and add proxy docker target name
2018-08-11 08:48:16 -07:00
Aaron Schlesinger
69a73a1d0f adding a docker build target for the proxy (#454)
also changing docker repo to gomods
2018-08-10 15:52:31 -07:00
Dinesh Kumar
4cc1b71007 Benchmark storages (#426)
* Adding benchmark for mongo and fs

* Adding delete, exists, save with other storages

* Fixing typos, adding nonexistent module exits benchmark

* Fixing delete operation in delete benchmark

* Separating non testing existing modules benchmark, shortening the benchmark name

* running benchmark in ci

* Revert "running benchmark in ci" - mongo index make duplicate records to
fail
idempotent, will fix in a separate PR.

This reverts commit f7d78262d2.

* Adding reset timer, fixing duplicate record issue

* Revert "Revert "running benchmark in ci" - mongo index make duplicate records to"

This reverts commit 40a7b33199.

* removing benchmark from ci

* Adding operation for returning errors
2018-08-10 01:34:42 -04:00
Carolyn Van Slyck
f1efadeed3 Run E2E tests during CI (#363)
* Use go1.11beta2 instead of vgo

* Make the go 1.11 source directory configurable

Don't error out if it's been cloned already

* Add end-to-end (e2e) tests

* Make sure the repo bin is on the path

* Call the dev target from setup-dev-env

* Use the same dev setup on travis and locally
2018-08-03 16:40:33 +02:00
Marwan Sulaiman
22c1d86411 Makefile: minimum dependencies for dev environment (#375)
* Makefile: minimum dependencies for dev environment

* docs

* Makefile: merge alldeps and dev project names

* restart build
2018-08-01 03:17:27 -04:00
Carolyn Van Slyck
21cd7239db Make it easier to run all the same commands that Travis does (#362)
* Make it easier to run all the same commands that Travis does

* Add target to install dev tools

* Dirty a temp directory instead of the repo root

* Explain our new make targets

* Set a TMPDIR on travis

* Fix comment
2018-07-30 13:27:40 -07:00
Aaron Schlesinger
db7a318a6f Adding registry build to the makefile (#313)
* Adding registry build to the makefile

* adding jaeger to the dev env

* pruning volumes in dev-teardown
2018-07-20 12:39:56 -07:00
Tobias Kohlbau
75c7e1931f make: drop cli reference (#249)
CLI was removed and so should be the dangling reference within `Makefile`.
2018-07-12 12:31:35 +02:00
Aaron Schlesinger
2d25ccb3de spinning up required services in the makefile dev target (#192)
fixes https://github.com/gomods/athens/issues/191
2018-06-21 15:42:36 -07:00
Aaron Schlesinger
da5b269c2d adding a "dev" target to the makefile (#189) 2018-06-20 17:17:05 -07:00
Aaron Schlesinger
312da56044 fixing olympus dockerfile (#186)
* fixing olympus dockerfile

* adding olympus docker build target

* cleaning up dockerfile
2018-06-20 13:54:11 -07:00
Aaron Schlesinger
2142d9989c Clean up the athens codebase (#145)
* Making code generic between athens and olympus

* removing support in athens for "registry mode"

that is now olympus :)

* fixing compile err

* add a test target for the makefile
2018-06-06 10:55:30 -07:00
Rob j Loranger
c2887e8c7c remove dos line endings (#142) 2018-05-30 18:52:41 +02: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
Aaron Schlesinger
a6721f7505 Remove the base URL (#60)
* Removing concept of a baseURL

Just using a single ‘module’ and ‘version’ concept is enough

* go build => buffalo build
2018-03-21 16:03:44 -07:00
Michal Pristas
1df7400819 not tested version (#54) 2018-03-15 20:01:54 +01:00
Aaron Schlesinger
353c1e35d1 Moving to cobra for the CLI (#7)
* [WIP] Moving to cobra for the CLI

Fixes https://github.com/gomods/athens/issues/6

* dep ensure

* dep ensure

* travis ignoring vendor for 1.8

* disabled 1.8 for travis
2018-03-07 09:16:09 -05:00