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

Compile OpenSSL 1.0 from source on centos #63

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
9 changes: 1 addition & 8 deletions .buildkite/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
# Build & push images
echo "steps:
- label: \":debian: Debian build images\"
command: cd debian && make build && make push
branches: main

- label: \":rhel: RHEL build images\"
command: cd rhel && make build && make push
branches: main
Expand Down Expand Up @@ -42,11 +38,8 @@ if [[ "$BUILDKITE_BRANCH" == "main" ]]; then
else
# Only build images
echo "steps:
- label: \":debian: Debian build images\"
command: cd debian && make build

- label: \":rhel: RHEL build images\"
command: cd rhel && make build
command: cd rhel && make build && make push

- label: \":linux: Musl build images\"
command: cd musl && make build
Expand Down
15 changes: 0 additions & 15 deletions debian/Makefile

This file was deleted.

24 changes: 0 additions & 24 deletions debian/libssl1.0.x.Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions debian/libssl1.1.x.Dockerfile

This file was deleted.

24 changes: 0 additions & 24 deletions debian/libssl3.0.x.Dockerfile

This file was deleted.

12 changes: 6 additions & 6 deletions rhel/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
build: build-1.1.x build-1.0.x build-3.0.x

build-1.0.x:
docker build -f libssl1.0.x.Dockerfile -t prismagraphql/build:rhel-libssl1.0.x .
docker build -f libssl1.0.x.Dockerfile -t prismagraphql/build:rhel-patched-libssl1.0.x .

build-1.1.x:
docker build -f libssl1.1.x.Dockerfile -t prismagraphql/build:rhel-libssl1.1.x .
docker build -f libssl1.1.x.Dockerfile -t prismagraphql/build:rhel-patched-libssl1.1.x .

build-3.0.x:
docker build -f libssl3.0.x.Dockerfile -t prismagraphql/build:rhel-libssl3.0.x .
docker build -f libssl3.0.x.Dockerfile -t prismagraphql/build:rhel-patched-libssl3.0.x .

push:
docker push prismagraphql/build:rhel-libssl1.0.x
docker push prismagraphql/build:rhel-libssl1.1.x
docker push prismagraphql/build:rhel-libssl3.0.x
docker push prismagraphql/build:rhel-patched-libssl1.0.x
docker push prismagraphql/build:rhel-patched-libssl1.1.x
docker push prismagraphql/build:rhel-patched-libssl3.0.x
2 changes: 1 addition & 1 deletion rhel/libssl1.0.x.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM centos:7

RUN yum groupinstall 'Development Tools' -y
RUN yum install wget git curl perl-core zlib-devel openssl openssl-devel -y
RUN yum install wget git curl perl-core zlib-devel ca-certificates -y

# Install Rust
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y
Expand Down
11 changes: 5 additions & 6 deletions rhel/libssl1.1.x.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ FROM centos:7
RUN yum groupinstall 'Development Tools' -y
RUN yum install wget git curl perl-core zlib-devel ca-certificates -y

RUN wget -c https://www.openssl.org/source/openssl-1.1.1i.tar.gz
RUN tar -xzvf openssl-1.1.1i.tar.gz
RUN wget -c https://www.openssl.org/source/openssl-1.1.1s.tar.gz
RUN tar -xzvf openssl-1.1.1s.tar.gz

RUN cd openssl-1.1.1i && ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && make
RUN cd openssl-1.1.1s && ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && make

# RUN cd openssl-1.1.1i && make test
RUN cd openssl-1.1.1i && make install
RUN cd openssl-1.1.1s && make install
COPY openssl.sh /etc/profile.d/openssl.sh
RUN chmod +x /etc/profile.d/openssl.sh
RUN cd /etc/ld.so.conf.d/ && echo "/usr/local/ssl/lib" > openssl-1.1.1i.conf
RUN cd /etc/ld.so.conf.d/ && echo "/usr/local/ssl/lib" > openssl-1.1.1s.conf
RUN ldconfig -v

ENV PATH=/usr/local/ssl/bin:$PATH
Expand Down
10 changes: 5 additions & 5 deletions rhel/libssl3.0.x.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ FROM centos:7
RUN yum groupinstall 'Development Tools' -y
RUN yum install wget git curl perl-core zlib-devel ca-certificates -y

RUN wget -c https://www.openssl.org/source/openssl-3.0.2.tar.gz
RUN tar -xzvf openssl-3.0.2.tar.gz
RUN wget -c https://www.openssl.org/source/openssl-3.0.7.tar.gz
RUN tar -xzvf openssl-3.0.7.tar.gz

RUN cd openssl-3.0.2 && ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && make
RUN cd openssl-3.0.7 && ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib && make

RUN cd openssl-3.0.2 && make install
RUN cd openssl-3.0.7 && make install
COPY openssl.sh /etc/profile.d/openssl.sh
RUN chmod +x /etc/profile.d/openssl.sh
RUN cd /etc/ld.so.conf.d/ && echo "/usr/local/ssl/lib64" > openssl-3.0.2.conf
RUN cd /etc/ld.so.conf.d/ && echo "/usr/local/ssl/lib64" > openssl-3.0.7.conf
RUN ldconfig -v

ENV PATH=/usr/local/ssl/bin:$PATH
Expand Down