Skip to content

Commit

Permalink
Update dockerfile for x86_64 aws cli and lamda publish path for .net 7
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissimon-au committed Jan 12, 2024
1 parent fc5dcbb commit 41bc385
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# [Optional] Uncomment this line to install global node packages.
RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g aws-cdk-local aws-cdk" 2>&1

RUN sudo curl https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip -o /tmp/awscliv2.zip && \
RUN sudo curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awscliv2.zip && \
unzip /tmp/awscliv2.zip -d /tmp && \
/tmp/aws/install

Expand Down
1 change: 1 addition & 0 deletions src/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,4 @@ open Fake.Core.TargetOperators

// *** Start Build ***
Target.runOrDefault "Cloud-Api-Test"
// Target.runOrDefault "Cdk-Bootstrap-Local"
2 changes: 1 addition & 1 deletion src/cloud/src/Contextive.Cloud/LambdaFunctions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let props construct name entryPointModule (definitions: IBucket) (eventBus: IEve

FunctionProps(
Runtime = Runtime.DOTNET_6,
Code = Code.FromAsset(assemblyPath "../../../../Contextive.Cloud.Api/bin/Debug/net6.0/linux-x64/publish"),
Code = Code.FromAsset(assemblyPath "../../../../Contextive.Cloud.Api/bin/Debug/net7.0/linux-x64/publish"),
Handler = $"Contextive.Cloud.Api::{entryPointModule}::FunctionHandlerAsync",
Description = $"Contextive {name}",
MemorySize = Nullable<float>(256.0),
Expand Down

0 comments on commit 41bc385

Please sign in to comment.