This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
# Grab cached M2 repo | |
- name: gcr.io/cloud-builders/gsutil | |
id: Get M2 Cache | |
args: ['cp', 'gs://BUCKET_NAME/m2.tar.gz', 'm2.tar.gz'] | |
# See https://github.com/GoogleCloudPlatform/cloud-builders-community to get the tar command | |
- name: gcr.io/PROJECT_ID/tar | |
id: Expand M2 Cache | |
args: ['xpzf', 'm2.tar.gz'] | |
# Optional, we had some extra settings to include |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
package_update: true | |
manage_resolv_conf: true | |
resolv_conf: | |
nameservers: | |
- '8.8.8.8' | |
- '8.8.4.4' | |
- '1.1.1.1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* MIT License | |
* | |
* Copyright (c) 2023-2024 Fabio Lima | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package unfiltered_cloud_function | |
import com.google.cloud.functions.{HttpFunction, HttpRequest, HttpResponse} | |
import java.io.OutputStream | |
import scala.jdk.CollectionConverters._ | |
import java.util.Collections | |
object Converter { | |
def request(req: HttpRequest): unfiltered.request.HttpRequest[HttpRequest] = | |
new unfiltered.request.HttpRequest[HttpRequest](req) { |
OlderNewer