Skip to content

Commit

Permalink
update codebuild base to al2023
Browse files Browse the repository at this point in the history
  • Loading branch information
jshihstsci committed Nov 8, 2024
1 parent ab3a095 commit e9617ea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions iac/codebuild/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
# See the License for the specific language governing permissions and limitations under the License.

FROM public.ecr.aws/amazonlinux/amazonlinux:2
FROM public.ecr.aws/amazonlinux/amazonlinux:2023

ENV AWS_DEFAULT_REGION="us-east-1"
ARG aws_env
Expand All @@ -18,12 +18,13 @@ ARG CALCLOUD_VER
# Install git, SSH, and other utilities
RUN set -ex \
&& yum update -y --security \
&& yum install -y gcc libpng-devel libjpeg-devel unzip yum-utils \
&& yum install -y gcc libpng-devel libjpeg-devel unzip yum-utils \
&& yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo \
&& yum install terraform-1.0.11 -y \
&& yum install git -y \
&& yum install tar wget python3 which -y

&& yum install tar wget python3 which -y \
&& yum install python3-pip -y

RUN mkdir -p /etc/ssl/certs && \
mkdir -p /etc/pki/ca-trust/source/anchors

Expand All @@ -44,7 +45,7 @@ RUN npm install n -g

RUN npm config set registry http://registry.npmjs.org/ && \
npm install -g [email protected]

RUN pip3 install awscli

COPY calcloud_checkout.sh /root/
Expand All @@ -53,5 +54,4 @@ RUN chmod +x /root/calcloud_checkout.sh && /root/calcloud_checkout.sh

COPY log_listener.py /root/

ENTRYPOINT [ "/bin/bash", "-l", "-c" ]

ENTRYPOINT [ "/bin/bash", "-l", "-c" ]

0 comments on commit e9617ea

Please sign in to comment.