Skip to content

Commit b2e303f

Browse files
authored
feat: create a dockerfile for PDK development (#724)
1 parent 984d71e commit b2e303f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

docker/Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM public.ecr.aws/lambda/nodejs:20
2+
3+
RUN dnf repolist --enabled
4+
RUN dnf install -y automake findutils g++ gcc git gzip make maven python3.11 python3.11-pip tar unzip which wget
5+
RUN git config --global user.email "[email protected]" && git config --global user.name "PDK Build Job"
6+
RUN ln -sf /usr/bin/python3.11 /usr/bin/python
7+
ENV LD_LIBRARY_PATH=""
8+
9+
# NPM Dependencies
10+
RUN npm install -g @aws/pdk aws-cdk bun pnpm projen yarn
11+
12+
# Poetry setup
13+
RUN curl -sSL https://install.python-poetry.org | python
14+
ENV PATH="/root/.local/bin:$PATH"
15+
16+
# JDK
17+
RUN dnf -y install java-17-amazon-corretto-devel
18+
19+
# Graphviz
20+
RUN dnf -y install graphviz
21+
22+
# License Finder
23+
RUN dnf -y install rubygems ruby
24+
RUN gem install license_finder
25+
26+
# Open API Generator
27+
RUN mkdir -p ~/.open-api-generator-cli
28+
RUN curl https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.3.0/openapi-generator-cli-6.3.0.jar -o ~/.open-api-generator-cli/6.3.0.jar
29+
RUN curl https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.1.0/openapi-generator-cli-7.1.0.jar -o ~/.open-api-generator-cli/7.1.0.jar
30+
RUN curl https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/6.6.0/openapi-generator-cli-6.6.0.jar -o ~/.open-api-generator-cli/6.6.0.jar
31+
32+
CMD ["/bin/bash"]

docker/dockerbuild.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
docker buildx build . -t aws-pdk --platform linux/amd64
4+
docker tag aws-pdk:latest public.ecr.aws/p9i6h6j0/aws-pdk:latest
5+
docker push public.ecr.aws/p9i6h6j0/aws-pdk:latest

0 commit comments

Comments
 (0)