Commit Graph
74 Commits
Author SHA1 Message Date
UmputunandGitHub ba6bab5b91 Feature/cmd (#195)
* support flags commands, move to cmd

* fix target name

* test for happy path importer

* add export cmd

* fix wrong import, lint warns

* increase test timeout

* add sellp to allow main test server to start

* implement all cmds

* handle backup/restore errors

* fix import status check, hide secret from logs

* backup cmd err tests

* randimize test port

* avoid dup code in Last controller

* add target to make all bin archives

* remove container in make

* add smiple scripts to simplify commands, update readme

* add docs on dockerless, enforce app user

* add restore info

* move last to lastCommentsScope const
2018-08-26 21:45:04 -05:00
UmputunandGitHub 3520de768d feature/mongo cache (#180)
* add siteID to cache Get

* indirect option setters

* add mongo cache with tests, add Key and Flusher

* lint: minor warns

* workaround for cache parallel test

* repeater in mongo cache

* missing repeater vendor

* fix nop cache

* add cache mongo benchmark

* wired mongo cache, single opts group for mongo

* disable goconst

* stop cache repeated on not found error

* use local mongo for tests in travis
2018-07-24 18:43:53 -04:00
UmputunandGitHub dbd1d4069f feature/ext-mongo (#177)
* externalize mongo wrapper

* remove mongo env from drone

* export mongo test for coverage report
2018-07-22 22:46:25 -04:00
Umputun e278da3cd0 no need to skip in dockerfile, handled in testing.go 2018-07-14 13:45:04 -05:00
Umputun e2360eafe1 set mongo url to skip in order to allow PR builds 2018-07-14 12:13:24 -05:00
UmputunandGitHub de013c7d5a feature/mongo (#165)
* WIP: start mongo engine

* WIP: mongo accessor and admin

* integrate mongo store to main

* disable mongo tests by default, only in CI

* connection with constructor

* add mongo buffered writer

* buffered mongo writer

* fix nil responses on an empty list from mongo

* missing mongo index for scores

* cancelable store

* add gridfs implementation of avatar store

* fix race on mongo session copy

* gridfs avatars without tmp files

* move avatar store

* minor comments and refactoring for avatar store

* merged from current master

* simplify gridfs reader

* lint: fix minor warns

* test mongo against env defined url

* pass MONGO_REMARK_TEST to docker and travis

* set dockerfile env for mongo test url

* increase connect timeout in mongo tests

* pass MONGO_REMARK_TEST to drone build

* add MONGO_REMARK_TEST to branch stage of drone

* mass mongo test url via build_args_from_env

* populate mongo IP to docker build hosts

* test env

* pass mongo ip via .mongo

* remove .mongo temp from git

* add .mongo -> env to linter step

* allow more time to autoflush writer test

* default mongo tests to "mongo" if not in env

* merge fresh master into

* add test for mongo cleanup

* msg for a failed test

* lazy fix for failed test

* add an ability to skip all mongo tests

* add backend dev instructions

* remove unused code from mongo server

* move mongo testing to connection_test

* restore testing.go

* lint: minor warns for testing code
2018-07-13 12:27:11 -05:00
Aleksei GurianovandGitHub a544aff6ac improve and document developer setup (#161)
japanese commit
fixes #158
2018-07-13 09:54:12 +04:00
Aleksey Gurianov 25c75011f4 tweak CI detect on frontend 2018-07-11 22:44:13 +04:00
Aleksei GurianovandGitHub 2c570c2530 reveal node_modules in separate container (#123)
This allows reusing docker fs layer with node_modules
in case if there were no changes in package*.json
As a result, it decreases dependency on network
during rebuilds at least in a local environment.
2018-07-10 01:03:27 +04:00
UmputunandGitHub 43092bb644 skip build steps with ARG and compose #143 (#144) 2018-07-08 18:43:58 -05:00
Umputun 02d298aac6 remove pullreq from drone, remove .git and default version to local 2018-07-07 14:16:52 -05:00
Umputun d8a2a42e35 try to switch to drone version on non-tagged 2018-07-07 13:58:31 -05:00
Umputun 5d1201351a back to lightweight git-rev, exclude .git/objects 2018-07-06 15:36:21 -05:00
Umputun dcb0ee60d6 simplify .sh deployment 2018-06-30 13:15:18 -05:00
Umputun e254936521 move scripts to backend 2018-06-30 13:12:04 -05:00
Umputun 1250828509 don't fail due to coveralls issue #119 2018-06-30 12:52:30 -05:00
Umputun 65bd239778 fix #118 2018-06-30 12:40:59 -05:00
Igor AdamenkoandGitHub 7c4fbdb5a1 Merge pull request #100 from Mavrin/add_test
Setup testing environment
2018-06-23 21:11:57 +03:00
UmputunandGitHub 7aee7add08 Feature/backend (#101)
* move backend code #99

* adjust drone build for backend subdir

* move .rest to backend
2018-06-23 12:31:19 -05:00
konstantin krivlenia 52d791a7b6 setup testing environment 2018-06-23 18:36:14 +03:00
konstantin krivlenia 07f82bf6a5 add eslint check 2018-06-23 01:38:03 +03:00
Umputun d507b9e81b fix if for drone tag 2018-06-19 14:09:35 -05:00
Umputun e56aaa87f1 use drone env for tagged version number 2018-06-19 13:41:41 -05:00
Umputun abc0375f6a rollback lightweight git-rev detection 2018-06-19 13:17:13 -05:00
Umputun 6cce01390c elimintate .git/objects from build context 2018-06-10 20:29:31 -05:00
Umputun 837b2ef719 find user comments to support pagination 2018-06-01 22:17:57 -05:00
UmputunandGitHub 6aee34bb1e feature/ts - read-only support (#57)
* extend post info with ts and add info implemenation to engine

* info controller

* remove unused

* docker froendly new test

* tree find to include post info struct

* remove leftovers from codeconv

* test for empty tree request

* add func name to error rest report

* test with disabled proxy

* add read only age and reject updates on old posts

* lint: shaddow err

* make info calls fast. needs migration!

* fix backup restore script

* increase limiter timeout

* add local exporter

* migrate list to new info

* fix rest list tests

* add manual backup script

* default backup path

* fix eait on sec change failing rss tests

* add RO status bucket and rest

* add admin RO controller test
2018-05-28 14:57:36 -05:00
igoradamenko cb7ebf6d7c add git to frontend-part container deps 2018-05-26 23:16:31 +03:00
Umputun a6f588e452 remove support of CODECOV 2018-05-25 21:13:36 -05:00
Umputun c3d5136a0e try codecov.io 2018-05-25 10:28:17 -05:00
Umputun 59d744113a bunch of env for travis 2018-05-24 20:06:01 -05:00
Umputun 6766167bf1 trying to restore coveralls 2018-05-24 19:48:36 -05:00
UmputunandGitHub e54ab6778e Merge pull request #50 from AlekSi/no-grep
No need to explicitly exclude vendor with Go 1.9+.
2018-05-24 13:48:46 -05:00
Umputun 1cb1962d82 switch to latest base 2018-05-24 13:44:40 -05:00
Alexey Palazhchenko 0663ec600b No need to explicitly exclude vendor with Go 1.9+. 2018-05-24 12:20:46 +03:00
Umputun 6a539dabd7 remove branch dbg 2018-05-23 01:18:35 -05:00
Umputun 38fc202cca clean dup in dockerfile 2018-05-23 01:13:47 -05:00
Umputun 870c48a499 add travis arguments 2018-05-23 01:09:43 -05:00
Umputun 0d558857e3 fix lack of git info for coverage 2018-05-23 00:37:05 -05:00
Umputun 8291203d7a move coveral report to docker 2018-05-23 00:30:56 -05:00
Umputun 7e058b6c11 remove -v from go tests 2018-05-20 13:17:56 -05:00
Kirill Zhuravlev 6c8b1f4a64 add .git directory for contruct revision string 2018-05-19 18:38:46 +03:00
Umputun d76db0cc1b move expose and heatlcheck down 2018-05-17 16:28:38 -05:00
Kirill Zhuravlev 98d05634e6 remove commented code 2018-05-16 16:27:31 +03:00
Kirill Zhuravlev 771278a462 reorganized main build stage for caching
- frequent operations - last
- rare operations - on the top
- group chmod operations
- chown - after all file operations
2018-05-16 16:27:13 +03:00
Kirill Zhuravlev 6bd1d26fe6 build-backend stage use only he required files 2018-05-16 16:17:07 +03:00
Kirill Zhuravlev f6e0a53306 add list of ignored files on build 2018-05-16 16:15:15 +03:00
Umputun 9bc0c92d14 switch base images to public #28 2018-05-14 14:39:25 -05:00
Umputun cde10a1dd2 move sh to scripts 2018-05-08 20:44:54 -05:00
Umputun a507f7864b add restore backuo script 2018-05-03 01:58:29 -05:00