Uploading Google Cloud Endpoint Client Library in Maven Remote Repository (Nexus) - google-app-engine

Is there a way to upload the generated cloud endpoint client library in a maven remote repository like Nexus through a mvn goal?

Deploying the endpoints JAR should be pretty simple, just follow the instructions in here.
By step 4 you should have a packed jar file ready to deploy to your repo.

Related

Jenkins Integration with S3 for hosting React Application

I am new to Jenkins, I have a React js application where it is hosted on Amazon S3. So I wanted to make a CI/CD pipeline using Jenkins. Most of the part is done but I am stuck at the last step. Connecting Jenkins with Amazon S3. I am able to get the updated code from Github and generate a build file in the Jenkins server. Now I wanted to move this new build file to AWS S3 for static website hosting.
I hosted my Jenkins server on EC2 Instance.
Can anyone help me to achieve this? Thanks in advance
You have 2 solution to implement
1.configure aws cli on Jenkins Slave or Master where you are running build and in jenkins Step Run command to copy those file to s3bucket
ex: aws s3 cp
https://docs.aws.amazon.com/cli/latest/reference/s3/cp.html
You can use s3 publisher plugin to copy artifact to bucket

deploy multiple enpoint api google app engine

I have 2 json files, I want to deploy on GCloud
With this command:
gcloud endpoints services deploy first_file.json
gcloud endpoints services deploy second_file.json
But after second file deploys the first one is removed.
Why?
If both files are for the same service you should check this documentation on how to deploy configuration files. You might be also having some issues with naming, as described in the description of the gcloud endpoints services deploy page.
Besides that, here you'll find tutorials on how to configure Endpoints on App Engine Standard.
If this is not the case, please add more information to the question, such as what is your use case and some code if possible.

Is is possible to deploy different monorepos packages to different domains

I'm trying to deploy a monorepo of 2 react packages (repos) where each package is deployed to different aws s3 bucket , is it possible ?
package A to be deployed to api.mywebsite.com
package B to be deployed to www.mywebsite.com
Welcome to Stackoverflow!
I suggest you do the following
In your build step create two artifacts (e.g. api, web). For example, if your npm build creates a ./build directory, do cp -r build api for the api project and similar for the web project
In your deployment step do something like aws s3 cp api s3://api.mywebsite.com --recursive or aws s3 sync api s3://api.mywebsite.com and same for the web artifact

Can i deploy local angularjs project to google application engine using ng deploy?

I created a project local to my Mac using "ng cli"; specifically, "ng new." The project runs locally, but I do not have a way to deploy it to my account in Google Cloud - Application Engine.
I followed Google's tutorial using gcloud commands in the cloud, but I prefer to use my local repository, etc. as I am running on "free" until I can afford to be commercially viable.
NOTE: You require a billing account to create a REPO in GCP.
I finally found this in Google Cloud Platform documents. So, basically, follow the instructions on Google's site (url below) to create a remote and local project. Write your code in the local repo, then push to the remote repo and deploy with gcloud commands (in a cloud shell in https://console.cloud.google.com) from the remote repository.
https://cloud.google.com/source-repositories/docs/quickstart
(Synopsis of the page intro ...)
Quickstart
This page shows you how to set up a GCP repository and use it as a remote for a local Git repository.
The sections below walk you through the steps of creating a local Git repository that contains files for a sample App Engine application, adding a GCP repository as a remote, and pushing the contents of the local repository.

Deploy a Spring app (JAR) for browser

I have no knowledge about deployment, production server, web server, etc. But I have a web application and my boss wants to deploy it in order to access it by web browser.
So, my application was generated by Spring Initializr.
It's using Spring (Boot, Security, Web, Data JPA), with web service REST (#RestController), HTML templates and AngularJS.
With mvn clean package, I generated a JAR file of this application. It is working on my desk. But, how can I deploy it?
I believe that my company has an OVH hosting. Can I install JBOSS or Tomcat on it, and upload my JAR on OVH?
You can deploy your application on Tomcat but you need to have a war instead of a jar to run it on an existing application server.
You can read the following documentation to create the war : http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#build-tool-plugins-maven-packaging
Once done, you just have to upload it on the server in the webapps directory of your tomcat server.

Resources