Skip to content

Commit 07937c7

Browse files
authored
Deploy linehaul.rs to lambda (#39)
1 parent a2af6c3 commit 07937c7

File tree

13 files changed

+2291
-1
lines changed

13 files changed

+2291
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.terraform
2+
lambda-deployer/target

Makefile

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1+
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
2+
13
default:
24
echo "What should this do?"
35

46

57
k8s:
68
@$(MAKE) -C k8s
79

10+
lambda-deployer.zip:
11+
docker build -t lambda-deployer-build lambda-deployer
12+
docker run --rm -v $(ROOT_DIR)/lambda-deployer:/usr/local/src/lambda-deployer -it lambda-deployer-build \
13+
cargo build --release --target x86_64-unknown-linux-musl
14+
zip -j lambda-deployer/target/x86_64-unknown-linux-musl/release/lambda-deployer.zip \
15+
lambda-deployer/target/x86_64-unknown-linux-musl/release/bootstrap
16+
17+
terraform: lambda-deployer.zip
18+
cd terraform; terraform init
19+
cd terraform; terraform apply
20+
821

9-
.PHONY: k8s
22+
.PHONY: k8s terraform lambda-deployer.zip

lambda-deployer/.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

0 commit comments

Comments
 (0)