8000 GitHub - jeremy-chatton/dublin-hachathon: cloud function on Azure & postman collections
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jeremy-chatton/dublin-hachathon

Repository files navigation

Dublin hackathon

During this hackathon, we have worked on several topics :

  • implementation of a google cloud function which will call Gemini AI to generate Logistic objet by interprating the business needs.
  • implementation of bruno collection to record the several objects saved into One Record server
  • Manual to install One Record Server on GCP

Installation of GCP function to translate text into LO

#create a gcp project https://console.cloud.google.com/projectcreate

#activate AI google service and create a api key https://aistudio.google.com/apikey

#create a function using java 17

#copy paste the java file and the pom.xml into the cloud function editor

#change the API key in TranslateMailHttpFunction.java

One record server on GCP

In parallel we have started a documentation the launch one record server on a cloud function by building a docker image and pushing it in the google cloud artifact registry.

Setup One Record server on GCP using Google run

#create a gcp project https://console.cloud.google.com/projectcreate

#open shell https://console.cloud.google.com/cloudshelleditor

#check docker-compose version [we need v2+]

docker-composer -v

#if the result is under 2, please follow the next block, otherwise please go to 'get one record server'

#update docker compose

sudo rm /usr/local/bin/docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/v2.33.1/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

#get one record server

git clone https://gitlab.com/iata-cargo/one-record-server-first-steps.git
cd /one-record-server-first-steps/docker-compose

#create the docker image

docker-compose build
docker tag docker-compose-ne-one-play gcr.io/iata-hackathon-dublin/docker-compose-ne-one-play:latest
gcloud auth configure-docker
docker push gcr.io/iata-hackathon-dublin/docker-compose-ne-one-play:latest

#instanciate google run instance https://console.cloud.google.com/run/create

#select Artifact Registry gcr.io/iata-hackathon-dublin/docker-compose-ne-one-play:latest

Bruno collections

  • "bruno collections\dublin\Hackathon-dublin" : Forwarder and Carrier request to create LO
  • "bruno collections\dublin\Hackathon-dublin" : contains the request to reach the cloud function to translate text into object and gemini request

The configuration is done, it should works !

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

cloud function on Azure & postman collections

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0