File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 run : |
3131 echo "${{ secrets.GHCR_PAT }}" > github_token
3232 export DOCKER_BUILDKIT=1
33- docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base :tiny -f tiny.Dockerfile .
34- docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base :slim -f slim.Dockerfile .
35- docker build --progress=plain --secret id=github_token,src=github_token -t lambda-shell-base :full -f Dockerfile .
33+ docker build --load -- progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime :tiny -f tiny.Dockerfile .
34+ docker build --load -- progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime :slim -f slim.Dockerfile .
35+ docker build --load -- progress=plain --secret id=github_token,src=github_token -t lambda-shell-runtime :full -f Dockerfile .
3636 shell : bash
3737 - run : npx semantic-release
3838 env :
Original file line number Diff line number Diff line change @@ -18,21 +18,21 @@ Each runtime variant has its own Dockerfile:
1818
1919``` bash
2020# Build tiny
21- docker build -f tiny.Dockerfile -t lambda-shell-base :tiny .
21+ docker build -f tiny.Dockerfile -t lambda-shell-runtime :tiny .
2222
2323# Build slim
24- docker build -f slim.Dockerfile -t lambda-shell-base :slim .
24+ docker build -f slim.Dockerfile -t lambda-shell-runtime :slim .
2525
2626# Build full
27- docker build -f Dockerfile -t lambda-shell-base :full .
27+ docker build -f Dockerfile -t lambda-shell-runtime :full .
2828```
2929
3030## Usage
3131
3232To use this runtime in your own Lambda container image:
3333
3434``` Dockerfile
35- FROM ghcr.io/ql4b/lambda-shell-base :tiny
35+ FROM ghcr.io/ql4b/lambda-shell-runtime :tiny
3636
3737WORKDIR /var/task
3838
@@ -51,7 +51,7 @@ docker run -d \
5151 -p 9000:8080 \
5252 --env HANDLER=" handler.hello" \
5353 --entrypoint /aws-lambda/aws-lambda-rie \
54- lambda-shell-base :tiny \
54+ lambda-shell-runtime :tiny \
5555 /var/runtime/bootstrap
5656
5757curl -XPOST " http://localhost:9000/2015-03-31/functions/function/invocations" -d ' {}'
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ for VARIANT in $VARIANTS; do
4242 docker buildx build \
4343 --platform "$PLATFORM" \
4444 --secret id=github_token,env=GITHUB_TOKEN \
45- --tag lambda-shell-base :$VARIANT \
45+ --tag lambda-shell-runtime :$VARIANT \
4646 --file "$DOCKERFILE" \
4747 $MODE \
4848 ./base
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ VERSION="$1"
66echo " Publishing Docker images with version $VERSION "
77
88for VARIANT in tiny slim full; do
9- BASE_IMAGE=" ghcr.io/ql4b/lambda-shell-base "
9+ BASE_IMAGE=" ghcr.io/ql4b/lambda-shell-runtime "
1010 TAG=" $VERSION -$VARIANT "
11- docker tag lambda-shell-base :$VARIANT " $BASE_IMAGE :$TAG "
12- docker tag lambda-shell-base :$VARIANT " $BASE_IMAGE :$VARIANT -latest"
11+ docker tag lambda-shell-runtime :$VARIANT " $BASE_IMAGE :$TAG "
12+ docker tag lambda-shell-runtime :$VARIANT " $BASE_IMAGE :$VARIANT -latest"
1313 docker push " $BASE_IMAGE :$TAG "
1414 docker push " $BASE_IMAGE :$VARIANT -latest"
1515done
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ docker run \
1515 --volume ~ /.aws-lambda-rie:/aws-lambda \
1616 --entrypoint /aws-lambda/aws-lambda-rie \
1717 --env HANDLER=" handler.hello" \
18- lambda-shell-base :tiny \
18+ lambda-shell-runtime :tiny \
1919 /var/runtime/bootstrap
2020
2121# Invoke test: basic curl request
You can’t perform that action at this time.
0 commit comments