Skip to content
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
36 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
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
26 changes: 26 additions & 0 deletions .github/docker-images/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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*

ENTRYPOINT ["/root/bin"]
55 changes: 55 additions & 0 deletions .github/docker-images/base-images/amazonlinux/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM amazonlinux:latest as base
ARG OPENSSL_CONFIG

# 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

# Install Dependencies

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

WORKDIR /home/dependencies
RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
cd zlib-1.2.13 && \
./configure && \
make && \
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 && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
./bootstrap.sh && \
./b2 install link=static

WORKDIR /home/dependencies
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \
tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \
cd protobuf-3.17.3 && \
mkdir build && \
cd build && \
cmake ../cmake && \
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 && \
mkdir build && \
cd build && \
cmake ../ && \
make && \
make install
52 changes: 52 additions & 0 deletions .github/docker-images/base-images/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
FROM debian:latest AS base
# Install Prerequisites

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.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
cd zlib-1.2.13 && \
./configure && \
make && \
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 && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
./bootstrap.sh && \
./b2 install link=static

WORKDIR /home/dependencies
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \
tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \
cd protobuf-3.17.3 && \
mkdir build && \
cd build && \
cmake ../cmake && \
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 && \
mkdir build && \
cd build && \
cmake ../ && \
make && \
make install
52 changes: 52 additions & 0 deletions .github/docker-images/base-images/fedora/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
FROM fedora:latest AS base

# Install Prerequisites

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

RUN mkdir /home/dependencies

WORKDIR /home/dependencies
RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
cd zlib-1.2.13 && \
./configure && \
make && \
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 && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
./bootstrap.sh && \
./b2 install link=static

WORKDIR /home/dependencies
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \
tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \
cd protobuf-3.17.3 && \
mkdir build && \
cd build && \
cmake ../cmake && \
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 && \
mkdir build && \
cd build && \
cmake ../ && \
make && \
make install
52 changes: 52 additions & 0 deletions .github/docker-images/base-images/ubi8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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

RUN mkdir /home/dependencies

WORKDIR /home/dependencies
RUN wget https://www.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
cd zlib-1.2.13 && \
./configure && \
make && \
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 && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
./bootstrap.sh && \
./b2 install link=static

WORKDIR /home/dependencies
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \
tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \
cd protobuf-3.17.3 && \
mkdir build && \
cd build && \
cmake ../cmake && \
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 && \
mkdir build && \
cd build && \
cmake ../ && \
make && \
make install
54 changes: 54 additions & 0 deletions .github/docker-images/base-images/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
ARG OS
FROM ${OS} AS base

# Install Prerequisites

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.zlib.net/zlib-1.2.13.tar.gz -O /tmp/zlib-1.2.13.tar.gz && \
tar xzvf /tmp/zlib-1.2.13.tar.gz && \
cd zlib-1.2.13 && \
./configure && \
make && \
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 && \
tar xzvf /tmp/boost.tar.gz && \
cd boost_1_81_0 && \
./bootstrap.sh && \
./b2 install link=static

WORKDIR /home/dependencies
RUN wget https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz -O /tmp/protobuf-all-3.17.3.tar.gz && \
tar xzvf /tmp/protobuf-all-3.17.3.tar.gz && \
cd protobuf-3.17.3 && \
mkdir build && \
cd build && \
cmake ../cmake && \
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 && \
mkdir build && \
cd build && \
cmake ../ && \
make && \
make install
Loading