How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • // This example available in TypeScript only
    
    import { DockerImageAsset } from '@aws-cdk/aws-ecr-assets';
    import * as ecrdeploy from 'cdk-ecr-deployment';
    
    const image = new DockerImageAsset(this, 'CDKDockerImage', {
      directory: path.join(__dirname, 'docker'),
    });
    
    new ecrdeploy.ECRDeployment(this, 'DeployDockerImage', {
      src: new ecrdeploy.DockerImageName(image.imageUri),
      dest: new ecrdeploy.DockerImageName(`${cdk.Aws.ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com/test:nginx`),
    });
    
    Docs
  • import * as assets from '@aws-cdk/aws-ecr-assets';
    
    const imageAsset = new assets.DockerImageAsset(this, 'ImageAssets', {
      directory: path.join(__dirname, './docker.assets'),
    });
    new apprunner.Service(this, 'Service', {
      source: apprunner.Source.fromAsset({
        imageConfiguration: { port: 8000 },
        asset: imageAsset,
      }),
    });
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as assets from '@aws-cdk/assets';
    import * as apigateway from '@aws-cdk/aws-apigateway';
    import * as iam from '@aws-cdk/aws-iam';
    import * as cdk from '@aws-cdk/core';
    
    declare const dockerImage: cdk.DockerImage;
    declare const grantable: iam.IGrantable;
    declare const localBundling: cdk.ILocalBundling;
    const assetApiDefinition = new apigateway.AssetApiDefinition('path', /* all optional props */ {
      assetHash: 'assetHash',
      assetHashType: cdk.AssetHashType.SOURCE,
      bundling: {
        image: dockerImage,
    
        // the properties below are optional
        command: ['command'],
        entrypoint: ['entrypoint'],
        environment: {
          environmentKey: 'environment',
        },
        local: localBundling,
        outputType: cdk.BundlingOutput.ARCHIVED,
        securityOpt: 'securityOpt',
        user: 'user',
        volumes: [{
          containerPath: 'containerPath',
          hostPath: 'hostPath',
    
          // the properties below are optional
          consistency: cdk.DockerVolumeConsistency.CONSISTENT,
        }],
        workingDirectory: 'workingDirectory',
      },
      exclude: ['exclude'],
      follow: assets.FollowMode.NEVER,
      followSymlinks: cdk.SymlinkFollowMode.NEVER,
      ignoreMode: cdk.IgnoreMode.GLOB,
      readers: [grantable],
      sourceHash: 'sourceHash',
    });
    
    Docs
  • import { DockerImageAsset } from '@aws-cdk/aws-ecr-assets';
    
    const asset = new DockerImageAsset(this, 'MyBuildImage', {
      directory: path.join(__dirname, 'my-image'),
    });
    
    Docs
  • import { DockerImageAsset } from '@aws-cdk/aws-ecr-assets';
    
    const asset = new DockerImageAsset(this, 'MyBuildImage', {
      directory: path.join(__dirname, 'my-image'),
      target: 'a-target',
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples