How to install and run odoo project from github on ubuntu? - macos

I have installed odoo11 on ubuntu (via parallels on mac) and the odoo server is up and running fine.Now my client asked me to install his odoo project on my pc. He gave me the github repo link and i dont know how to go about from here. Should i just copy the custom modules or clone the entire project? If i clone the entire project, how do i run the odoo service from there?
I am new to odoo so i need some guidance on this.
Thanks
Click here to see the odoo server image
Click here to see the github project files

When you are running an Odoo instance, your have to mention a config file in the executable command with -c or --config option. In this config file there is a derivative addons_path.
All you have to do is to clone the repository, and add the directory of addons (from the look of your screenshots, custom, enterprise, inception_modules, nerku, softtech) in the addons_path of your config file. after that, you will find your client addons in Odoo application apps page. For more information, you can follow the official documentation.

Related

How to install applications on a windows docker container?

I'm trying to create a Docker container based on the abrarov/msvc-2019 (windows based) image and I need to install additional programs such as Conan.
In the Dockerfile, what do I need to write in it to be able to install Conan? I can't just use something like "apt install" since Windows doesn't support anything of the sort. I can't find anything online about this.
I tried downloading the .exe installer locally and copy it inside the container, and then run the .exe during the building of the image. Something like this :
COPY conan-win-32_1_33_0.exe C:\\
RUN conan-win-32_1_33_0.exe;
But the image doesn't finish building and it's just stuck in the RUN part.
The most recommended way is using pip:
pip install conan
Another official ways are listed on download page. But as you listed, Windows installer is the another way.
For Windows you still can try Chocolatey, but it's not maintained by Conan team.
In the past we tried something similar and worked, a MSVC 15 Docker image with Conan. However, due Visual Studio license, we can't build images for distribution. You could fork the project and use it for your own propose.

How to configure Github in VSCode?

VSCode has Github built in itself but I am not able to configure it. I tried it’s documentation but didn’t found anything helpful.
Do I need to install any extension to do so?
Here is the useful extension for VSCode, which I using now. It is simple to install & use, also has a good documentation.
LINK
UPDATE
Also, there by the link is the setup guide.
Just clone your repo and open the directory in VS Code, the editor will take care of the rest.
Else you could run the git init command in the directory you'd like to use (on the command line/terminal) and open the directory in VS Code.

Connect VS code with TFS on mac

How to connect Visual Studio Code on mac with Team Foundation Server(TFS).
Or any other way to connect with tfs?
This are the steps to effectively connect a TFS (TFVC) Repository to your VS Code on Mac:
INSTALL THE SOFTWARE
Install Visual Studio Code for Mac (currently here: https://code.visualstudio.com/download).
Install the TFS extension for VS Code: Go to the Extensions tab in VS Code, Search for TFS and install.
Install TEE-CLC. Follow this guide: https://www.youtube.com/watch?v=VPNaEIVZfr0&feature=youtu.be.
CREATE A LOCAL TFVC WORKSPACE IN YOUR MAC
Now you need to have a local TFVC Workspace on your machine. If you don't have one (as it was my case), you need to create it. The following steps are partially extracted from https://stackoverflow.com/a/21785438/2816119.
Create a local folder where you are going to download and locally store the source code.
Open a Terminal window.
Create a local workspace from your terminal window with the following command:
tf workspace -new MyWorkspace -collection:<<<http://full.URL.of/your/repository>>>
Map your repository folder to your local folder with the following command:
tf workfold -map '$/your/repository/folder/path' /your/local/folder/path -collection:<<<http://full.URL.of/your/repository>>> -workspace:MyWorkspace
If everything went well, you'll see a new sub-folder ".tf" in your local folder.
Open your local folder with VS Code. If everything went well you'll se after a few seconds the TFVC icons in the bottom bar:
GET THE SOURCE CODE
To get the source code you'll need to go to the Source Control Tab -> Ellipsis (...) button -> Sync.
Once you press it you'll see a progress bar moving in the Source Control Tab and you'll see how the source code is downloaded to your local folder.
ENJOY
Now you can use your TFVC repository as described in their guides.
If something is not clear or you have questions please let me know. I'll try to help you :-)
Get the software
tee-clc (can be installed with HomeBrew), which depends on
Java 6, 7, or 8 (see How to install Java 8 on Mac -- as of this writing, Java 9 will not work.)
Create a workspace using tee-clc ("tf")
Tell tee-clc to remember your credentials (in OSX's Keychain) by adding this line to your .bash_profile. Then close and reopen your terminal or just paste the same command.
export TF_AUTO_SAVE_CREDENTIALS=0
Accept the EULA.
tf eula
Create a workspace.
tf workspace -new MyCoolWorkspace -collection:https://my-server.example.com/tfs/DefaultCollection
Map a path on the server to a local folder.
tf workfold -map '$/Path/To/Folder' /path/to/your/local/folder -collection:https://your-server.example.com/tfs/DefaultCollection -workspace:MyCoolWorkspace
Get the code and store your password. Make sure you type your actual username; if you enter your_username here it may get stored in the OSX Keychain and tee-clc is really dumb about replacing it later.
cd /path/to/your/local/folder
tf get -login:your_username
If it works, it will download your code to that folder. You can also use the other commands.
Use the Azure Repos Extension on VS Code
Get the Azure Repos extension.
Add the following settings (CMD+,):
{
"tfvc.location": "/usr/local/bin/tf",
"tfvc.restrictWorkspace": true
}
Type which tf in Terminal to find out what the value for location should be. I'm not sure if "restrictWorkspace" is necessary. I got it from a comment on Github while I was troubleshooting.
Finally, open the folder containing your code. From the command palette (⌘+⇧+P) type Team: Signin. If that works, you can start using the other features in the plugin.
GIT
VS Code ships with a Git source control manager (SCM) extension. Most of the source control UI and work flows are common across SCM extensions.
More details please refer this tutorial:Using Version Control in VS Code
Note: VS Code will leverage your machine's Git installation, so you need to install Git first before you get these features. Make sure you install at least version 2.0.0.
TFVC
You can connect to TFVC using the Visual Studio Team Services extension since version 1.116.0 (2017/04/12).
Note: You need Team Foundation Server 2015 Update 2 or later.
Check the below link. It is working fine for me
How to use TFS on a Mac
Steps to be followed:
Step 1: Install Eclipse
Step 2: Download and install the TFS everywhere plugin
Step 3: Checkout your solution using the eclipse to a local folder
Step 4: Open the solution in Visual studio and make the code changes
Step 5: Open eclipse and commit your changes.

Apache Flex SDK Mavenizer: build the converter

I'm trying to comple the Apache Flex SDK mavenizer tool, I need this tool to convert the Apache Flex Sdks in package suitable for the Maven repository .
I downloaded the git repository from
https://git-wip-us.apache.org/repos/asf/flex-utilities.git
I followed the instruction in the README.txt that are similar to the Building the Mavenizer tutorial: I clone the repository, I entered in the mavenizer directory and I lunched mvn package.
The maven script ran without errors but I couldn't find any jar in the man target directory.
Each module were correctly built but not the main jar.
So I coulnd't execute the converter
java -jar [path-to-the-maveinzer-jar]/mavenizer.jar "[sdkhome]" "[fdktarget]"
Could someone help me? Has anyone run into the same problem?
I'm happy to share here the answer they gave me in the apache flex users forum.
Actually there was a problem!
Ups sorry for that ... I didn't update that page for quite some time.
The problem is that you checked out the old version. The new version
is in the develop branch. As soon as the mavenizer is officially
released, master will contain the updated version.
I did write down a little more detailed howto under:
https://cwiki.apache.org/confluence/display/FLEX/Quick+Start+Guide:+Building+Apache+Flex+applications+using+Maven
(I just re-checked and fixed one problem)
I Hope that it could be useful !

I can't "go get" a dependency from github

I made a golang app on my machine that uses cron. On my machine, I
"go get github.com/robfig/cron"
to download and install dependency then in my app I
"import cron "github.com/rk/go-cron""
the app works fine and runs the way I want. I then upload it to the server where it's supposed to run and try to "go get github.com/robfig/cron" as I did on my machine, but then it gave me this
I downloaded and installed github but still the same result. I'm guessing the problem is with github on my server machine
I am new to golang and andy kind of help would be greatly appreciated. Thanks.
What you need to install is git. It is the version control system (VCS) used by GitHub.
The native GitHub application does not provide the command line tools used by Go.
Git can be found and downloaded at http://git-scm.com/downloads
Once installed, make sure you have the path to the Git cmd folder in your %PATH% environment variable.
You can check this by running the command: echo %PATH%
On a Windows installation, you might find it located here:
C:\Program Files (x86)\Git\cmd

Resources