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

Docker Images Update #126

Merged
merged 70 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
8ed387c
edit Dockerfile with ecr account url
RogerZhongAWS Jan 17, 2023
b792fa3
Update base-images.yml
RogerZhongAWS Jan 17, 2023
1518e7a
Update Dockerfile
RogerZhongAWS Jan 17, 2023
f197c3c
Update Dockerfile
RogerZhongAWS Jan 17, 2023
79d87b5
Update base-images.yml
RogerZhongAWS Jan 18, 2023
e39ff93
separate boost install into two steps
RogerZhongAWS Jan 18, 2023
264a386
use dockerfile from device client integration test repo
RogerZhongAWS Jan 19, 2023
a033806
add missing line in dockerfile
RogerZhongAWS Jan 19, 2023
9a017bb
Update base-images.yml
RogerZhongAWS Jan 19, 2023
8850975
ubi8 and amazonlinux docker images
RogerZhongAWS Jan 20, 2023
a1b6fd6
update cmake and python packages
RogerZhongAWS Jan 20, 2023
2f990de
fix errors
RogerZhongAWS Jan 20, 2023
e8c420c
copy old dockerfile
RogerZhongAWS Jan 20, 2023
893aeda
fix openssl
RogerZhongAWS Jan 20, 2023
ee873d7
optimize Dockerfiles
RogerZhongAWS Jan 20, 2023
aa39ddb
fix amazonlinux dockerfile
RogerZhongAWS Jan 20, 2023
3dcc81b
all base and release images
RogerZhongAWS Feb 21, 2023
d1cf456
oss compliance script
RogerZhongAWS Feb 22, 2023
327f1b8
add attribution doc, fix script
RogerZhongAWS Feb 22, 2023
021d8cb
update boost to 1.81, fixed build scripts
RogerZhongAWS Feb 22, 2023
713fc21
build new base images
RogerZhongAWS Feb 22, 2023
78443cb
add libatomic, fix binary copy step
RogerZhongAWS Feb 22, 2023
426c1a8
cd to working directory
RogerZhongAWS Feb 23, 2023
676ca7e
Delete build-from-source-package-licenses.txt
RogerZhongAWS Feb 23, 2023
a479c87
add staged fedora builds, fixed oss script
RogerZhongAWS Feb 23, 2023
66c368d
fix typo in workflow
RogerZhongAWS Feb 23, 2023
d0329d2
add needs specifier for previous stage
RogerZhongAWS Feb 23, 2023
2d0d520
combined ubuntu and debian, restructured repo
RogerZhongAWS Mar 1, 2023
7d3570a
delete debian Dockerfile
RogerZhongAWS Mar 1, 2023
eefd750
restarting image builds
RogerZhongAWS Mar 1, 2023
2b92bcf
switch to public repo
RogerZhongAWS Mar 2, 2023
277cb99
fix docker login
RogerZhongAWS Mar 2, 2023
2ed38ef
fix login command
RogerZhongAWS Mar 2, 2023
e4db995
fix repo full name
RogerZhongAWS Mar 2, 2023
70c12ea
fix syntax error
RogerZhongAWS Mar 2, 2023
9c96be1
update README
RogerZhongAWS Mar 3, 2023
a8cd42d
update image tag to include platform
RogerZhongAWS Mar 15, 2023
1d9bf78
rename image tags with platform
RogerZhongAWS Mar 15, 2023
a994588
fix tagging, update README
RogerZhongAWS Mar 15, 2023
088f33a
update build-args with arch
RogerZhongAWS Mar 15, 2023
41c78ee
fix docker entrypoint
RogerZhongAWS Mar 20, 2023
8930960
pin version to 3.0.2
RogerZhongAWS Mar 20, 2023
506a82d
Revert "openssl install run tests"
RogerZhongAWS Mar 21, 2023
4d0289c
fix release image tagging
RogerZhongAWS Mar 22, 2023
5faa0ed
fix tagging
RogerZhongAWS Mar 23, 2023
ba09678
openssl 3.0.8 in release images
RogerZhongAWS Mar 25, 2023
c2ac27c
fix release image
RogerZhongAWS Mar 25, 2023
ba07fa1
get openssl 3 from package manager
RogerZhongAWS Mar 28, 2023
f75a94b
openssl use static libs
RogerZhongAWS Mar 28, 2023
cae8dba
remove curl install
RogerZhongAWS Mar 28, 2023
bcefa19
remove symlink for cmake
RogerZhongAWS Apr 5, 2023
113210e
temporary solution for ubuntu-bin image
RogerZhongAWS Apr 14, 2023
50781b6
fix ecr image tagging
RogerZhongAWS Mar 28, 2024
65aa383
fix docker image tagging
RogerZhongAWS Mar 28, 2024
be63608
fix script error
RogerZhongAWS Mar 28, 2024
9eeba67
add manual openssl 3 install
RogerZhongAWS Mar 28, 2024
0f43a93
add perl dependency
RogerZhongAWS Mar 28, 2024
0d95d6b
install full perl packagge
RogerZhongAWS Mar 28, 2024
31a97f9
test boost 1.84
RogerZhongAWS Mar 28, 2024
6a9e5fb
fix openssl install
RogerZhongAWS Mar 28, 2024
081ff44
add includes for gcc13
RogerZhongAWS Mar 28, 2024
0595429
add link ldl lib
RogerZhongAWS Mar 28, 2024
58e1af8
pin ubuntu version to 22.04
RogerZhongAWS Mar 28, 2024
3d93c4c
upgrade boost to 1.84 in al2023
RogerZhongAWS Mar 28, 2024
0cec11b
rollback boost to 1.81
RogerZhongAWS Mar 28, 2024
cbd31e5
add specific dockerfiles for building the bin image
RogerZhongAWS Mar 29, 2024
c8ea10c
remove update ca store
RogerZhongAWS Mar 29, 2024
c73249a
add os-specfic commands for updating ca-trust store
RogerZhongAWS Mar 29, 2024
e234f8c
remove main as trigger branch for base image builds
RogerZhongAWS Mar 29, 2024
e89066b
update README
RogerZhongAWS Mar 29, 2024
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
3 changes: 2 additions & 1 deletion .github/docker-images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FROM ${BASE_IMAGE} AS deploy
###############################################################################
# Copy and build local proxy
###############################################################################

COPY . /root/aws-iot-securetunneling-localproxy
RUN mkdir -p /root/aws-iot-securetunneling-localproxy/build \
&& cd /root/aws-iot-securetunneling-localproxy/build \
Expand All @@ -23,4 +24,4 @@ RUN HOME_DIR=/root \
&& bash ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh ${HOME_DIR} \
&& rm -rf ${HOME_DIR}/oss-compliance*

ENTRYPOINT ["/root/bin"]
ENTRYPOINT ["/root/bin/localproxy"]
28 changes: 13 additions & 15 deletions .github/docker-images/base-images/amazonlinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
FROM amazonlinux:latest as base
ARG OPENSSL_CONFIG
FROM amazonlinux:2023 as base

# Install Prerequisites

RUN yum check-update; yum upgrade -y && \
yum install -y git boost-devel autoconf automake \
wget libtool curl make gcc-c++ unzip cmake3 python-devel openssl11-devel which
yum install -y git boost-devel autoconf automake libatomic perl \
wget libtool make gcc-c++ unzip cmake3 python-devel openssl-devel which

# Install Dependencies

RUN ln -s /usr/bin/cmake3 /usr/bin/cmake
RUN mkdir /home/dependencies

WORKDIR /home/dependencies
RUN wget https://www.openssl.org/source/openssl-3.0.12.tar.gz \
&& tar xzvf openssl-3.0.12.tar.gz \
&& cd openssl-3.0.12 \
&& ./config \
&& make \
&& make install

WORKDIR /home/dependencies
RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
Expand All @@ -21,9 +27,9 @@ RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.
make install

WORKDIR /home/dependencies
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz -O /tmp/boost.tar.gz && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
cd boost_1_84_0 && \
./bootstrap.sh && \
./b2 install link=static

Expand All @@ -37,14 +43,6 @@ RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/p
make && \
make install

WORKDIR /home/dependencies
RUN git clone https://github.com/openssl/openssl.git && \
cd openssl && \
git checkout OpenSSL_1_1_1-stable && \
./config && \
make depend && \
make all

WORKDIR /home/dependencies
RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \
cd Catch2 && \
Expand Down
21 changes: 10 additions & 11 deletions .github/docker-images/base-images/debian-ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ FROM ${OS} AS base
RUN apt update && apt upgrade -y && \
apt install -y git libboost-all-dev autoconf automake \
wget libtool curl make g++ unzip cmake libssl-dev python3

# Install Dependencies

RUN mkdir /home/dependencies

WORKDIR /home/dependencies
RUN wget https://www.openssl.org/source/openssl-3.0.12.tar.gz \
&& tar xzvf openssl-3.0.12.tar.gz \
&& cd openssl-3.0.12 \
&& ./config \
&& make \
&& make install

WORKDIR /home/dependencies
RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
Expand All @@ -20,9 +27,9 @@ RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.
make install

WORKDIR /home/dependencies
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz -O /tmp/boost.tar.gz && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
cd boost_1_84_0 && \
./bootstrap.sh && \
./b2 install link=static

Expand All @@ -36,14 +43,6 @@ RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/p
make && \
make install

WORKDIR /home/dependencies
RUN git clone https://github.com/openssl/openssl.git && \
cd openssl && \
git checkout OpenSSL_1_1_1-stable && \
./config && \
make depend && \
make all

WORKDIR /home/dependencies
RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \
cd Catch2 && \
Expand Down
20 changes: 10 additions & 10 deletions .github/docker-images/base-images/fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ RUN dnf -y update \

RUN mkdir /home/dependencies

WORKDIR /home/dependencies
RUN wget https://www.openssl.org/source/openssl-3.0.12.tar.gz \
&& tar xzvf openssl-3.0.12.tar.gz \
&& cd openssl-3.0.12 \
&& ./config \
&& make \
&& make install

WORKDIR /home/dependencies
RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
Expand All @@ -18,9 +26,9 @@ RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.
make install

WORKDIR /home/dependencies
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz -O /tmp/boost.tar.gz && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
cd boost_1_84_0 && \
./bootstrap.sh && \
./b2 install link=static

Expand All @@ -34,14 +42,6 @@ RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/p
make && \
make install

WORKDIR /home/dependencies
RUN git clone https://github.com/openssl/openssl.git && \
cd openssl && \
git checkout OpenSSL_1_1_1-stable && \
./config && \
make depend && \
make all

WORKDIR /home/dependencies
RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \
cd Catch2 && \
Expand Down
24 changes: 12 additions & 12 deletions .github/docker-images/base-images/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ FROM redhat/ubi8:latest AS base
# Install Prerequisites

RUN yum -y update \
&& yum -y install git autoconf automake \
wget libtool libatomic curl make gcc-c++ unzip cmake python3 openssl-devel
&& yum -y install git autoconf automake libatomic \
wget libtool curl make gcc-c++ unzip cmake python3 openssl-devel perl

RUN mkdir /home/dependencies

WORKDIR /home/dependencies
RUN wget https://www.openssl.org/source/openssl-3.0.12.tar.gz \
&& tar xzvf openssl-3.0.12.tar.gz \
&& cd openssl-3.0.12 \
&& ./config \
&& make \
&& make install

WORKDIR /home/dependencies
RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
Expand All @@ -17,9 +25,9 @@ RUN wget https://github.com/madler/zlib/archive/v1.2.13.tar.gz -O /tmp/zlib-1.2.
make install

WORKDIR /home/dependencies
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz -O /tmp/boost.tar.gz && \
RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.84.0/source/boost_1_84_0.tar.gz -O /tmp/boost.tar.gz && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
cd boost_1_84_0 && \
./bootstrap.sh && \
./b2 install link=static

Expand All @@ -33,14 +41,6 @@ RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/p
make && \
make install

WORKDIR /home/dependencies
RUN git clone https://github.com/openssl/openssl.git && \
cd openssl && \
git checkout OpenSSL_1_1_1-stable && \
./config && \
make depend && \
make all

WORKDIR /home/dependencies
RUN git clone --branch v2.13.6 https://github.com/catchorg/Catch2.git && \
cd Catch2 && \
Expand Down
30 changes: 30 additions & 0 deletions .github/docker-images/bin-images/amazonlinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE} AS deploy

###############################################################################
# Copy and build local proxy
###############################################################################

COPY . /root/aws-iot-securetunneling-localproxy
RUN mkdir -p /root/aws-iot-securetunneling-localproxy/build \
&& cd /root/aws-iot-securetunneling-localproxy/build \
&& cmake .. \
&& make

FROM amazonlinux:2023 AS minimum_size

COPY --from=deploy /root/aws-iot-securetunneling-localproxy/build/bin/localproxy /root/bin/localproxy

COPY ./.github/docker-images/oss-compliance /root/oss-compliance
RUN HOME_DIR=/root \
&& cd ${HOME_DIR}/oss-compliance \
&& chmod +x ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh \
&& chmod +x ${HOME_DIR}/oss-compliance/test/test-oss-compliance.sh \
&& bash ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh ${HOME_DIR} \
&& rm -rf ${HOME_DIR}/oss-compliance*

# OS-specific commands
RUN yum check-update; yum upgrade -y && \
yum install -y libatomic libicu

ENTRYPOINT ["/root/bin/localproxy"]
30 changes: 30 additions & 0 deletions .github/docker-images/bin-images/debian-ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
ARG OS
ARG BASE_IMAGE
FROM ${BASE_IMAGE} AS deploy

###############################################################################
# Copy and build local proxy
###############################################################################

COPY . /root/aws-iot-securetunneling-localproxy
RUN mkdir -p /root/aws-iot-securetunneling-localproxy/build \
&& cd /root/aws-iot-securetunneling-localproxy/build \
&& cmake .. \
&& make

FROM ${OS} AS minimum_size

COPY --from=deploy /root/aws-iot-securetunneling-localproxy/build/bin/localproxy /root/bin/localproxy

COPY ./.github/docker-images/oss-compliance /root/oss-compliance
RUN HOME_DIR=/root \
&& cd ${HOME_DIR}/oss-compliance \
&& chmod +x ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh \
&& chmod +x ${HOME_DIR}/oss-compliance/test/test-oss-compliance.sh \
&& bash ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh ${HOME_DIR} \
&& rm -rf ${HOME_DIR}/oss-compliance*

# OS-specific commands
RUN apt update && apt upgrade -y && apt install -y ca-certificates && update-ca-certificates

ENTRYPOINT ["/root/bin/localproxy"]
31 changes: 31 additions & 0 deletions .github/docker-images/bin-images/ubi8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE} AS deploy

###############################################################################
# Copy and build local proxy
###############################################################################

COPY . /root/aws-iot-securetunneling-localproxy
RUN mkdir -p /root/aws-iot-securetunneling-localproxy/build \
&& cd /root/aws-iot-securetunneling-localproxy/build \
&& cmake .. \
&& make

FROM redhat/ubi8:latest AS minimum_size

COPY --from=deploy /root/aws-iot-securetunneling-localproxy/build/bin/localproxy /root/bin/localproxy

COPY ./.github/docker-images/oss-compliance /root/oss-compliance
RUN HOME_DIR=/root \
&& cd ${HOME_DIR}/oss-compliance \
&& chmod +x ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh \
&& chmod +x ${HOME_DIR}/oss-compliance/test/test-oss-compliance.sh \
&& bash ${HOME_DIR}/oss-compliance/generate-oss-compliance.sh ${HOME_DIR} \
&& rm -rf ${HOME_DIR}/oss-compliance*

# OS-specific commands
RUN yum check-update; yum upgrade -y && \
yum install -y libatomic libicu ca-certificates && \
update-ca-trust extract

ENTRYPOINT ["/root/bin/localproxy"]
Loading
Loading