Skip to content

Instantly share code, notes, and snippets.

#[async_trait]
impl ContainerEngine for PodmanEngine {
async fn ping(&self) -> CliResult<()> {
let ping_info = self.podman.ping().await?;
dbg!(&ping_info);
Ok(())
}
async fn missing_containers(&self) -> Result<Vec<String>, SiCliError> {
todo!()
{
"version": 3,
"deployment": {
"manifest": {
"time": "2022-06-06T12:33:12.829159+03:00",
"magic": "e76047f7ace705d6449c16216c797ffbac14cdae65c525ae42f2fa11a1212b0e",
"version": "v3.33.1"
},
"secrets_providers": {
"type": "service",
// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
import * as docker from "@pulumi/docker";
import * as pulumi from "@pulumi/pulumi";
import * as containerregistry from "@pulumi/azure-native/containerregistry";
import * as operationalinsights from "@pulumi/azure-native/operationalinsights";
import * as resources from "@pulumi/azure-native/resources";
import * as app from "@pulumi/azure-native/app";
import * as pulumi from "@pulumi/pulumi";
import * as random from "@pulumi/random";
const username = new random.RandomString("my-string", {
length: 16,
special: true,
}, {
// RandomString has an output of 'result' where the string actually is stored
additionalSecretOutputs: ["result"]
});
siteBucket, err := s3.NewBucket(ctx, "s3-website-bucket", &s3.BucketArgs{
Website: s3.BucketWebsiteArgs{
IndexDocument: pulumi.String("index.html"),
},
})
if err != nil {
return err
}
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bucket = new aws.s3.Bucket("my-bucket");
export const bucketArn = bucket.arn;
// Here it is important to point out that we autoname!!
// We can override that using the `bucket` property
object Project : Project({
id("PlatformApps_SJC1_DC1")
name = "Region: SJC1 DC1"
description = "SJC1 DC1"
val vmCanary = Canary(
PlatformAppParams(
id = "PlatformApps_SJC1_DC1_Canary_VM_Deploy",
name = "Deploy Canary VM",
templateName = "plat-canary-vm",
func (f *Future) WaitForCompletionRef(ctx context.Context, client autorest.Client) error {
ctx, cancel := context.WithTimeout(ctx, client.PollingDuration)
defer cancel()
done, err := f.Done(client)
for attempts := 0; !done; done, err = f.Done(client) {
if attempts >= client.RetryAttempts {
return autorest.NewErrorWithError(err, "Future", "WaitForCompletion", f.pt.latestResponse(), "the number of retries has been exceeded")
}
// we want delayAttempt to be zero in the non-error case so
// that DelayForBackoff doesn't perform exponential back-off
Cobra: &cobra.Command{
Use: "create",
Short: "create a triton instance",
SilenceUsage: true,
Args: cobra.NoArgs,
PreRunE: func(cmd *cobra.Command, args []string) error {
if cfg.GetMachineName() == "" {
return errors.New("Name must be specified for Create Instance")
}
#!/usr/bin/env bash
echo "##teamcity[buildNumber '%teamcity.agent.name%-go%VERSION%']"
cd /mnt/goroots
wget https://storage.googleapis.com/golang/go%BUILDVERSION%.linux-amd64.tar.gz
tar xzf go%BUILDVERSION%.linux-amd64.tar.gz
rm go%BUILDVERSION%.linux-amd64.tar.gz
git clone https://go.googlesource.com/go /mnt/goroots/go%VERSION%