Commit 27dd97ec authored by Henry Oswald's avatar Henry Oswald
Browse files

remove grunfile and circule.yml file, consolodate in server pro

parent 9b6496ff
Loading
Loading
Loading
Loading

Gruntfile.coffee

deleted100644 → 0
+0 −45
Original line number Diff line number Diff line
services = require('./services')

module.exports = (grunt) ->
        
        tag = grunt.option("tag") or 'latest'
        to = grunt.option("to") or 'latest'
        repos = []
        for service in services
                url = service.repo.split('/')
                owner = url[3]
                repo = url[4].replace('.git','')
                repos.push "/repos/#{owner}/#{repo}/git/refs/heads/#{service.version}"
        
        grunt.initConfig
                docker_io:
                        default_options:
                                options:
                                        dockerFileLocation: '.'
                                        buildName: 'sharelatex'
                                        tag: grunt.option('tag') or 'latest'
                                        push: grunt.option('push') or false
                                        force: true

                github:
                        combinedRevisions:
                                options:
                                        #oAuth:
                                        #        access_token: ''
                                        concat: true
                                src: repos
                                dest: 'versions/' + tag + '.json'

                rename:
                        main:
                                files: [{ src: ['versions/latest.json'], dest: 'versions/' + to + '.json'}]

        grunt.loadNpmTasks 'grunt-docker-io'
        grunt.loadNpmTasks 'grunt-github-api'
        grunt.loadNpmTasks 'grunt-contrib-rename'

        grunt.registerTask 'build', ['docker_io', 'github']
        grunt.registerTask 'gitrev', ['github']
        grunt.registerTask 'cut', ['rename']

        grunt.registerTask 'default', ['build']
+1 −5
Original line number Diff line number Diff line
## Install
Please see the [offical wiki for install guides](https://github.com/sharelatex/sharelatex/wiki/Production-Installation-Instructions)
 No newline at end of file

## Building image

The docker files can be built with grunt. We do this as there are some other tasks which are done using grunt such as marking the versions of each repo used.

circle.yml

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
# circle.yml
machine:
  services:
    - docker

dependencies:
  pre:
    - grunt

test:
  post:
    - docker run -d -v --name=sharelatex -p 5000:80 -; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:5000/status