Skip to content

Commit

Permalink
fix(deadline): Fix Python bindings of ThinkboxDockerImages (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddneilson committed Oct 28, 2022
1 parent 2f754da commit b283e67
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ These instructions assume that your working directory is `examples/deadline/All-
```bash
# Navigate to the root directory of the RFDK repository
pushd ../../../..
# Enter the Docker container to run the build and pack scripts
./scripts/rfdk_build_environment.sh
./build.sh
# Enter the Docker container to run the pack scripts
./scripts/rfdk_build_environment.sh
./pack.sh
# Exit the Docker container
exit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __init__(self, scope: Construct, stack_id: str, *, props: ServiceTierProps,
vpc_subnets_alb=SubnetSelection(
subnet_group_name=subnets.RENDER_QUEUE_ALB.name
),
images=images,
images=images.for_render_queue(),
repository=repository,
hostname=RenderQueueHostNameProps(
hostname='renderqueue',
Expand Down Expand Up @@ -232,7 +232,7 @@ def __init__(self, scope: Construct, stack_id: str, *, props: ServiceTierProps,
vpc_subnets=SubnetSelection(
subnet_group_name=subnets.USAGE_BASED_LICENSING.name
),
images=images,
images=images.for_usage_based_licensing(),
licenses=props.ubl_licenses,
render_queue=self.render_queue,
certificate_secret=ubl_cert_secret,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ These instructions assume that your working directory is `examples/deadline/All-
```bash
# Navigate to the root directory of the RFDK repository (assumes you started in the example's directory)
pushd ../../../..
# Enter the Docker container, run the build, and then exit
./scripts/rfdk_build_environment.sh
./build.sh
exit
# Navigate back to the example directory
popd
# Run the example's build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"typescript": "~4.7.3"
},
"dependencies": {
"aws-cdk-lib": "^2.33.0",
"aws-cdk-lib": "2.33.0",
"aws-rfdk": "1.0.0",
"source-map-support": "^0.5.21"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ These instructions assume that your working directory is `examples/deadline/All-
```bash
# Navigate to the root directory of the RFDK repository
pushd ../../../..
# Enter the Docker container to run the build and pack scripts
./scripts/rfdk_build_environment.sh
./build.sh
# Enter the Docker container to run thepack scripts
./scripts/rfdk_build_environment.sh
./pack.sh
# Exit the Docker container
exit
Expand Down
3 changes: 0 additions & 3 deletions examples/deadline/All-In-AWS-Infrastructure-SEP/ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ These instructions assume that your working directory is `examples/deadline/All-
```bash
# Navigate to the root directory of the RFDK repository (assumes you started in the example's directory)
pushd ../../../..
# Enter the Docker container, run the build, and then exit
./scripts/rfdk_build_environment.sh
./build.sh
exit
# Navigate back to the example directory
popd
# Run the example's build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"typescript": "~4.7.3"
},
"dependencies": {
"aws-cdk-lib": "^2.33.0",
"aws-cdk-lib": "2.33.0",
"aws-rfdk": "1.0.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
Expand Down
4 changes: 2 additions & 2 deletions examples/deadline/EC2-Image-Builder/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ These instructions assume that your working directory is `examples/deadline/EC2-
```bash
# Navigate to the root directory of the RFDK repository
pushd ../../../..
# Enter the Docker container to run the build and pack scripts
./scripts/rfdk_build_environment.sh
./build.sh
# Enter the Docker container to run the pack scripts
./scripts/rfdk_build_environment.sh
./pack.sh
# Exit the Docker container
exit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(self, scope: Construct, stack_id: str, *, props: BaseFarmStackProps
'RenderQueue',
vpc=self.vpc,
version=version,
images=images,
images=images.for_render_queue(),
repository=repository,
deletion_protection=False,
)
3 changes: 0 additions & 3 deletions examples/deadline/EC2-Image-Builder/ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ These instructions assume that your working directory is `examples/deadline/EC2-
```bash
# Navigate to the root directory of the RFDK repository (assumes you started in the example's directory)
pushd ../../../..
# Enter the Docker container, run the build, and then exit
./scripts/rfdk_build_environment.sh
./build.sh
exit
# Navigate back to the example directory
popd
# Run the example's build
Expand Down
2 changes: 1 addition & 1 deletion examples/deadline/EC2-Image-Builder/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"typescript": "~4.7.3"
},
"dependencies": {
"aws-cdk-lib": "^2.33.0",
"aws-cdk-lib": "2.33.0",
"aws-rfdk": "1.0.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
Expand Down
2 changes: 1 addition & 1 deletion examples/deadline/Local-Zone/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ These instructions assume that your working directory is `examples/deadline/Loca
```bash
# Navigate to the root directory of the RFDK repository
pushd ../../../..
./build.sh
# Enter the Docker container to run the build and pack scripts
./scripts/rfdk_build_environment.sh
./build.sh
./pack.sh
# Exit the Docker container
exit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, scope: Construct, stack_id: str, *, props: ServiceTierProps,
self,
'RenderQueue',
vpc=props.vpc,
images=images,
images=images.for_render_queue(),
repository=repository,
hostname=RenderQueueHostNameProps(
hostname='renderqueue',
Expand Down
3 changes: 0 additions & 3 deletions examples/deadline/Local-Zone/ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ These instructions assume that your working directory is `examples/deadline/Loca
```bash
# Navigate to the root directory of the RFDK repository (assumes you started in the example's directory)
pushd ../../../..
# Enter the Docker container, run the build, and then exit
./scripts/rfdk_build_environment.sh
./build.sh
exit
# Navigate back to the example directory
popd
# Run the example's build
Expand Down
2 changes: 1 addition & 1 deletion examples/deadline/Local-Zone/ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"typescript": "~4.7.3"
},
"dependencies": {
"aws-cdk-lib": "^2.33.0",
"aws-cdk-lib": "2.33.0",
"aws-rfdk": "1.0.0",
"constructs": "^10.0.0",
"source-map-support": "^0.5.21"
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-rfdk/lib/deadline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ const repository = new Repository(stack, 'Repository', { /* ...*/});

const renderQueue = new RenderQueue(stack, 'RenderQueue', {
vpc: vpc,
images: images,
images: images.forRenderQueue(),
version: version,
repository: repository,
});
Expand Down
8 changes: 6 additions & 2 deletions packages/aws-rfdk/lib/deadline/lib/thinkbox-docker-images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,18 @@ USER_ACCEPTS_AWS_CUSTOMER_AGREEMENT_AND_IP_LICENSE to signify your acceptance of
* Returns container images for use with the {@link RenderQueue} construct
*/
public forRenderQueue(): RenderQueueImages {
return this;
return {
remoteConnectionServer: this.remoteConnectionServer,
};
}

/**
* Returns container images for use with the {@link UsageBasedLicensing} construct
*/
public forUsageBasedLicensing(): UsageBasedLicensingImages {
return this;
return {
licenseForwarder: this.licenseForwarder,
};
}

/**
Expand Down

0 comments on commit b283e67

Please sign in to comment.