Giter Club home page Giter Club logo

ops_contrib's Introduction

CircleCI Dependency Status

VersionEye

This is the source code for the web application VersionEye.

Start the backend services for VersionEye

This project contains a docker-compose.yml file which describes the backend services of VersionEye. You can start the backend services like this:

docker-compose up -d

That will start:

  • MongoDB
  • RabbitMQ
  • ElasticSearch
  • Memcached

For persistence you should comment in and adjust the mount volumes in docker-compose.yml for MongoDB and ElasticSearch. If you are not interested in persisting the data on your host you can let it untouched.

Shutting down the backend services works like this:

docker-compose down

Configuration

All important configuration values are read from environment variable. Before you start VersioneyeCore.new you should adjust the values in script/set_vars_for_dev.sh and load them like this:

source ./script/set_vars_for_dev.sh

The most important env. variables are the ones for the backend services, which point to MongoDB, ElasticSearch, RabbitMQ and Memcached.

Install dependencies

If the backend services are all up and running and the environment variables are set correctly you can install the dependencies with bundler. If bundler is not installed on your machine run this command to install it:

gem install bundler

Then you can install the dependencies like this:

bundle install

Rails Server

If the dependencies are installed correctly you can start the Rails server like this:

rails s

Now the application should be available at http://localhost:3000.

Amazon S3

You can use the fake-s3 GEM to simulate S3 offline: https://github.com/jubos/fake-s3. You can start the fake-s3 service like this:

fakes3 -r /tmp -p 4567

React.JS

Some parts of VersionEye are implemented in ReactJS. For autocompiling the JSX files in ReactJS use the jsx node package.

jsx --watch src/ build/

jsx can be installed via NPM with this command:

sudo npm install -g react-tools

Tests

The tests for this project are running after each git push on CircleCI! For more details take a look to the circle.yml file in the root directory!

If the Docker containers for the backend services are running locally, the tests can be executed locally with this command:

./script/runtests_local.sh

Make sure that you followed the steps in the configuration section, before you run the tests!

Support

For commercial support send a message to [email protected].

License

VersionEye-Core is licensed under the MIT license!

Copyright (c) 2016 VersionEye GmbH

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.

ops_contrib's People

Contributors

ariera avatar focbenz avatar jk avatar msoltysik avatar nnadeau avatar reiz avatar stromvirvel avatar svogt avatar timgluz avatar tristanlins avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ops_contrib's Issues

Failed to login as admin/admin

I have run the following command and seen the application on the host.

$ docker-compose -f versioneye-base.yml up -d
$ ./versioneye-update

After entering the API key succesfully I get the login screen that tells me to login with admin/admin.
This fails with the following error: Invalid email/password combination.

Am I missing a step?

Can I run the Nginx SSL playbook on top of the non-SSL Nginx one?

Hi @reiz,

I've configured Nginx successfully without SSL, as I'm generating the certs still.

When I have them can I just do run setup_locale_nginx_ssl.yml or do I need to reset the configuration first? If so, how would I go about doing this. I'm afraid by running the ssl command the configurations can conflict, or leave debris behind 😊

Cheers, @bitoiu.

undefined local variable or method `project' for ProjectImportService:Class Did you mean? project

Env:
Server:

  • Docker version 1.12.4
  • crawlj_worker:2.4.2
  • rails_app:5.10.6
  • rails_api:2.17.17
  • crawlj:2.4.6
  • tasks:2.10.0
  • Bitbucket Server 4.8.5

Client:

  • Debian 8 + Chrome 55

I successfully connected to Bitbucket server via OAuth, got repos list and received repo metadata. But when I try to enable repo file (pom.xml in my case) - I got this errors:

application-50027d4….js:3 GET https://versioneye.ourdomain.com/user/projects/stash/ABC:ourproject::develop::pom.xml/import 500 (Internal Server Error)
send	@	application-50027d4….js:3
ajax	@	application-50027d4….js:3
(anonymous)	@	application_scm-84e1d5f….js:5

application_scm-84e1d5f….js:6 undefined local variable or method `project' for ProjectImportService:Class
Did you mean?  project
(anonymous)	@	application_scm-84e1d5f….js:6
c	@	application-50027d4….js:2
fireWith	@	application-50027d4….js:2
r	@	application-50027d4….js:3
(anonymous)	@	application-50027d4….js:3

2016-12-26-203333_1366x768_scrot

enterprise_worker.log:

ESC[0;37m2016-12-26 10:33:14.726ESC[0m [ESC[31mwtfESC[0m] /usr/local/bundle/bundler/gems/versioneye-core-937721cde521/lib/versioneye/services/project_import_service.rb:192:in `import_from_stash'
/usr/local/bundle/bundler/gems/versioneye-core-937721cde521/lib/versioneye/workers/git_repo_file_import_worker.rb:56:in `import'
/usr/local/bundle/bundler/gems/versioneye-core-937721cde521/lib/versioneye/workers/git_repo_file_import_worker.rb:20:in `block in work'
/usr/local/bundle/gems/bunny-2.6.1/lib/bunny/consumer.rb:56:in `call'
/usr/local/bundle/gems/bunny-2.6.1/lib/bunny/channel.rb:1705:in `block in handle_frameset'
/usr/local/bundle/gems/bunny-2.6.1/lib/bunny/consumer_work_pool.rb:107:in `block (2 levels) in run_loop'
/usr/local/bundle/gems/bunny-2.6.1/lib/bunny/consumer_work_pool.rb:102:in `loop'
/usr/local/bundle/gems/bunny-2.6.1/lib/bunny/consumer_work_pool.rb:102:in `block in run_loop'
/usr/local/bundle/gems/bunny-2.6.1/lib/bunny/consumer_work_pool.rb:101:in `catch'
/usr/local/bundle/gems/bunny-2.6.1/lib/bunny/consumer_work_pool.rb:101:in `run_loop' (pid:64)
ESC[0;37m2016-12-26 10:33:14.726ESC[0m [ESC[32mfyiESC[0m]  [x] GitRepoFileImportWorker job done stash:::amarkelov:::ABC/ourproject:::pom.xml:::develop:::58609f55e55ad00011898310 (pid:64)

enterprise_app.log:

I, [2016-12-26T10:33:31.652884 #12]  INFO -- : Started GET "/user/projects/stash/ABC:ourproject::develop::pom.xml/import" for MY_IP at 2016-12-26 10:33:31 +0000
I, [2016-12-26T10:33:31.653509 #12]  INFO -- : Processing by User::StashReposController#import as JSON
I, [2016-12-26T10:33:31.653538 #12]  INFO -- :   Parameters: {"id"=>"ABC:ourproject::develop::pom.xml"}
I, [2016-12-26T10:33:31.657111 #12]  INFO -- :   Rendering text template
I, [2016-12-26T10:33:31.657166 #12]  INFO -- :   Rendered text template (0.0ms)
I, [2016-12-26T10:33:31.657310 #12]  INFO -- : Completed 500 Internal Server Error in 4ms (Views: 0.3ms)

versioneye/crawlr cannot

After checking out this repository and starting the base services I run
$ ./versioneye-update

This gives alot of output that ends with this:

Digest: sha256:d3b236e105a11ac84c6aa0c1b136b15e76fa2f22200bc96e01b6fd6012db9afa
Status: Image is up to date for reiz/rabbitmq:3.4.2
2.3.17: Pulling from versioneye/crawlj
Digest: sha256:48908f2621a33900c6352bf1fd75091ddbf21b3ca89f8c3c153c887f133d217d
Status: Image is up to date for versioneye/crawlj:2.3.17
2.3.22: Pulling from versioneye/crawlj_worker
Digest: sha256:6a85465899882cecd1d3855e50655e6e8fdd4b4993a8b7d3437ff1579e56fc80
Status: Image is up to date for versioneye/crawlj_worker:2.3.22
Pulling repository docker.io/versioneye/crawlr
Error: image versioneye/crawlr not found
2.12.16: Pulling from versioneye/rails_api
Digest: sha256:546a202cf2f8b886509839f3304c2038b9e44b9ab5f027f73d5bfcba90db7258
Status: Image is up to date for versioneye/rails_api:2.12.16
4.14.1: Pulling from versioneye/rails_app
Digest: sha256:86f07fbf7aa2e3ccb54789d11103ea4ca4c470dfc744a3da3ef8fc9e25524603
Status: Image is up to date for versioneye/rails_app:4.14.1
2.3.39: Pulling from versioneye/tasks
Digest: sha256:728a4230a476e7b1a473a0d3c3b901ad1bd9259865bf5aae3bdbfda6c0ee4032
Status: Image is up to date for versioneye/tasks:2.3.39

Looking at https://www.versioneye.com/docker/remote_images.json it seems it references a docker image that cannot be found on Docker Hub.

``
{ ...
versioneye/crawlr:1.14.4: {
container_start_opts: {
Links: [
"mongodb:db",
"elasticsearch:es",
"memcached:mc",
"rabbitmq:rm"
],
Binds: [
"/mnt/cocoapods:/mnt/cocoapods",
"/mnt/logs:/app/log"
],
RestartPolicy: {
Name: "always"
}
},
auth: true,
comments: "Introduce Supervisord"
}
...
}

Unable to access login page

So I've run the following commands

sudo docker-compose -f versioneye-base.yml up -d
./versioneye-update
docker exec -it tasks /app/init_enterprise.sh

Navigated to http://localhost:9090, and clicked Sign In but I get redirected to an error page. The page address is http://localhost:9090/signin?utf8=%E2%9C%93 and the error message is The page you were looking for doesn't exist.

Is there a step that I'm missing?

LDAP Login - DN Syntax error

I can't get LDAP to work, because of the following error An error occured! Code: 34. Message: Invalid DN Syntax invalid DN
This is my ldap config:
pasted image at 2017_06_07 10_31

My suspicion is that it has something to do with the filter. Do you have any idea how I could get this to work?

github non enterprise connection

Hi,
is it somehow possible to connection non enterprise github repositories to versioneye business? At the moment when I try to connect github to versioneye the url in the github settings is called and I could not figure out the URL for the standard github.

About connection other host docker server

I have two server, one server install AP, another one server install DB.

AP install : rails_app, rails_api, tasks, crawlr, crawlj, crawlj_worker
DB install: mongodb, elasticsearch, rabbitmq, memcached

  external_links:
   - rabbitmq:rm
   - memcached:mc
   - elasticsearch:es
   - mongodb:db

I should how doing, let ap server on the container through ip & port connection db server on the container ?

sorry my english is not good.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.