File tree Expand file tree Collapse file tree 5 files changed +24
-14
lines changed Expand file tree Collapse file tree 5 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/vscode/devcontainers/rust
22
3- RUN sudo apt-get update -y && \
4- sudo apt-get upgrade -y && \
5- sudo apt-get install zip musl-tools -y
3+ RUN sudo apt-get update -y \
4+ && sudo apt-get upgrade -y \
5+ && sudo apt-get install zip musl-tools ltrace -y
66
7- RUN rustup update && \
8- rustup target add x86_64-unknown-linux-musl
7+ RUN rustup update \
8+ && rustup target add x86_64-unknown-linux-musl
99
1010RUN sudo apt-get install -y nodejs
1111
12- RUN cd /tmp && \
13- curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip > aws-sam-cli-linux-x86_64.zip && \
14- unzip aws-sam-cli-linux-x86_64.zip -d sam-installation && \
15- rm -rf aws-sam-cli-linux-x86_64.zip && \
16- sudo ./sam-installation/install
12+ RUN cd /tmp \
13+ && curl -L https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip > aws-sam-cli-linux-x86_64.zip \
14+ && unzip aws-sam-cli-linux-x86_64.zip -d sam-installation \
15+ && rm -rf aws-sam-cli-linux-x86_64.zip \
16+ && sudo ./sam-installation/install
Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## Unreleased
9+
10+ ### Added
11+
12+ - ` ltrace ` for debugging
13+
14+ ### Changed
15+
16+ - Use ` scratch ` base instead of ` alpine ` for smaller lambda extension images.
17+
818## [ 0.94.0] - 2022-10-03
919
1020Schedule release. No changes.
Original file line number Diff line number Diff line change 1- FROM alpine
1+ FROM scratch
22LABEL org.opencontainers.image.source "https://github.com/customink/crypteia"
33LABEL org.opencontainers.image.description "Rust Lambda Extension for any Runtime to preload SSM Parameters as Secure Environment Variables!"
44COPY ./package/opt /opt
Original file line number Diff line number Diff line change 1- FROM alpine
1+ FROM scratch
22LABEL org.opencontainers.image.source "https://github.com/customink/crypteia"
33LABEL org.opencontainers.image.description "Rust Lambda Extension for any Runtime to preload SSM Parameters as Secure Environment Variables!"
44COPY ./package/opt /opt
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ echo "============================="
1414echo " == Simulating crypteia binary JSON write =="
1515echo ' {
1616 "SECRET": "1A2B3C4D5E6F",
17- "ACCESS_KEY": "G7H8I9J0K1L2",
17+ "ACCESS_KEY": "G7H8I9J0K1L2",
1818 "DB_URL": "mysql2://u:p@host:3306",
1919 "NR_KEY": "z6y5x4w3v2u1"
2020}' > $CRYPTEIA_ENV_FILE
@@ -38,7 +38,7 @@ assert "./test/libcrypteia/_envfile.sh" \
3838
3939assert " ./test/libcrypteia/empty-${TEST_LANG} .sh" \
4040 " undefined"
41-
41+
4242assert " ./test/libcrypteia/fullpath-${TEST_LANG} .sh" \
4343 " x-crypteia-ssm-path:/crypteia/v5/myapp/envs" \
4444 " Because not replaced by a single env var."
You can’t perform that action at this time.
0 commit comments