Code Monkey home page Code Monkey logo

deployment's People

Contributors

amicis31 avatar amrondonp avatar andrescorso avatar crdgonzalezca avatar gaperezsa avatar larranaga avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

deployment's Issues

Document consideration with server ownership on /var/www/INGInious folder

If the ownership on the folder /var/www/INGInious is not set correctly, then the application cannot save tasks data or course modifications. The deployment scirpt already does that job for you but when you copy for examples tasks from git to the folder, it would have other ownership than the required. We can document the issue or even better. Have the error shown in the app to be something related with folder ownership so that the admin will know what to to

Java and Oclint linters are not installed

The ruby API for linting code relies on a pre-installed software called coala which at the same time relies on already installed linters In the case of pylint, coala installs it with the instalation script. However, Oclint and the java linters are not present in the dockerfile as long as I can see.

LinterService -calls-> Coala -calls-> Oclint

So we must ensure that

  1. Oclint and Java Linters are installed
  2. The have an environment variable named after the command that is used by coala to call

In the case of Java, it will handled here
https://github.com/JuezUN/coala-bears/blob/master/bears/java/JavaPMDBear.py#L31

In the case of Oclint, Here
https://github.com/JuezUN/coala-bears/blob/master/bears/c_languages/OclintBear.py#L9

In those files you can find the name of the excecutables so that you can include them in the container

MongoDB configuration

Please take a look at

image

There are some warnings that we would want to check before going to prod

Use cp instead of mv on run.sh

The use of mv command on run.sh implies that if the command fails, the files are lost forever (unless we have git and do git checkout .)

Consider using cp instead of mv to solve this issue

Deployment fails in python installation

Describe the bug / issue
When doing the deployment in a new machine, it fails as python3.5 is not correctly installed.
We should also check all deployment process to fix all other broken dependencies or something.

Stop cloning the repos again

We talked about stop cloning the repos because the code is being pulled from docker hub anyways. So there is no need of doing it

Also, we need to double check the INGInious base repo on docker hub and how it is going to integrate with our code changes on every release we make

Missing dependency

When executing the run.sh file on the cloud instance there is an error

This is the log:

image

make command not found

It is solved using apt install make

Fix mongo db warnings

Right now, when looking into the mongo logs we see warnings. We haven't dug to much to see what is actually happening but It might really be worth taking a look at it

Make sshfs persistent after restart

sshfs is a protocol for sharing files between machines using ssh. However, each time some machine is restarted a command must be ran so that the folder gets mounted. The solution for this is to make sshfs to run automatically after linux is turned on. Keep in mind that the main machine (the one with the database) has to be up BEFORE the grader machines so that when the grader machines are UP, they can mount the folder

Database access

Please put an string on the run.sh at the end.

Something like what you told me on facebook

'Vaya a ese archivo
Y donde dice bind_Ip
Cambielo a 0.0.0.0
E inténtelo nuevamente'

You can say that information on the ending of the bash or something like that to let the user know what to do to access the db

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.