Just to remember a simple command...
Add a file in order to be managed by GIT :
git add filename
If you want to undo the git add command :
git reset file
Just to remember a simple command...
Add a file in order to be managed by GIT :
git add filename
If you want to undo the git add command :
git reset file
I had a problem when installing the php7.3-curl dependency :
In fact, the problem occurs because I forgot to change stretch to buster in my configuration :
Then I restarted :
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
It's better to add a Docker user :
Docker version 20.10.8, build 3967b7d
In my job, I need to call a JSON API every month.To achieve that, I made Talend jobs.
The first Talend job initializes parameters in context and launches a second jobs in charge of calling the API with theses parameters.
First, we defined a variable with a key (TOKEN) and a value (row2.rnsr) by using a TMap component (MAPPING_PARAM1):
Then, the Talend tContextLoad component (LOAD_CTX_PARAM1) will load this variable in context.
An other useful way is to read a parameter file. I used this way to store a temporal authentication TOKEN :
In this job, we created a csv file; TOKEN.csv; that contains this line : TOKEN;123. Then, we rode this variable with a tFileInputDelimited. Here is the component properties :
To finish, we made a link between tFileInputDelimited (READ_TOKEN_FILE) and tContextLoad (LOAD_CTX) in order to load the variable in context.
We created a second job in order to call our JSON API (CO02_EXTRACT).
Note :
We checked theTOKEN_VALUE component in a tJAVA component (CHECK_CONTEXT_VALUE) :
String contextValue = context.TOKEN_VALUE;
context.synchronizeContext();
if (contextValue.equals("")){
System.out.println("ERROR : TOKEN doesn't exist anymore.See TOKEN.csv");
System.exit(1);
}
Then we load all context values with a tContextDump (CTX_DUMP).
The last step is to call the url. I used a tFileInputJSON component with URL and context parameters :
Version : Talend Open Studio Version: 7.3.1
Configure your project First, you need to add the following configuration in your file build.gradle (Module : app) : android { ..... andr...