Skip to content

Commit 5c50562

Browse files
committed
fix: fix base image names and tags
1 parent 51db3f7 commit 5c50562

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
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:

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

3232
To 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

3737
WORKDIR /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

5757
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'

build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

scripts/publish

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ VERSION="$1"
66
echo "Publishing Docker images with version $VERSION"
77

88
for 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"
1515
done

test/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)