Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ubuntu 18.04 image for testing older GCC #547

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/build_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ pushd "${REPO_ROOT}/docker" &>/dev/null
docker build -t rust:linux-386 linux-386 --load "${EXTRA_ARGS[@]}"
docker build -t rust:linux-arm64 linux-arm64 --load "${EXTRA_ARGS[@]}"
docker build -t rust:linux-x86_64 linux-x86_64 --load "${EXTRA_ARGS[@]}"
docker build -t ubuntu:18.04 ubuntu-18.04 --load "${EXTRA_ARGS[@]}"
popd &>/dev/null
34 changes: 34 additions & 0 deletions docker/ubuntu-18.04/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0 OR ISC

FROM --platform=linux/amd64 ubuntu:18.04

SHELL ["/bin/bash", "-c"]

ARG GOPROXY=direct

RUN apt-get update && \
apt-get install -y ca-certificates && \
apt-get install -y cmake curl sudo && \
apt-get install -y --no-install-recommends gpg-agent software-properties-common && \
add-apt-repository --yes ppa:longsleep/golang-backports && \
add-apt-repository --yes --update ppa:ubuntu-toolchain-r/test && \
apt-add-repository --yes ppa:git-core/ppa && \
apt-get update && \
apt-get install --assume-yes --no-install-recommends build-essential git cmake golang-go clang gcc-4.8 gcc-5 gcc-6 && \
git config --global --add safe.directory '*' && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > ./rustup.sh && \
chmod +x ./rustup.sh && \
./rustup.sh -y && \
. "$HOME/.cargo/env" && \
rustup component add rustfmt clippy && \
rm ./rustup.sh && \
cargo install rust-script && \
apt-get autoremove --purge -y && \
apt-get clean && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*

ENV CC=gcc-6
ENV CXX=g++-6
Loading