mirror of
https://github.com/NginxProxyManager/docker-nginx-full.git
synced 2026-05-18 07:40:36 +00:00
Install and build openssl
Updated golang to 1.19.7
This commit is contained in:
@@ -19,6 +19,7 @@ docker buildx build \
|
||||
--platform linux/amd64,linux/arm64,linux/arm/7 \
|
||||
--progress plain \
|
||||
--pull \
|
||||
--no-cache \
|
||||
--build-arg BASE_TAG \
|
||||
--build-arg ACMESH_BASE_TAG \
|
||||
--build-arg CERTBOT_BASE_TAG \
|
||||
@@ -26,6 +27,7 @@ docker buildx build \
|
||||
--build-arg LUA_VERSION \
|
||||
--build-arg LUAROCKS_VERSION \
|
||||
--build-arg CROWDSEC_OPENRESTY_BOUNCER_VERSION \
|
||||
--build-arg OPENSSL_VERSION \
|
||||
$@ \
|
||||
.
|
||||
|
||||
|
||||
Executable
+35
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
BLUE='\E[1;34m'
|
||||
CYAN='\E[1;36m'
|
||||
YELLOW='\E[1;33m'
|
||||
GREEN='\E[1;32m'
|
||||
RESET='\E[0m'
|
||||
|
||||
echo -e "${BLUE}❯ ${CYAN}Building and installing openssl ${YELLOW}${OPENSSL_VERSION}...${RESET}"
|
||||
|
||||
# remove previously installed openssl
|
||||
if test -f "/usr/bin/openssl"; then
|
||||
apt-get update
|
||||
apt-get remove -y opensssl || true
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/* /var/cache/*
|
||||
fi
|
||||
|
||||
cd /tmp
|
||||
wget "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
tar -xzf "openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
mv "/tmp/openssl-${OPENSSL_VERSION}" /tmp/openssl
|
||||
cd /tmp/openssl
|
||||
|
||||
./config
|
||||
make test
|
||||
make install
|
||||
rm -rf /usr/bin/openssl
|
||||
ln -s /usr/local/bin/openssl /usr/bin/openssl
|
||||
ldconfig
|
||||
|
||||
cd /tmp
|
||||
rm -rf /tmp/openssl /usr/local/share/docker/openssl
|
||||
|
||||
echo -e "${BLUE}❯ ${GREEN}openssl install completed: ${YELLOW}$(openssl version)${RESET}"
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
BLUE='\E[1;34m'
|
||||
GREEN='\E[1;32m'
|
||||
RESET='\E[0m'
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "${DIR}/.."
|
||||
|
||||
export BASE_TAG=latest
|
||||
export OPENRESTY_VERSION=1.19.3.1
|
||||
export LUA_VERSION=5.1.5
|
||||
export LUAROCKS_VERSION=3.3.1
|
||||
export OPENSSL_VERSION=1.1.1t
|
||||
|
||||
docker build \
|
||||
--pull \
|
||||
--no-cache \
|
||||
--build-arg BASE_TAG \
|
||||
--build-arg OPENRESTY_VERSION \
|
||||
--build-arg LUA_VERSION \
|
||||
--build-arg LUAROCKS_VERSION \
|
||||
--build-arg OPENSSL_VERSION \
|
||||
-t nginx-full:dev \
|
||||
-f docker/Dockerfile \
|
||||
.
|
||||
|
||||
echo -e "${BLUE}❯ ${GREEN}Build Complete${RESET}"
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "${DIR}/.."
|
||||
|
||||
export IMAGE=nginx-full
|
||||
export BASE_TAG=latest
|
||||
export OPENRESTY_VERSION=1.19.3.1
|
||||
export LUA_VERSION=5.1.5
|
||||
export LUAROCKS_VERSION=3.3.1
|
||||
export OPENSSL_VERSION=1.1.1t
|
||||
|
||||
#./scripts/buildx --push -f docker/Dockerfile -t docker.io/nginxproxymanager/${IMAGE}:${BASE_TAG}
|
||||
./scripts/buildx --push -f docker/Dockerfile -t docker.io/nginxproxymanager/${IMAGE}:latest
|
||||
Reference in New Issue
Block a user